COM_Init

This function initializes the serial device.

Syntax

HANDLE COM_Init( ULONG Identifier );

Parameters

Identifier
Identifies the port. If a device driver is loaded by Device.exe, this value is an LPWSTR that points to a string containing the registry key within HKEY_LOCAL_MACHINE\Drivers\Active\. If the device driver is loaded by a call to the RegisterDevice function, this value is the dwInfo value passed into the call to RegisterDevice.

Return Values

Returns a pointer to the serial head, which then is passed as a device handle into the entry points COM_Open and COM_Deinit.

Remarks

This function is called at device load time in order to perform any initialization. Typically, this function does as little as possible, postponing memory allocation and device power on to Open time.

This function is defined in the Mdd.c file.

See Also

COM_Deinit