MgslDlCancelWait


Prototype
ULONG MgslDlCancelWait( HANDLE hDevice );
Parameters
hDevice
handle to open port
Return Value
ERROR_SUCCESS
Pending call to MgslDlWait cancelled or no call pending.
ERROR_INVALID_HANDLE
hDevice or Link is invalid

Cancel a pending MgslDlWait call. If previous call to MgslDlWait returned ERROR_IO_PENDING, and the application no longer wants to wait for an INDICATION or CONFIRM primitive, then calling MgslDlCancelWait causes the pending call to complete. The WIN32 event in the overlapped structure passed to MgslDlWait is signaled and the Type member of the Primitive structure is set to DLERROR_CANCELLED.


Previous Contents Next