次の方法で共有


COM_IOControl (Windows Embedded CE 6.0)

1/6/2010

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

Serial Port Driver MDD Functions
COM_Open
RegisterDevice