HWEnableIR

This function enables the infrared (IR) serial interface.

Syntax

BOOL HWEnableIR( PVOID pContext, ULONG BaudRate );

Parameters

pContext
Pointer to a context structure returned by the HWInit function that contains implementation-specific data describing the hardware device.
Baud
Specifies the baud to set.

Return Values

TRUE indicates success. FALSE indicates failure. If an error occurs, the caller can return the error using GetLastError.

Remarks

This function sets the device into IR mode. It returns NULL if the device does not support IR mode.

This function supports the implementation of the PDDs 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, HWDisableIR