示例#1
0
 public ASMMap_MapMem(SafeFileHandle asmmap,ulong PhysicalAddress,uint Length)
 {
     if (asmmap == null) {
         asmmap = CreateFile("\\\\.\\ASMMAP" + (IntPtr.Size == 8 ? "64" : ""),FileAccess.ReadWrite,FileShare.None,
             IntPtr.Zero,FileMode.Create,FileAttributes.Temporary,IntPtr.Zero);
         this.ShouldDisposeOfAsmMap = true;
     }
     this.asmmap = asmmap;
     this.mm = new MapMemIoctl(asmmap,PhysicalAddress,Length);
 }
示例#2
0
 static extern bool DeviceIoControl(
     SafeFileHandle hDevice,
     uint IoControlCode,
     ref MapMemIoctl InBuffer,
     int nInBufferSize,
     ref MapMemIoctl OutBuffer,
     int nOutBufferSize,
     IntPtr pBytesReturned,
     IntPtr Overlapped
     );
示例#3
0
 public ASMMap_MapMem(SafeFileHandle asmmap, ulong PhysicalAddress, uint Length)
 {
     if (asmmap == null)
     {
         asmmap = CreateFile("\\\\.\\ASMMAP" + (IntPtr.Size == 8 ? "64" : ""), FileAccess.ReadWrite, FileShare.None,
                             IntPtr.Zero, FileMode.Create, FileAttributes.Temporary, IntPtr.Zero);
         this.ShouldDisposeOfAsmMap = true;
     }
     this.asmmap = asmmap;
     this.mm     = new MapMemIoctl(asmmap, PhysicalAddress, Length);
 }
示例#4
0
 public AtszIO(SafeFileHandle atszio, ulong PhysicalAddress, uint Length)
 {
     if (atszio == null)
     {
         atszio = CreateFile("\\\\.\\ATSZIO", FileAccess.ReadWrite, FileShare.None,
                             IntPtr.Zero, FileMode.Create, FileAttributes.Temporary, IntPtr.Zero);
         this.ShouldDisposeOfAtszIO = true;
     }
     this.atszio = atszio;
     this.mm     = new MapMemIoctl(atszio, PhysicalAddress, Length);
 }
示例#5
0
 static extern bool DeviceIoControl(
     SafeFileHandle hDevice,
     uint IoControlCode,
     ref MapMemIoctl InBuffer,
     int nInBufferSize,
     ref MapMemIoctl OutBuffer,
     int nOutBufferSize,
     IntPtr pBytesReturned,
     IntPtr Overlapped
     );