MgslEnableReceiver


Prototype  
ULONG MgslEnableReceiver( HANDLE hDevice,
                          BOOL EnableFlag );
Parameters  
hDevice
handle to open port
EnableFlag
Zero disables receiver, non-zero enables receiver
Return Value  
ERROR_SUCCESS (0)
Success
ERROR_INVALID_HANDLE
hDevice is invalid

Enable or disable the receiver. Enable receiver to allow data to be received. Disabling the receiver discards data in the receive buffers. Disabling the receiver while a call to MgslReceive is pending, cancels the receive call.

A call to this function with the TRUE flag while the receiver is enabled is ignored. A call to this function with the FALSE flag while the receiver is disabled is ignored. In both of these cases, ERROR_SUCCESS is returned.

See also:Receiving Data


Previous Contents Next