ReadFile function kernel32

int ReadFile(
  1. int hFile,
  2. Pointer<Uint8> lpBuffer,
  3. int nNumberOfBytesToRead,
  4. Pointer<Uint32> lpNumberOfBytesRead,
  5. 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<Uint8> lpBuffer,
  int nNumberOfBytesToRead,
  Pointer<Uint32> lpNumberOfBytesRead,
  Pointer<OVERLAPPED> lpOverlapped,
) => _ReadFile(
  hFile,
  lpBuffer,
  nNumberOfBytesToRead,
  lpNumberOfBytesRead,
  lpOverlapped,
);