MgslOpen


Prototype  
ULONG MgslOpen( ULONG PortID,
                PHANDLE phDevice );
Parameters  
PortID
Integer port identifier
phDevice
Pointer to buffer to hold returned device handle
Return Value  
ERROR_SUCCESS (0)
Port successfully opened
ERROR_DEVICE_IN_USE
Port is in use by another application
ERROR_BAD_DEVICE
Port does not exist or is not functioning

This function opens an HDLC port. If successful, the API returns a handle to the device. Most API calls require an open device handle. The application calls MgslClose when the device is no longer needed. Only one handle per port may be open. This prevents other applications from accessing a port that is currently in use.

See also: MgslOpenDiagnostics, MgslOpenTraceHandle, Opening the Port, Closing the Port


Previous Contents Next