osRead function
Declaration:
BOOL osRead(
  HANDLE Handle,
  PVOID Buffer, 
  SIZE Size,
  struct TIORequest *IORequest
);
Parameters:
Handle

An object handle.

Buffer

Pointer to buffer that receive a data.

Size

Number of bytes to be read.

IORequest

Pointer to TIORequest structure with additional configuration (may be NULL when not used).

Return value:

TRUE on success or FALSE on failure. Use osGetLastError function to obtain extended error information.

Description:

Function reads a data from specified object. It is dedicated to objects like streams, queues and mailboxes. Function fails, when object specified by object handle does not allow the user to read the data.

An IORequest parameter allows specifying a read operation timeout and receives a number of bytes successfully read.

Function is available only, when the OS_READ_WRITE_FUNC is set to 1.

SpaceShadow documentation