HWGetStatus

This function specifies the hardware status API.

Syntax

ULONG HWGetStatus( PVOID pContext, LPCOMSTAT lpStat );

Parameters

pContext
Pointer to a context structure returned by the HWInit function that contains implementation-specific data describing the hardware device.
lpStat
Pointer to an LPCOMMSTAT structure to hold status.

Return Values

Returns a ULONG, representing success ( 0 ) or failure ( –1 ). See ClearCommError for a description of lpStat.

This function supports the implementation of the PDD of serial port drivers. This function is defined in the header file SerHW.h, and is available in Windows CE version 1.0 and later.

See Also

HWInit