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 bool DeviceIoControl(
     IntPtr hDevice,
     UInt32 dwIoControlCode,
     byte[] lpInBuffer,
     UInt32 nInBufferSize,
     byte[] lpOutBuffer,
     UInt32 nOutBufferSize,
     ref UInt32 lpBytesReturned,
     ref DriverEntity.OVERLAPPED lpOverlapped
     );