INtime SDK Help
RtSetBusDataByOffset (iwin32x)
INtime SDK v7.1 > About INtime > Alternate APIs > iwin32 API > iwin32x API > RtSetBusDataByOffset (iwin32x)

Sets bus-configuration data for a device on a PCI bus.

ULONG RtSetBusDataByOffset(
    BUS_DATA_TYPE BusDataType,
    ULONG BusNumber,
    ULONG SlotNumber,
    PVOID pBuffer,
    ULONG Offset,
    ULONG Length
);

Parameters

BusDataType
Type of bus data to set. Currently, its value can be only PCIConfiguration.
BusNumber
Zero-based number of the bus in the system.
SlotNumber
Logical slot number.
pBuffer
Pointer to a caller-supplied buffer that contains configuration data. Since currently only PCI configuration data can be obtained, the buffer contains all or part of the PCI_COMMON_CONFIG data type.
Offset
Offset in PCI_COMMON_CONFIG that indicates where to start writing.
Length
Number of bytes to write.

Remarks

Only PCI configuration data can be set.

Return Values

The number of bytes written to the device
Success.
ERROR_SUCCESS (zero)
Failure. For extended error information, see the Windows' GetLastError function

Requirements

Versions Defined in Include Link to
INtime 3.1 intime/nt/include/iwin32x.h iwin32x.h iwin32x.lib

Notes

See Also

RtGetBusDataByOffset, RtTranslateBusAddress, iwin32x API, iwin32 Overview