Share via


COM_IOControl

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

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.

Syntax

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

Parameters

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

Return Value

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

Header Developer Implemented
Library Serial.lib
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

COM_Open
RegisterDevice