Esempio n. 1
0
 public static extern bool WriteFile(
 IntPtr hFile,
 byte[] lpBuffer,
 UInt32 nNumberOfBytesToWrite,
 ref UInt32 lpNumberOfBytesWritten,
 ref api.driverDefine.OVERLAPPED lpOverlapped
 );
Esempio n. 2
0
 public static unsafe extern bool ReadFile(
 IntPtr hFile,
 byte[] lpBuffer,
 UInt32 nNumberOfBytesToRead,
 ref UInt32 lpNumberOfBytesRead,
 ref api.driverDefine.OVERLAPPED lpOverlapped
 );
Esempio n. 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
 );
Esempio n. 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
 );
Esempio n. 5
0
 public static extern IntPtr CreateEvent(
 ref api.driverDefine.SECURITY_ATTRIBUTES lpEventAttributes,
 bool bManualReset,
 bool bInitialState,
 String lpName
 );
Esempio n. 6
0
 public static extern bool ControlService(
 IntPtr hService,
 UInt32 dwControl,
 ref api.driverDefine.SERVICE_STATUS lpServiceStatus
 );