BOOL osWrite( HANDLE Handle, PVOID Buffer, SIZE Size, struct TIORequest *IORequest );
A handle to the object.
A pointer to the buffer containing the data to be written.
The number of bytes to be written.
A pointer to a TIORequest structure containing additional configuration (may be NULL if not required).
Returns TRUE on success or FALSE on failure. Call the osGetLastError function to obtain extended error information.
The osWrite function writes data to the specified object. It is designed for use with objects such as streams, queues, and mailboxes. The function fails if the object specified by the handle does not permit write operations.
The IORequest parameter allows the caller to specify a timeout for the write operation and retrieves the number of bytes actually written.
This function is available only when OS_READ_WRITE_FUNC is set to 1.
| Version: | 1.0 |
|---|---|
| Header file: | OS_API.h |
| See also: | BOOL, FALSE, HANDLE, interprocess communication, OS_READ_WRITE_FUNC, osGetLastError, osRead, PVOID, SIZE, TIORequest, TRUE |