Microsoft Windows CE 3.0  

COM_Init

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This function initializes the serial device.

HANDLE COM_Init(
ULONG
Identifier
);

Parameters

Identifier
Identifies the port. If a device driver is loaded by Device.exe, this value is an LPWSTRthat 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 RegisterDevicefunction, this value is the dwInfovalue 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_Openand 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 until an application calls the driver's XXX_Openfunction.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Mdd.c    
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

COM_Deinit



 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.