Compartilhar via


COM_IOControl (Windows CE 5.0)

Send Feedback

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
    [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 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

OS Versions: Windows CE 1.0 and later.
Header: Developer defined.
Library: Serial.lib.

See Also

COM_Open | RegisterDevice

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.