HWIoctl

This function is the device I/O control routine.

Syntax

BOOL HWIoctl( DWORD dwOpenData, DWORD dwCode, PBYTE pBufIn, DWORD dwLenIn, PBYTE pBufOut, DWORD dwLenOut,
PDWORD pdwActualOut );

Parameters

dwOpenData
Specifies a value returned from a call to the COM_Open function.
dwCode
Specifies an I\O control code to be performed.
pBufIn
Pointer to the data input to the device.
dwLenIn
Specifies the number of bytes being passed in.
pBufOut
Pointer to the output data from the device.
dwLenOut
Specifies the maximum number of bytes to receive from a device.
pdwActualOut
Pointer to the actual number of bytes received from a device.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

The MDD passes any unrecognized I/O Control codes through to this function. OEMs can implement custom I/O control codes for whatever purposes they need.

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.