Share via


COM_Init (Compact 2013)

3/26/2014

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 (deprecated) 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

See Also

Reference

Serial Port Driver MDD Functions
COM_Deinit
COM_Open