Share via


HWIoctl (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

BOOL HWIoctl(
  DWORD dwOpenData,
  DWORD dwCode,
  PBYTE pBufIn,
  DWORD dwLenIn,
  PBYTE pBufOut,
  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 Value

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

Header serhw.h
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Serial Port Driver PDD Functions
COM_Open