Share via


HWPurgeComm (Windows CE 5.0)

Send Feedback

This function purges the communications device.

VOID HWPurgeComm(PVOIDpContext,DWORD fdwAction);

Parameters

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

  • fdwAction
    [in] Indicates how to purge the serial device.

    The following table shows the possible flags.

    Flag Description
    PURGE_TXABORT Terminates all outstanding write operations and returns immediately, even if the write operations have not been completed.
    PURGE_RXABORT Terminates all outstanding read operations and returns immediately, even if the read operations have not been completed.
    PURGE_TXCLEAR Clears the output buffer, if the driver has one.
    PURGE_RXCLEAR Clears the input buffer, if the driver has one.

Return Values

None.

Remarks

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

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Serhw.h.

See Also

HWInit

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.