Exemplo n.º 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);
 }
Exemplo n.º 2
0
 static extern bool DeviceIoControl(
     SafeFileHandle hDevice,
     uint IoControlCode,
     ref MapMemIoctl InBuffer,
     int nInBufferSize,
     ref MapMemIoctl OutBuffer,
     int nOutBufferSize,
     IntPtr pBytesReturned,
     IntPtr Overlapped
     );
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 5
0
 static extern bool DeviceIoControl(
     SafeFileHandle hDevice,
     uint IoControlCode,
     ref MapMemIoctl InBuffer,
     int nInBufferSize,
     ref MapMemIoctl OutBuffer,
     int nOutBufferSize,
     IntPtr pBytesReturned,
     IntPtr Overlapped
     );