Jump to content

Device Management API


Recommended Posts

The purpose of this UDF is native device management via the Windows Setup API. When complete it will provide most of the functionality of Devcon and Device Manager. With enough interest I hope to have a final version submitted into the standard UDF's.

Posted Image


Updated 2/2/2010

DeviceAPI_GUI Example.au3

Updated 2/2/2010

DeviceAPI.au3 - Alpha v6

Updated 2/2/2010

Current functions:



















Reference links:






Edited by weaponx
Link to comment
Share on other sites

  • Replies 76
  • Created
  • Last Reply

Top Posters In This Topic

I have one error :S

Error 87: The parameter is incorrect

Wat Happend??? :P

There isn't very detailed error checking yet because i wrote the whole thing today. I will post an update soon that will pinpoint the source of the error.

Edited by weaponx
Link to comment
Share on other sites

I appreciate the feedback. I am worried the code in the example may be too complex for some people. There are a lot of pointers to dllstruct's that can't be made inside functions so they have to be declared by the user.

I will try to work in some functions that will allow people to do shortcut tasks, like retrieving an array of all guid's or device names.

Any suggestions are welcome.

Link to comment
Share on other sites


-Separated example into Simple and Advanced versions, which both produce the same result

-Updated UDF to Alpha v4, all function documentation complete + all error checking in place

Be sure to refresh your browser to get the latest scripts, they like to get stuck in the cache.

Edited by weaponx
Link to comment
Share on other sites

  • 4 months later...

Looks great!!!

Yes i rush things! (I sorta do small bursts inbetween doing nothing.) Things I have rushed and reRushed:* ProDLLer - Process manager - Unload viri modules (dll) and moore...* _WinAPI_ProcessListOWNER_WTS() - Get Processes owner list...* _WinAPI_GetCommandLineFromPID() - Get commandline of target process...* _WinAPI_ThreadsnProcesses() Much info if expanded - optional Indented "Parent/Child"-style Processlist. Moore to come... eventually...
Link to comment
Share on other sites

  • 2 months later...

Hello weaponx,

I want to know that if i want Device Instance Id for any specfied Disk Drive then how can i mange your UDF to fullfill my requirement?


I install my app in Drive C:\ of SAMSUNG SP0802N & i want the ID for that Disk, and there are 2 Disk Drives in the System, how can i manage to get the accurate Disk and its Instance Id

In your Example it will return the list of all Installed Hardwares.

73 108 111 118 101 65 117 116 111 105 116

Link to comment
Share on other sites

  • 3 months later...
  • 6 months later...

Sorry for the necropost, but this looks too awesome to not use! When I check DeviceAPI I get

DeviceAPI.au3(684,73) : ERROR: _WinAPI_Check(): undefined function

Did something change in Alpha 5 that nobody mentioned until now?? Commenting out the 2 lines with that function call did allow it to work, but the error checking might be a nice thing to have...



My projects:

  • IP Scanner - Multi-threaded ping tool to scan your available networks for used and available IP addresses, shows ping times, resolves IPs in to host names, and allows individual IPs to be pinged.
  • INFSniff - Great technicians tool - a tool which scans DriverPacks archives for INF files and parses out the HWIDs to a database file, and rapidly scans the local machine's HWIDs, searches the database for matches, and installs them.
  • PPK3 (Persistent Process Killer V3) - Another for the techs - suppress running processes that you need to keep away, helpful when fighting spyware/viruses.
  • Sync Tool - Folder sync tool with lots of real time information and several checking methods.
  • USMT Front End - Front End for Microsoft's User State Migration Tool, including all files needed for USMT 3.01 and 4.01, 32 bit and 64 bit versions.
  • Audit Tool - Computer audit tool to gather vital hardware, Windows, and Office information for IT managers and field techs. Capabilities include creating a customized site agent.
  • CSV Viewer - Displays CSV files with automatic column sizing and font selection. Lines can also be copied to the clipboard for data extraction.
  • MyDirStat - Lists number and size of files on a drive or specified path, allows for deletion within the app.
  • 2048 Game - My version of 2048, fun tile game.
  • Juice Lab - Ecigarette liquid making calculator.
  • Data Protector - Secure notes to save sensitive information.
  • VHD Footer - Add a footer to a forensic hard drive image to allow it to be mounted or used as a virtual machine hard drive.
  • Find in File - Searches files containing a specified phrase.
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

  • Recently Browsing   0 members

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