ReadFile function kernel32
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<Uint8> lpBuffer,
int nNumberOfBytesToRead,
Pointer<Uint32> lpNumberOfBytesRead,
Pointer<OVERLAPPED> lpOverlapped) =>
_ReadFile(hFile, lpBuffer, nNumberOfBytesToRead, lpNumberOfBytesRead,
lpOverlapped);