示例#1
0
 public static extern bool WriteFile(
 IntPtr hFile,
 byte[] lpBuffer,
 UInt32 nNumberOfBytesToWrite,
 ref UInt32 lpNumberOfBytesWritten,
 ref api.driverDefine.OVERLAPPED lpOverlapped
 );
示例#2
0
 public static unsafe extern bool ReadFile(
 IntPtr hFile,
 byte[] lpBuffer,
 UInt32 nNumberOfBytesToRead,
 ref UInt32 lpNumberOfBytesRead,
 ref api.driverDefine.OVERLAPPED lpOverlapped
 );
示例#3
0
 public static extern bool DeviceIoControl(
 IntPtr hDevice,
 UInt32 dwIoControlCode,
 byte[] lpInBuffer,
 UInt32 nInBufferSize,
 byte[] lpOutBuffer,
 UInt32 nOutBufferSize,
 ref UInt32 lpBytesReturned,
 ref api.driverDefine.OVERLAPPED lpOverlapped
 );
示例#4
0
 public static extern IntPtr CreateFile(
 String lpFileName,
 UInt32 dwDesiredAccess,
 UInt32 dwShareMode,
 ref api.driverDefine.SECURITY_ATTRIBUTES lpSecurityAttributes,
 UInt32 dwCreationDisposition,
 UInt32 dwFlagsAndAttributes,
 IntPtr hTemplateFile
 );
示例#5
0
 public static extern IntPtr CreateEvent(
 ref api.driverDefine.SECURITY_ATTRIBUTES lpEventAttributes,
 bool bManualReset,
 bool bInitialState,
 String lpName
 );
示例#6
0
 public static extern bool ControlService(
 IntPtr hService,
 UInt32 dwControl,
 ref api.driverDefine.SERVICE_STATUS lpServiceStatus
 );