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