MgslGetOption


Prototype  
ULONG MgslGetOption( HANDLE hDevice, UINT option_id, UINT *value );
Parameters  
hDevice
handle to open port
option_id
integer identifying option to get
value
pointer to buffer to hold returned option value
Return Value  
ERROR_SUCCESS (0)
parameters set successfully
ERROR_INVALID_PARAMETER
invalid option ID or value pointer
ERROR_INVALID_HANDLE
hDevice is invalid

Returns the current value of the specified option. Option is specified with macros defined in the mghdlc.h header file.

Options are described in detail in the MgslSetOption section.

See also: MgslSetOption, Configuring the Port


Previous Contents Next