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
- This function operates in the Windows portion of your application.
- The iwin32 API also includes an RtSetBusDataByOffset function that operates in the real-time portion of your application.
See Also
RtGetBusDataByOffset, RtTranslateBusAddress, iwin32x API, iwin32 Overview