Share via


COM_IOControl (Compact 2013)

3/26/2014

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.

Requirements

Header

Developer Implemented

Library

Serial.lib

See Also

Reference

Serial Port Driver MDD Functions
COM_Open