IOCTL_HAL_GETBUSDATA (Compact 2013)

10/16/2014

This I/O control message can be customized by the OEM to meet the needs of their platform.

This I/O control message 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 only called in the context of Ceddk.dll. Send this message with OEMIoControl.

Syntax

BOOL OEMIoControl(
    DWORD dwIoControlCode,    // use IOCTL_HAL_GETBUSDATA
    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_GETBUSDATA for this operation.
  • lpInBuffer
    [in] Set to NULL.
  • nInBufferSize
    [in] Set to zero.
  • lpOutBuffer
    [out] Pointer to a BUSDATA_PARMS structure that describes the bus data being read.
  • nOutBufferSize
    [in] Set to sizeof(BUSDATA_PARMS).
  • lpBytesReturned
    [in] Set to NULL.

Return Values

Returns TRUE if successful; otherwise, returns FALSE.

Remarks

This subcode reads data from bus address specified in the BUSDATA_PARMS parameter into a buffer, also specified in the structure. The lpBytesReturned parameter is not accessed.

The ReturnCode member of BUSDATA_PARMS provides status, if the KernelIoControl call succeeds.

Requirements

Header

ceddk.h

See Also

Reference

CEDDK IOCTLs
IOCTL_HAL_SETBUSDATA
OEMIoControl