Jungo WinDriver
Official Documentation
|
DWORD DLLCALLCONV WDU_StreamWrite | ( | _In_ HANDLE | hStream, |
_In_ const PVOID | pBuffer, | ||
_In_ DWORD | bytes, | ||
_Outptr_ DWORD * | pdwBytesWritten | ||
) |
Writes data from the application to a write stream.
For a blocking stream (fBlocking=TRUE - see WDU_StreamOpen()), the call to this function is blocked until the entire data (*pBuffer) is written to the stream's data buffer, or until the stream's attempt to write to the device times out (i.e the timeout period for transfers between the stream and the device, as set in the dwRxTxTimeout WDU_StreamOpen() parameter, expires). For a non-blocking stream (fBlocking=FALSE), the function writes as much of the write data as currently possible to the stream's data buffer, and returns immediately. For both blocking and non-blocking transfers, the function returns the amount of bytes that were actually written to the stream within the pdwBytesWritten parameter.
[in] | hStream | A unique identifier for the stream, as returned by WDU_StreamOpen(). |
[in] | pBuffer | Pointer to a data buffer containing the data to write to the stream. |
[in] | bytes | Number of bytes to write to the stream. |
[out] | pdwBytesWritten | Pointer to a value indicating the number of bytes actually written to the stream. |