Jungo WinDriver
Official Documentation
|
DWORD DLLCALLCONV WDU_StreamRead | ( | _In_ HANDLE | hStream, |
_Outptr_ PVOID | pBuffer, | ||
_In_ DWORD | bytes, | ||
_Outptr_ DWORD * | pdwBytesRead | ||
) |
Reads data from a read stream to the application.
For a blocking stream (fBlocking=TRUE - see WDU_StreamOpen()), the call to this function is blocked until the specified amount of data is read, or until the stream's attempt to read from 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, the function transfers to the application as much of the requested data as possible, subject to the amount of data currently available in 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 read from the stream within the pdwBytesRead parameter.
[in] | hStream | A unique identifier for the stream, as returned by WDU_StreamOpen(). |
[out] | pBuffer | Pointer to a data buffer to be filled with the data read from the stream. |
[in] | bytes | Number of bytes to read from the stream. |
[out] | pdwBytesRead | Pointer to a value indicating the number of bytes actually read from the stream. |