/// <summary> /// 卸载驱动 /// </summary> public static void ShutdownWinIo() { if (Is64) { WinIo64Help.ShutdownWinIo(); } else { WinIo32Help.ShutdownWinIo(); } }
public static bool SetPhysLong(IntPtr pbPhysAddr, byte dwPhysVal) { return(Is64 ? WinIo64Help.SetPhysLong(pbPhysAddr, dwPhysVal) : WinIo32Help.SetPhysLong(pbPhysAddr, dwPhysVal)); }
public static bool UnmapPhysicalMemory(IntPtr PhysicalMemoryHandle, byte pbLinAddr) { return(Is64 ? WinIo64Help.UnmapPhysicalMemory(PhysicalMemoryHandle, pbLinAddr) : WinIo32Help.UnmapPhysicalMemory(PhysicalMemoryHandle, pbLinAddr)); }
public static byte MapPhysToLin(byte pbPhysAddr, uint dwPhysSize, IntPtr PhysicalMemoryHandle) { return(Is64 ? WinIo64Help.MapPhysToLin(pbPhysAddr, dwPhysSize, PhysicalMemoryHandle) : WinIo32Help.MapPhysToLin(pbPhysAddr, dwPhysSize, PhysicalMemoryHandle)); }
public static bool SetPortVal(uint wPortAddr, IntPtr dwPortVal, byte bSize) { return(Is64 ? WinIo64Help.SetPortVal(wPortAddr, dwPortVal, bSize) : WinIo32Help.SetPortVal(wPortAddr, dwPortVal, bSize)); }
public static bool GetPortVal(IntPtr wPortAddr, out int pdwPortVal, byte bSize) { return(Is64 ? WinIo64Help.GetPortVal(wPortAddr, out pdwPortVal, bSize) : WinIo32Help.GetPortVal(wPortAddr, out pdwPortVal, bSize)); }
/// <summary> /// 安装驱动 /// </summary> /// <returns></returns> public static bool InitializeWinIo() { return(Is64 ? WinIo64Help.InitializeWinIo() : WinIo32Help.InitializeWinIo()); }