Microsoft Windows CE 3.0  

COM_IOControl

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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_Openfunction.
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 lpszTypeduring calls to the RegisterDevicefunction.

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

© 2004 Microsoft Corporation. All rights reserved.