Share via


GetSerialObject (Windows Embedded CE 6.0)

1/6/2010

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.

Syntax

PHWOBJ GetSerialObject(
  DWORD DeviceArrayIndex
);

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 Value

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

Header serhw.h
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Serial Port Driver PDD Functions
HWInit
HWOBJ