Microsoft Windows CE 3.0  

HWIoctl

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 is the device I/O control routine.

BOOL HWIoctl(
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 the data input to the device.
dwLenIn
Specifies the number of bytes being passed in.
pBufOut
Pointer to the output data from the device.
dwLenOut
Specifies the maximum number of bytes to receive from a device.
pdwActualOut
Pointer to the actual number of bytes received from a device.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

The MDD passes any unrecognized I/O Control codes through to this function. OEMs can implement custom I/O control codes for whatever purposes they need.

This function supports the implementation of the PDDs of serial port drivers.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Serhw.h    
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.


 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.