Exemplo n.º 1
0
 public unsafe static extern bool ReadFile(
     int hFile,                                // handle to file
     byte[] lpBuffer,                          // data buffer
     int nNumberOfBytesToRead,                 // number of bytes to read
     ref int lpNumberOfBytesRead,              // number of bytes read
     ref UsbNativeType.OVERLAPPED lpOverlapped // overlapped buffer
     );
Exemplo n.º 2
0
 public static extern bool HasOverlappedIoCompleted(
     [In] ref UsbNativeType.OVERLAPPED lpOverlapped
     );
Exemplo n.º 3
0
 public static extern bool GetOverlappedResult(
     IntPtr hFile,
     [In] ref UsbNativeType.OVERLAPPED lpOverlapped,
     out uint lpNumberOfBytesTransferred,
     bool bWait);