MadBoy Posted September 25, 2006 Share Posted September 25, 2006 (edited) Hey, I've been wondering. I wrote a program that installs hardware by using devcon.exe from Microsoft. But since it's microsoft toy i doubt i can attach it with my program and spread it wherever i want So i've been wondering is there a way to make dll call that will list you all devices in the system and correspondive problems or lack of drivers or whatever info you can get with it? so i can basically get similar info that DeviceManager offers? Tnx for any help on that, MadBoy EDIT: WRONG FORUM :/ Can op please move it to support Edited September 25, 2006 by MadBoy My little company: Evotec (PL version: Evotec) Link to comment Share on other sites More sharing options...
lod3n Posted September 25, 2006 Share Posted September 25, 2006 DevCon (Device Console) just wraps up some Setupapi.dll and cfgmgr32.dll functions in a command line toolYou could do DllCalls to Setupapi.dll with the function list here:http://msdn.microsoft.com/library/en-us/se....asp?frame=trueYou can also do a search here for setupapi.dll, and find a lot of examples of people trying to use it.as for cfgmgr32.dll, Larry's already done some interesting work here:http://www.autoitscript.com/forum/index.php?showtopic=28313 [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
MadBoy Posted September 25, 2006 Author Share Posted September 25, 2006 DevCon (Device Console) just wraps up some Setupapi.dll and cfgmgr32.dll functions in a command line toolYou could do DllCalls to Setupapi.dll with the function list here:http://msdn.microsoft.com/library/en-us/se....asp?frame=trueYou can also do a search here for setupapi.dll, and find a lot of examples of people trying to use it.Ah tnx, bad thing is i don't have any experience with doing this so i guess i will have some hard time But tnx for clearing it up. I'll check things.as for cfgmgr32.dll, Larry's already done some interesting work here:http://www.autoitscript.com/forum/index.php?showtopic=28313I've allready seen it and i'm using it. Before it was like devcon rescan, and when i saw it i thought about having it all done by skipping devcon totally as this way it looks more pro My little company: Evotec (PL version: Evotec) Link to comment Share on other sites More sharing options...
MadBoy Posted September 25, 2006 Author Share Posted September 25, 2006 I have found some possibilities but to say the truth i don't know if i will be able to produce something out of it without help http://msdn.microsoft.com/library/default....ndeviceinfo.asphttp://msdn.microsoft.com/library/default....einterfaces.asphttp://msdn.microsoft.com/library/default....led_devices.asphttp://msdn.microsoft.com/library/default....einstanceid.asphttp://msdn.microsoft.com/library/default....einterfaces.aspCan anyone try to convert it to autoit ? :/ My little company: Evotec (PL version: Evotec) Link to comment Share on other sites More sharing options...
Uten Posted September 25, 2006 Share Posted September 25, 2006 I've been wondering. I wrote a program that installs hardware by using devcon.exe from Microsoft.Oh, I would really like to have one of those click here And I'll install new hardware for you software packages... Sorry, could not resist Hope your quest will be a successful one. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
MadBoy Posted September 26, 2006 Author Share Posted September 26, 2006 Oh, I would really like to have one of those click here And I'll install new hardware for you software packages... Sorry, could not resist Hope your quest will be a successful one.http://www.msfn.org/board/index.php?showtopic=70209 --> here it is Setup .ini / use Bashrat driver packs and your one click hardware installer is done My little company: Evotec (PL version: Evotec) Link to comment Share on other sites More sharing options...
MadBoy Posted October 7, 2006 Author Share Posted October 7, 2006 @lod3n I have done some reading of code on MSDN and i can't see (probably lack of knowledge) how i can port those codes to AutoIt. Maybe you could help me with that. I'm using some WMI calls but it seems that WMI calls (some even 30seconds) takes much more time then what devcon.exe (when it does it in 5seconds or so) needs to gather all other information. My little company: Evotec (PL version: Evotec) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now