IOCTL_HAL_SETBUSDATA (Compact 2013)

10/16/2014

This I/O control message can be customized by OEMs to meet the needs of their platforms. It is a subcode of IOCTL_HAL_DDK_CALL, which is used by the implementation of Ceddk.dll as ported by the OEM to their platform. It is called only in the context of Ceddk.dll. Send this message with OEMIoControl.

Syntax

BOOL OEMIoControl(
    DWORD dwIoControlCode,    // use IOCTL_HAL_SETBUSDATA
    LPVOID lpInBuffer,        // pointer to input buffer
    DWORD nInBufferSize,      // input buffer size
    LPVOID lpOutBuffer,       // pointer to output buffer
    DWORD nOutBufferSize,     // output buffer size
    LPDWORD lpBytesReturned   // number of bytes returned
);

Parameters

  • dwIoControlCode
    [in] Control code for the operation. Use IOCTL_HAL_SETBUSDATA for this operation.
  • lpInBuffer
    [in] Pointer to a BUSDATA_PARMS structure describing the bus data being written.
  • nInBufferSize
    [in] Set to the size of lpInBuffer. Should be sizeof(BUSDATA_PARMS).
  • lpOutBuffer
    [in] Not used; set to NULL.
  • nOutBufferSize
    [in] Not used; set to zero.
  • lpBytesReturned
    [in] Not used; set to NULL.

Return Values

Returns TRUE if successful; otherwise, returns FALSE.

Remarks

To get extended error information, call GetLastError. GetLastError may return other standard error messages as appropriate.

This subcode writes data from the buffer specified in the BUSDATA_PARMS structure to a specific bus address, which is also specified in the structure. The lpBytesReturned parameter is not accessed. If the KernelIoControl call succeeds, the ReturnCode member of BUSDATA_PARMS provides status.

Requirements

Header

ceddk.h

See Also

Reference

CEDDK IOCTLs
IOCTL_HAL_GETBUSDATA
OEMIoControl