Share via


COM_Init (Windows Embedded CE 6.0)

1/6/2010

This function initializes the serial device.

Syntax

HANDLE COM_Init(
  ULONG Identifier 
);

Parameters

  • Identifier
    [in] Port identifier. If a driver is loaded by Device.exe, this value points to a string containing the registry key in 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 Value

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

Remarks

This function is called to initialize a device when it loads. This function postpones memory allocation and device power until an application calls the driver's XXX_Open function.

Requirements

Header Developer Implemented
Library Serial.lib
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Serial Port Driver MDD Functions
COM_Deinit
COM_Open
RegisterDevice