GetSerialObject (Windows CE 5.0)
This function returns a pointer to a HWOBJ structure. The structure contains the function pointers and parameters for the hardware interface functions of the relevant lower layer.
PHWOBJ GetSerialObject(DWORDDeviceArrayIndex);
Parameters
- DeviceArrayIndex
[in] Index into an array of serial devices, corresponding to the different lower-layer implementations that might be shared by a single upper-layer implementation.
Return Values
A pointer to a HWOBJ structure, which contains the correct function pointers and parameters for the hardware interface functions of the relevant lower layer.
Remarks
This function supports the implementation of the lower layers of serial port drivers. A single function driver contains only one element in its device list. Drivers that integrate multiple lower layers in one DLL should create a device element for each lower-layer instance.
Call GetSerialObject before initializing a serial port.
The serial port upper layer calls GetSerialObject before calling HWInit.
Requirements
OS Versions: Windows CE 1.0 and later.
Header: Serhw.h.
See Also
Send Feedback on this topic to the authors