Skip to content

bearsh/pysetupdi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pysetupdi

Python SetupAPI Wrapper

devices function generates iterable of Devices which is selected by given parameters. The parameters of devices is similar to SetupDiGetClassDevs. Properties of each device can be accessed by accessing pre-defined properties or giving DevicePropertyKey object as an index to device object.

hard_disk_drives = devices('{4d36e967-e325-11ce-bfc1-08002be10318}')
for hard_disk_drive in hard_disk_drives:
    print(hard_disk_drive.device_desc)

You can also query information about devices by console command

C:\> pysetupdi -g {4d36e967-e325-11ce-bfc1-08002be10318} list
C:\> pysetupdi -i "SCSI\DISK&VEN_SAMSUN_&PROD_MZNTE256HMHP-000\4&103D1686&0&000000" get pdo_name

About

Python SetupAPI Wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%