HWSetDCB

This function sets the device control block.

Syntax

BOOL HWSetDCB( PVOID pContext, LPDCB pDCB );

Parameters

pContext
Pointer to a context structure returned by the HWInit functionthat contains implementation-specific data describing the hardware device.
pDCB
Pointer to the device control block 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 is called by the MDD after the user has called the SetCommState function.

This function supports the implementation of the Serial Port Drivers PDD. This function is defined in the header file SerHW.h, and is available in Windows CE version 1.0 and later.

See Also

HWInit