ReadFile function kernel32
int
ReadFile(
- int hFile,
- Pointer<
NativeType> lpBuffer, - int nNumberOfBytesToRead,
- Pointer<
Uint32> lpNumberOfBytesRead, - Pointer<
OVERLAPPED> lpOverlapped,
Reads data from the specified file or input/output (I/O) device. Reads occur at the position specified by the file pointer if supported by the device.
BOOL ReadFile(
HANDLE hFile,
LPVOID lpBuffer,
DWORD nNumberOfBytesToRead,
LPDWORD lpNumberOfBytesRead,
LPOVERLAPPED lpOverlapped
);
Implementation
int ReadFile(
int hFile,
Pointer lpBuffer,
int nNumberOfBytesToRead,
Pointer<Uint32> lpNumberOfBytesRead,
Pointer<OVERLAPPED> lpOverlapped) =>
_ReadFile(hFile, lpBuffer, nNumberOfBytesToRead, lpNumberOfBytesRead,
lpOverlapped);