Page 2 of 2

Re: AHK - WMI - Snippets

Posted: 17 Oct 2016, 07:40
by Drugoy
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).

Re: AHK - WMI - Snippets

Posted: 18 Oct 2016, 01:06
by jNizM
About WMI vs WinAPI
Disadvantage: Speed
Advantage: Wraps the native API / Get more data with less work

Re: AHK - WMI - Snippets

Posted: 16 Aug 2017, 05:13
by Guest
The WMI_HDD_HEALTH() example on Win 10, 64bit, AutoHotkey v1.1.26.1, doesn't seem to work (returns empty) :?: