Syntax

Parameters

Pointer to a buffer that holds the data to send to the target stream. This buffer must be at least cb bytes in size.

cb [in]

Type: ULONG

The number of bytes of data to write to the target stream.

Return value

Type: HRESULT

Returns S_OK if the function successfully wrote the specified number of bytes to the stream, or an error value otherwise. In particular, if less than cb bytes was written to the target stream, even if some data was successfully written, the function returns E_FAIL.