weaponx Posted August 6, 2008 Share Posted August 6, 2008 (edited) 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.DeviceAPI_Example.au3 Updated 2/2/2010DeviceAPI_GUI Example.au3 Updated 2/2/2010DeviceAPI.au3 - Alpha v6Updated 2/2/2010 Current functions: _DeviceAPI_ClassArray_DeviceAPI_Close_DeviceAPI_CreateClassImageList_DeviceAPI_CreateClassImageListStruct_DeviceAPI_CreateDeviceDataStruct_DeviceAPI_DestroyClassImageList_DeviceAPI_DestroyDeviceInfoList_DeviceAPI_DeviceArray_DeviceAPI_EnumDeviceInfo_DeviceAPI_GetClassCount_DeviceAPI_GetClassDescription_DeviceAPI_GetClassDevices_DeviceAPI_GetClassImageIndex_DeviceAPI_GetClassImageList_DeviceAPI_GetClassNameFromGUID_DeviceAPI_GetDeviceId_DeviceAPI_GetDeviceRegistryProperty_DeviceAPI_OpenReference links:http://www.codeproject.com/KB/system/SimpleSetup.aspxhttp://msdn.microsoft.com/en-us/library/ms792954.aspxhttp://support.microsoft.com/kb/311272http://msdn.microsoft.com/en-us/library/cc462983.aspxhttp://msdn.microsoft.com/en-us/library/ms792832.aspx Edited February 2, 2010 by weaponx Link to comment Share on other sites More sharing options...
Alek Posted August 6, 2008 Share Posted August 6, 2008 freaking awesome thank you [font="Impact"]Never fear, I is here.[/font] Link to comment Share on other sites More sharing options...
7h331337 Posted August 6, 2008 Share Posted August 6, 2008 this is great thanks Link to comment Share on other sites More sharing options...
ZeR0 Posted August 6, 2008 Share Posted August 6, 2008 I have one error :S Error 87: The parameter is incorrect Wat Happend??? Link to comment Share on other sites More sharing options...
weaponx Posted August 6, 2008 Author Share Posted August 6, 2008 (edited) I have one error :SError 87: The parameter is incorrectWat Happend??? 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 August 7, 2008 by weaponx Link to comment Share on other sites More sharing options...
dmob Posted August 7, 2008 Share Posted August 7, 2008 (edited) Works beautifully. Excellent stuff. The people on this forum (and AI) never cease to amaze me. Edited August 7, 2008 by dalisuit Link to comment Share on other sites More sharing options...
MadBoy Posted August 7, 2008 Share Posted August 7, 2008 Amazing. I used WMI or Devcon in my device project but this would be far better My little company: Evotec (PL version: Evotec) Link to comment Share on other sites More sharing options...
ptrex Posted August 7, 2008 Share Posted August 7, 2008 @weaponx This is a great job. Very nice !! Regards, ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
rasim Posted August 7, 2008 Share Posted August 7, 2008 weaponxSuper! Thank you for sharing! Link to comment Share on other sites More sharing options...
weaponx Posted August 7, 2008 Author Share Posted August 7, 2008 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 More sharing options...
weaponx Posted August 8, 2008 Author Share Posted August 8, 2008 (edited) Update: -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 August 8, 2008 by weaponx Link to comment Share on other sites More sharing options...
spudw2k Posted August 8, 2008 Share Posted August 8, 2008 Sux to be me. My company blocks fallenstar.net Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Gigglestick Posted August 8, 2008 Share Posted August 8, 2008 (edited) Amazing work once again, weaponx! <- A whole pile o' cookies for this one! Edited August 8, 2008 by c0deWorm My UDFs: ExitCodes Link to comment Share on other sites More sharing options...
weaponx Posted December 23, 2008 Author Share Posted December 23, 2008 (edited) I wasn't sure what to get everyone, so I just updated my Device Management API instead.Merry X-Mas(Updated to Alpha v5) Edited April 28, 2009 by weaponx Link to comment Share on other sites More sharing options...
MadBoy Posted December 23, 2008 Share Posted December 23, 2008 I wasn't sure what to get everyone, so I just updated my Device Management API instead.Merry X-Mas.Thanks very much ;-) It's great work! Hopefully some day i get time to update my Device Installer with your api instead of WMI ;-) My little company: Evotec (PL version: Evotec) Link to comment Share on other sites More sharing options...
Manko Posted December 24, 2008 Share Posted December 24, 2008 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 More sharing options...
Digisoul Posted March 14, 2009 Share Posted March 14, 2009 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?e.g: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 IdIn 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 More sharing options...
netegg Posted July 2, 2009 Share Posted July 2, 2009 help! I couldn't use with the error like: DeviceAPI_GUI_Example.au3(97,25) : ERROR: $TVN_SELCHANGED: undeclared global variable. Case $TVN_SELCHANGED, ~~~~~~~~~~~~~~~~~~~~^ Link to comment Share on other sites More sharing options...
SandelPerieanu Posted July 2, 2009 Share Posted July 2, 2009 hi, replace with Case $tvn_selchangeda, $tvn_selchangedw and work Link to comment Share on other sites More sharing options...
llewxam Posted January 6, 2010 Share Posted January 6, 2010 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... Thanks Ian 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 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