This function is the device I/O control routine.
BOOL HWIoctl( DWORD dwOpenData, DWORD dwCode, PBYTE pBufIn, DWORD dwLenIn, PBYTE pBufOut, DWORD dwLenOut,
PDWORD pdwActualOut );
TRUE indicates success. FALSE indicates failure.
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.