MgslGetPortConfig


Prototype  
ULONG MgslGetPortConfig( ULONG PortID,
                         PMGSL_PORT_CONFIG pConfig );
Parameters  
PortID
Integer port identifier
pConfig
pointer to MGSL_PORT_CONFIG structure which describes a SyncLink adapter hardware settings
Return Value  
ERROR_SUCCESS (0)
parameter set successful
ERROR_INVALID_PARAMETER
pConfig pointer invalid
ERROR_ACCESS_DENIED
current user does not have registry read access (NT Only)

NOTE: This function is obsolete, new applications should use MgslGetPortConfigEx.

Return a SyncLink adapter port's hardware settings in the MGSL_PORT_CONFIG structure specified by pConfig. The API stores the settings in the registry, with the location dependent on the platform.

The HDLC Ports control panel application usually controls the port configuration. If the API programmer wishes to move the port configuration into a custom application then this API call provides a standard platform independent method of setting the configuration.

See also: MgslSetPortConfig, Configuring the Port


Previous Contents Next