This function specifies the hardware status API.
ULONG HWGetStatus( PVOID pContext, LPCOMSTAT lpStat );
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.