COM_IOControl

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 );

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 data input to the device.
  • dwLenIn
    Specifies the number of bytes being passed in.
  • pBufOut
    Pointer to data output from the driver.
  • dwLenOut
    Specifies the maximum number of bytes to receive from the driver.
  • pdwActualOut
    Pointer to the actual number of bytes received from the driver.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

This function is exported by a device driver. "COM" is the string passed in as lpszType during calls to the RegisterDevice function.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Mdd.c    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

COM_IOControl

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.