Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 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 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 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
OS Versions: Windows CE 1.0 and later.
Header: Developer defined.
Library: Serial.lib.
See Also
COM_Deinit | COM_Open | RegisterDevice
Send Feedback on this topic to the authors