KITLRecv (Compact 2013)
3/26/2014
This function is used by the client to receive data from a device.
Syntax
BOOL KITLRecv(
KITLID id,
LPVOID pBuffer,
USHORT* pcbBuffer,
DWORD dwTimeout
);
Parameters
- id
[in] Kernel Independent Transport Layer (KITL) client identifier returned from KITLRegisterClient.
- pBuffer
[in] Pointer to a buffer that will receive the data from a device.
- pcbBuffer
[in, out] Pointer to a DWORD that is set to the size of the buffer in bytes. On a successful read, pcbBuffer is set to how many bytes are remaining to be read. If set to 0, all bytes have been read.
- dwTimeout
[in] Specifies the amount of time, in milliseconds, before the receive operation fails.
Return Value
Returns TRUE on success; otherwise FALSE.
Requirements
Header |
kitlclnt.h |
Library |
kitldll.lib |