mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 19:28:29 +00:00
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.
This commit is contained in:
parent
e2e0b042c1
commit
c23b6ecc31
162 changed files with 847 additions and 153 deletions
17
libc/nt/enum/pdh.h
Normal file
17
libc/nt/enum/pdh.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_PDH_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_ENUM_PDH_H_
|
||||
|
||||
#define kNtPdhFmtRaw 0x00000010u
|
||||
#define kNtPdhFmtAnsi 0x00000020u
|
||||
#define kNtPdhFmtUnicode 0x00000040u
|
||||
#define kNtPdhFmtLong 0x00000100u
|
||||
#define kNtPdhFmtDouble 0x00000200u
|
||||
#define kNtPdhFmtLarge 0x00000400u
|
||||
#define kNtPdhFmtNoscale 0x00001000u
|
||||
#define kNtPdhFmt1000 0x00002000u
|
||||
#define kNtPdhFmtNodata 0x00004000u
|
||||
#define kNtPdhFmtNocap100 0x00008000u
|
||||
#define kNtPerfDetailCostly 0x00010000u
|
||||
#define kNtPerfDetailStandard 0x0000FFFFu
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_PDH_H_ */
|
|
@ -1,10 +1,11 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_WT_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_ENUM_WT_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#define kNtWtExecuteonlyonce 8
|
||||
#define kNtWtExecutedefault 0x00000000u
|
||||
#define kNtWtExecuteonlyonce 0x00000008u
|
||||
#define kNtWtExecuteintimerthread 0x00000020u
|
||||
#define kNtWtExecuteinpersistentthread 0x00000080u
|
||||
#define kNtWtExecutelongfunction 0x00000010u
|
||||
#define kNtWtTransferImpersonation 0𝔵00000100𝔲
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_WT_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue