mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 03:08:31 +00:00
Adds some NT functions (#1358)
This commit is contained in:
parent
12cb0669fb
commit
42a9ed0131
13 changed files with 195 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
#include "libc/nt/files.h"
|
||||
#include "libc/nt/ipc.h"
|
||||
#include "libc/nt/memory.h"
|
||||
#include "libc/nt/nls.h"
|
||||
#include "libc/nt/paint.h"
|
||||
#include "libc/nt/process.h"
|
||||
#include "libc/nt/registry.h"
|
||||
|
@ -1420,6 +1421,15 @@
|
|||
#define HKEY_CURRENT_CONFIG kNtHkeyCurrentConfig
|
||||
#define HKEY_DYN_DATA kNtHkeyDynData
|
||||
#define HKEY_CURRENT_USER_LOCAL_SETTINGS kNtHkeyCurrentUserLocalSettings
|
||||
#define KEY_QUERY_VALUE kNtKeyQueryValue
|
||||
#define KEY_SET_VALUE kNtKeySetValue
|
||||
#define KEY_CREATE_SUB_KEY kNtKeyCreateSubKey
|
||||
#define KEY_ENUMERATE_SUB_KEYS kNtKeyEnumerateSubKeys
|
||||
#define KEY_NOTIFY kNtKeyNotify
|
||||
#define KEY_CREATE_LINK kNtKeyCreateLink
|
||||
#define KEY_WOW64_32KEY kNtWow6432Key
|
||||
#define KEY_WOW64_64KEY kNtWow6464Key
|
||||
#define KEY_WOW64_RES kNtWow64Res
|
||||
#define KEY_READ kNtKeyRead
|
||||
#define KEY_WRITE kNtKeyWrite
|
||||
#define KEY_EXECUTE kNtKeyExecute
|
||||
|
@ -4291,6 +4301,13 @@
|
|||
#define MAKE_HRESULT(sev,fac,code) ((HRESULT) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) )
|
||||
#define MAKE_SCODE(sev,fac,code) ((SCODE) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) )
|
||||
|
||||
#define CP_ACP 0
|
||||
#define CP_OEMCP 1
|
||||
#define CP_MACCP 2
|
||||
#define CP_THREAD_ACP 3
|
||||
#define CP_SYMBOL 42
|
||||
|
||||
#define CP_UTF7 65000
|
||||
#define CP_UTF8 65001
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_COMPAT_INCLUDE_WINDOWS_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue