BusSetDeviceData Routine
A BusSetDeviceData routine writes data to the device's configuration space.
Syntax
ULONG BusSetDeviceData(
__in PVOID Context,
__in ULONG DataType,
__in PVOID Buffer,
__in ULONG Offset,
__in ULONG Length
);
Parameters
Context [in]
A pointer to interface-specific context information that the system provided when the caller queried for the interface.DataType [in]
The type of bus data to write. For more information, see the discussion of the WhichSpace parameter in IRP_MN_READ_CONFIG.Buffer [in]
A pointer to the buffer that holds the configuration information to be written to the device's configuration space.Offset [in]
The offset into the bus-specific device data where this write operation begins. For example, if DataType is PCI_WHICHSPACE_CONFIG, this parameter value is the offset into PCI Configuration Space.Length [in]
The length, in bytes, of data to be written.
Return Value
BusSetDeviceData returns the length, in bytes, of the configuration data written after a successful write operation. If the write operation is unsuccessful, a value of zero is returned.
Requirements
Header |
Ntddk.h (include Ntddk.h) |
See Also
Send comments about this topic to Microsoft
Build date: 1/12/2011