Re: enumerating PCI devices under Windows
From: Maxim S. Shatskih (maxim_at_storagecraft.com)
Date: 02/20/04
- Next message: Maxim S. Shatskih: "Re: enumerating PCI devices under Windows"
- Previous message: Maxim S. Shatskih: "Re: A service and WTS"
- In reply to: Kiril: "Re: enumerating PCI devices under Windows"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 20 Feb 2004 21:24:05 +0300
> Lets suppose that the appropriate drivers for the devices are already
> loaded. And device objects are created.
> My aim is to find them (by enumerating the PCI Bus - like HalGetBusData
> under WinNT) , their devices objects and manipulate them.
For each device object, call IoRegisterDeviceInterface and then
IoSetDeviceInterfaceState.
Then, in user mode, SetupDiGetClassDevs/SetupDiGetDeviceInterfaceDetail will
help you. It will return a string suitable for CreateFile.
-- Maxim Shatskih, Windows DDK MVP StorageCraft Corporation maxim@storagecraft.com http://www.storagecraft.com
- Next message: Maxim S. Shatskih: "Re: enumerating PCI devices under Windows"
- Previous message: Maxim S. Shatskih: "Re: A service and WTS"
- In reply to: Kiril: "Re: enumerating PCI devices under Windows"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|