MgslDlAllocate


Prototype
ULONG MgslDlAllocate( HANDLE hDevice,
                      ULONG* Link );
Parameters
hDevice
handle to open port
Link
buffer to hold returned link identifier
Return Value
ERROR_SUCCESS
Success. Identifier returned in Link
ERROR_NO_SYSTEM_RESOURCES
Insufficient resources to allocate link.
ERROR_INVALID_HANDLE
hDevice is invalid

Allocate a link instance for use with the API. Use the returned identifier with the other link layer API functions. The link instance must be freed with MgslDlFree when an application no longer needs the link instance.


Previous Contents Next