2.14. Device Manager

The DeviceManager instance is accessible via windows.system.device_manager

Note

See sample at Device manager

2.14.1. DeviceManager

class windows.winobject.device_manager.DeviceManager[source]

Represent the device manager

property classes

The list of installed device classes.

Returns:

[DeviceClass] – A list of DeviceClass

2.14.2. DeviceClass

class windows.winobject.device_manager.DeviceClass[source]

A Device class, which is mainly a GUID with additional attributes

property devices

The set of devices of the current class.

Type:

DeviceInformationSet

property name

The name of the device class

2.14.3. DeviceInformationSet

class windows.winobject.device_manager.DeviceInformationSet[source]

A device instances, can be itered to retrieve the underliyings DeviceInstance

enum_device_interface(index)[source]

Not Implemented Yet

from_param()

Convert a Python object into a function call parameter.

value

current value

2.14.4. DeviceInstance

class windows.winobject.device_manager.DeviceInstance(information_set=None)[source]

An instance of a Device.

The properties are from the page https://docs.microsoft.com/en-us/windows/win32/api/setupapi/nf-setupapi-setupdigetdeviceregistrypropertya#spdrp_address

property address

The device’s address.

property allocated_configuration

The allocated configuration of the device. (https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/hardware-resources#logical-configuration-types-for-resource-lists)

Type:

LogicalConfiguration

property boot_configuration

The boot configuration of the device. (https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/hardware-resources#logical-configuration-types-for-resource-lists)

Type:

LogicalConfiguration

property bus_number

The device’s bus number.

property bus_type

The function retrieves the GUID for the device’s bus type.

property capabilites

The device capabilites (https://docs.microsoft.com/en-us/windows/win32/api/setupapi/nf-setupapi-setupdigetdeviceregistrypropertya#spdrp_capabilities)

property description

The description of the device

property device_object_name

The function retrieves a string that contains the name that is associated with the device’s PDO.

property driver

The driver of the device https://docs.microsoft.com/en-us/windows/win32/api/setupapi/nf-setupapi-setupdigetdeviceregistrypropertya#spdrp_driver

property enumerator_name

The enumerator name of the devices (https://docs.microsoft.com/en-us/windows/win32/api/setupapi/nf-setupapi-setupdigetdeviceregistrypropertya#spdrp_enumerator_name)

property hardware_id

The list of hardware IDs for the device. (https://docs.microsoft.com/en-us/windows/win32/api/setupapi/nf-setupapi-setupdigetdeviceregistrypropertya#spdrp_hardwareid)

property location_information

The hardware location of a device.

property location_paths

A list of strings that represents the location of the device in the device tree.

property lower_filters

A list of string that contains the names of a device’s lower filter drivers.

property manufacturer

The name of the device manufacturer.

property name

The name of the device

property raw_security_descriptor

The raw (binary) security descriptor of the device

property security_descriptor

The security descriptor of the device.

Type:

SecurityDescriptor

property service_name

The name of the service for the device (https://docs.microsoft.com/en-us/windows/win32/api/setupapi/nf-setupapi-setupdigetdeviceregistrypropertya#spdrp_service)

property type

The type of device (https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/specifying-device-types)

property ui_number

Retrieves a DWORD value set to the value of the UINumber member of the device’s

property upper_filters

A list of string that contains the names of a device’s upper filter drivers.

2.14.5. LogicalConfiguration

class windows.winobject.device_manager.LogicalConfiguration[source]

Logical Configuration of a Device instance

from_param()

Convert a Python object into a function call parameter.

property resources

The list of resources in the current logical configuration

Type:

[ResourceDescriptor] – A list of [ResourceDescriptor]

value

current value

2.14.6. ResourceDescriptor

class windows.winobject.device_manager.ResourceDescriptor(handle, type)[source]

Describe a resource allocated or reserved by a device instance. This class is a base class, all resources returned by LogicalConfiguration should be one of the following:

from_param()

Convert a Python object into a function call parameter.

property rawdata

The raw data describing the resource

value

current value

2.14.6.1. Concrete ResourceDescriptor

2.14.6.1.1. ResourceNoType

class windows.winobject.device_manager.ResourceNoType(handle, type)[source]
from_param()

Convert a Python object into a function call parameter.

property rawdata

The raw data describing the resource

value

current value

2.14.6.1.2. MemoryResource

class windows.winobject.device_manager.MemoryResource(handle, type)[source]

A resource of type MEM_RESOURCE

DATA_TYPE

alias of Mem_Resource_s

from_param()

Convert a Python object into a function call parameter.

property rawdata

The raw data describing the resource

value

current value

2.14.6.1.3. IoResource

class windows.winobject.device_manager.IoResource(handle, type)[source]

A resource of type IO_RESOURCE

DATA_TYPE

alias of IO_Resource_s

from_param()

Convert a Python object into a function call parameter.

property rawdata

The raw data describing the resource

value

current value

2.14.6.1.4. DmaResource

class windows.winobject.device_manager.DmaResource(handle, type)[source]

A resource of type DMA_RESOURCE

DATA_TYPE

alias of DMA_Resource_s

from_param()

Convert a Python object into a function call parameter.

property rawdata

The raw data describing the resource

value

current value

2.14.6.1.5. IrqResource

class windows.winobject.device_manager.IrqResource(handle, type)[source]

A resource of type IRQ_RESOURCE

DATA_TYPE

alias of IRQ_Resource_64_s

from_param()

Convert a Python object into a function call parameter.

property rawdata

The raw data describing the resource

value

current value

2.14.6.1.6. BusNumberResource

class windows.winobject.device_manager.BusNumberResource(handle, type)[source]

A resource of type BUSNUMBER_RESOURCE

DATA_TYPE

alias of BusNumber_Resource_s

from_param()

Convert a Python object into a function call parameter.

property rawdata

The raw data describing the resource

value

current value

2.14.6.1.7. MemLargeResource

class windows.winobject.device_manager.MemLargeResource(handle, type)[source]

A resource of type MEM_LARGE_RESOURCE

DATA_TYPE

alias of Mem_Large_Resource_s

from_param()

Convert a Python object into a function call parameter.

property rawdata

The raw data describing the resource

value

current value

2.14.6.1.8. ClassSpecificResource

class windows.winobject.device_manager.ClassSpecificResource(handle, type)[source]

A resource of type CS_RESOURCE

DATA_TYPE

alias of CS_Resource_s

from_param()

Convert a Python object into a function call parameter.

property rawdata

The raw data describing the resource

value

current value

2.14.6.1.9. DevicePrivateResource

class windows.winobject.device_manager.DevicePrivateResource(handle, type)[source]

A device private resource (https://docs.microsoft.com/en-us/windows-hardware/drivers/install/devprivate-resource)

from_param()

Convert a Python object into a function call parameter.

property rawdata

The raw data describing the resource

value

current value

2.14.6.1.10. MfCardConfigResource

class windows.winobject.device_manager.MfCardConfigResource(handle, type)[source]

A resource of type MFCARD_RESOURCE

DATA_TYPE

alias of MfCard_Resource_s

from_param()

Convert a Python object into a function call parameter.

property rawdata

The raw data describing the resource

value

current value

2.14.6.1.11. PcCardConfigResource

class windows.winobject.device_manager.PcCardConfigResource(handle, type)[source]

A resource of type PCCARD_RESOURCE

DATA_TYPE

alias of PcCard_Resource_s

from_param()

Convert a Python object into a function call parameter.

property rawdata

The raw data describing the resource

value

current value