This function implements the serial port’s I\O control routine. It is called by serial port functions such as GetComState, which is a wrapper around this function.
BOOL COM_IOControl( DWORD dwOpenData, DWORD dwCode,
PBYTE pBufIn, DWORD dwLenIn, PBYTE pBufOut, DWORD dwLenOut, PDWORD pdwActualOut );
TRUE indicates success. FALSE indicates failure.
This function is exported by a device driver. “COM” is the string passed in as lpszType during calls to the RegisterDevice function.
This function is defined in the Mdd.c file.