Share via


HWIoctl (Windows CE 5.0)

Send Feedback

This function executes device I/O controls (IOCTL).

BOOL HWIoctl(DWORD dwOpenData,DWORD dwCode,PBYTEpBufIn,DWORD dwLenIn,PBYTEpBufOut,DWORD dwLenOut,PDWORD pdwActualOut);

Parameters

  • dwOpenData
    [in] Value returned from a call to the COM_Open function.
  • dwCode
    [in] IOCTL to execute.
  • 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 unrecognized IOCTLs to this function. You can implement custom IOCTLs for any purpose.

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

COM_Open

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.