cosmopolitan/libc/nt/pdh.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
4 KiB
C
Raw Normal View History

#ifndef COSMOPOLITAN_LIBC_NT_PDH_H_
#define COSMOPOLITAN_LIBC_NT_PDH_H_
#include "libc/nt/struct/pdhfmtcountervalue.h"
/* ░░░░
cosmopolitan § new technology » performance counters
*/
COSMOPOLITAN_C_START_
int PdhOpenQuery(const char16_t *opt_szDataSource, uint32_t *dwUserData,
int64_t *out_phQuery);
int PdhAddEnglishCounter(int64_t hQuery, const char16_t *szFullCounterPath,
uint32_t *dwUserData, int64_t *out_phCounter);
int PdhCollectQueryDataEx(int64_t hQuery, uint32_t dwIntervalTime,
int64_t hNewDataEvent);
int PdhGetFormattedCounterValue(int64_t hCounter, uint32_t dwFormat,
uint32_t *out_opt_lpdwType,
struct NtPdhFmtCountervalue *out_pValue);
COSMOPOLITAN_C_END_
#endif /* COSMOPOLITAN_LIBC_NT_PDH_H_ */