SetDeviceConfigurationData (Compact 2013)
3/26/2014
This function sets configuration for a device on a dynamically configurable I/O bus with a published, standard interface.
Syntax
ULONG SetDeviceConfigurationData (
HANDLE hBusAccess,
DWORD dwSpace,
DWORD BusNumber,
DWORD SlotNumber,
DWORD dwOffset,
DWORD dwLength,
PVOID pBuffer
);
Parameters
- hBusAccess
[in] Handle obtained from CreateBusAccessHandle.
- dwSpace
[in] Configuration address space.
- BusNumber
[in] Zero-based and system-assigned bus number for the device, used with InterfaceType to identify the bus for systems with more than one bus of the same type.
- SlotNumber
[in] Logical slot number or location of the device. This value is the slot and function numbers combined.
- dwOffset
[in] Byte offset in the PCI_COMMON_CONFIG structure where the caller-supplied configuration values begin. Callers can use the system-defined constant PCI_COMMON_HDR_LENGTH to specify the device-specific area of PCI_COMMON_CONFIG.
- dwLength
[in] Maximum number of bytes in pBuffer.
- pBuffer
[in] Pointer to a caller-supplied buffer for configuration information.
Return Value
Returns the number of bytes of data it wrote in the specified buffer.
Requirements
Header |
ceddk.h |
Library |
CEDDK.lib |
See Also
Reference
Ceddk.dll Bus Access Functions
CreateBusAccessHandle
HalSetBusDataByOffset
PCI_COMMON_CONFIG