MgslCancelReceive


Prototype  
ULONG MgslCancelReceive( HANDLE hDevice );
Parameters  
hDevice
handle to open port
Return Value  
ERROR_SUCCESS (0)
success
ERROR_INVALID_HANDLE
hDevice is invalid

Cancel a pending MgslReceive call. The API sets the receive status to RxStatus_UserAbort and signals the event object. Monitor the event object until signaled before calling MgslReceive again.

See also: Receiving Data, Asynchronous API Notification


Previous Contents Next