Share via


HWGetStatus (Windows Embedded CE 6.0)

1/6/2010

This function specifies the hardware status API.

Syntax

ULONG HWGetStatus(
  PVOID pContext,
  LPCOMSTAT lpStat 
);

Parameters

  • pContext
    [in] Pointer to a context structure returned by the HWInit function that contains implementation-specific data describing the device.
  • lpStat
    [out] Pointer to a COMSTAT structure to hold status information.

Return Value

Zero indicates success. A value of –1 indicates failure.

Remarks

See ClearCommError for a description of lpStat.

This function supports the implementation of the lower layers of serial port drivers.

Requirements

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

See Also

Reference

Serial Port Driver PDD Functions
HWInit

Other Resources

ClearCommError
COMSTAT