Red Gate forums :: View topic - Display Enable/Disabled status for devices
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
PInvoke.Net
PInvoke.Net forum

Display Enable/Disabled status for devices

Search in PInvoke.Net forum
Post new topic   Reply to topic
Jump to:  
Author Message
pandasanta



Joined: 19 Apr 2010
Posts: 3

PostPosted: Wed Apr 28, 2010 5:47 pm    Post subject: Display Enable/Disabled status for devices Reply with quote

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!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group