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

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 GetLastError

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/iwin32.h iwin32.h iwin32.lib

Note

This function operates in the real-time portion of your application.

See Also

RtGetBusDataByOffset, RtTranslateBusAddress, iwin32 API, iwin32 Overview