AHK - WMI - Snippets

Post your working scripts, libraries and tools
Drugoy
Posts: 48
Joined: 11 Jun 2016, 07:37
GitHub: Drugoy

Re: AHK - WMI - Snippets

17 Oct 2016, 07:40

What works faster? Executing WMI queries to get data or do direct WinAPI calls?
I suppose executing WMI queries should be a slower approach (although, I honestly don't know that), but I wonder how much slower (because I could choose WMI-query approach as it takes up less lines of code, lol).
User avatar
jNizM
Posts: 2508
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
Contact:

Re: AHK - WMI - Snippets

18 Oct 2016, 01:06

About WMI vs WinAPI
Disadvantage: Speed
Advantage: Wraps the native API / Get more data with less work
[AHK] 1.1.30.03 x64 Unicode | [WIN] 10 Pro (Version 1903) x64 | [GitHub] Profile
Donations are appreciated if I could help you
Guest

Re: AHK - WMI - Snippets

16 Aug 2017, 05:13

The WMI_HDD_HEALTH() example on Win 10, 64bit, AutoHotkey v1.1.26.1, doesn't seem to work (returns empty) :?:

Return to “Scripts and Functions”

Who is online

Users browsing this forum: Google [Bot], hoppfrosch and 52 guests