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