Share via


COM_Init

This function initializes the serial device.

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 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 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 at device load time in order to perform any initialization. Typically, this function does as little as possible. This function postpones memory allocation and device power until an application calls the driver's XXX_Open function.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Developer defined.
Library: Serial.lib.

See Also

COM_Deinit | COM_Open | RegisterDevice

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.