Example #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
     );
Example #2
0
 public static extern bool HasOverlappedIoCompleted(
     [In] ref UsbNativeType.OVERLAPPED lpOverlapped
     );
Example #3
0
 public static extern bool GetOverlappedResult(
     IntPtr hFile,
     [In] ref UsbNativeType.OVERLAPPED lpOverlapped,
     out uint lpNumberOfBytesTransferred,
     bool bWait);