cosmopolitan/libc/nt/struct/processmemorycounters.h
Justine Tunney c23b6ecc31 Fix some win32 definitions
You can now use psapi.dll and pdh.dll. Some TODOs for Windows have been
cleared out. We might have a working load average for the platform that
should help GNU Make work well.
2022-03-22 19:54:36 -07:00

22 lines
696 B
C

#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_PROCESSMEMORYCOUNTERS_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_PROCESSMEMORYCOUNTERS_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
struct NtProcessMemoryCountersEx {
uint32_t cb; /* count bytes */
uint32_t PageFaultCount;
uint64_t PeakWorkingSetSize;
uint64_t WorkingSetSize;
uint64_t QuotaPeakPagedPoolUsage;
uint64_t QuotaPagedPoolUsage;
uint64_t QuotaPeakNonPagedPoolUsage;
uint64_t QuotaNonPagedPoolUsage;
uint64_t PagefileUsage;
uint64_t PeakPagefileUsage;
uint64_t PrivateUsage;
};
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_PROCESSMEMORYCOUNTERS_H_ */