flat assembler
Message board for the users of flat assembler.
Index
> Windows > Windows 10 get CPU usage percent ? |
Author |
|
Roman 05 Dec 2020, 16:43
|
|||
05 Dec 2020, 16:43 |
|
ProMiNick 05 Dec 2020, 17:56
PDH_FMT_COUNTERVALUE
https://docs.microsoft.com/en-us/windows/win32/api/pdh/ns-pdh-pdh_fmt_countervalue for 64bit I guess DisplayValue.doubleValue located at DisplayValue+8 how convert double to text? MS provided something like this cinvoke wsprintf,szBuffer,szFormatStr,[DisplayValue+8] szFormatStr TCHAR 'Counter: %f',0 one moment wsprintf can`t convert floats to strings, so thou will have to realize it manualy (But community will never forget thou if thou share it) |
|||
05 Dec 2020, 17:56 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.