Display Enable/Disabled status for devices

Announcements and discussion for PInvoke

Moderators: Luke Jefferson, Robert

Display Enable/Disabled status for devices

Postby pandasanta » Wed Apr 28, 2010 5:47 pm

Which setupapi.dll function allows me to get the current status of a device?

In my C# application, I've already used P/Invoke to call SetupDiGetClassDevs > SetupDiEnumDeviceInfo > SetupDiGetDeviceRegistryProperty to get the names of the devices. Now, I want to display whether or not they are currently enabled or disabled.

Later, I will have code that changes the status. I've found information on MSDN about that, but right now, I don't know how to even get the current state.

Thanks!
pandasanta
 
Posts: 3
Joined: Mon Apr 19, 2010 2:33 pm

Return to PInvoke.Net

Who is online

Users browsing this forum: No registered users and 0 guests