Jump to content

Device List


MadBoy
 Share

Recommended Posts

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 :P

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 by MadBoy

My little company: Evotec (PL version: Evotec)

Link to comment
Share on other sites

DevCon (Device Console) just wraps up some Setupapi.dll and cfgmgr32.dll functions in a command line tool

You could do DllCalls to Setupapi.dll with the function list here:

http://msdn.microsoft.com/library/en-us/se....asp?frame=true

You 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

DevCon (Device Console) just wraps up some Setupapi.dll and cfgmgr32.dll functions in a command line tool

You could do DllCalls to Setupapi.dll with the function list here:

http://msdn.microsoft.com/library/en-us/se....asp?frame=true

You 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=28313

I'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 :P

My little company: Evotec (PL version: Evotec)

Link to comment
Share on other sites

My little company: Evotec (PL version: Evotec)

Link to comment
Share on other sites

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 :P

Hope your quest will be a successful one.

Link to comment
Share on other sites

Oh, I would really like to have one of those click here And I'll install new hardware for you software packages... :P

Sorry, could not resist :D

Hope your quest will be a successful one.

http://www.msfn.org/board/index.php?showtopic=70209 --> here it is :D 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

  • 2 weeks later...

@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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...