HWIoctl
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
[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 the data input to the device. - dwLenIn
[in] Specifies the number of bytes being passed in. - pBufOut
[out] Pointer to the output data from the device. - dwLenOut
[out] Specifies the maximum number of bytes to receive from a device. - pdwActualOut
[out] Pointer to the actual number of bytes received from a device.
Return Values
TRUE indicates success. FALSE indicates failure.
Remarks
The upper layer 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 lower layers of serial port drivers.
Requirements
OS Versions: Windows CE 1.0 and later.
Header: Serhw.h.
See Also
Last updated on Tuesday, May 18, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.