path
stringlengths
14
112
content
stringlengths
0
6.32M
size
int64
0
6.32M
max_lines
int64
1
100k
repo_name
stringclasses
2 values
autogenerated
bool
1 class
cosmopolitan/libc/nt/pdh/PdhLookupPerfIndexByNameW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhLookupPerfIndexByNameW,PdhLookupPerfIndexByNameW,0
98
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhCollectQueryDataWithTime.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhCollectQueryDataWithTime,PdhCollectQueryDataWithTime,0
102
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PerfQueryCounterSetRegistrationInfo.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PerfQueryCounterSetRegistrationInfo,PerfQueryCounterSetRegistrationInfo,0
118
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/CounterPathCallBack.S
#include "libc/nt/codegen.h" .imp pdh,__imp_CounterPathCallBack,CounterPathCallBack,0
86
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhOpenQueryW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhOpenQueryW,PdhOpenQueryW,0 .text.windows PdhOpenQuery: #ifdef __x86_64__ push %rbp mov %rsp,%rbp .profilable mov __imp_PdhOpenQueryW(%rip),%rax jmp __sysv2nt #elif defined(__aarch64__) mov x0,#0 ret #endif .endfn PdhOpenQuery,globl .previous
300
18
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhCloseLog.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhCloseLog,PdhCloseLog,0
70
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhCollectQueryDataEx.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhCollectQueryDataEx,PdhCollectQueryDataEx,0 .text.windows PdhCollectQueryDataEx: #ifdef __x86_64__ push %rbp mov %rsp,%rbp .profilable mov __imp_PdhCollectQueryDataEx(%rip),%rax jmp __sysv2nt #elif defined(__aarch64__) mov x0,#0 ret #endif .endfn PdhCollectQueryDataEx,globl .previous
342
18
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhEnumLogSetNamesW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhEnumLogSetNamesW,PdhEnumLogSetNamesW,0
86
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhOpenLogW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhOpenLogW,PdhOpenLogW,0
70
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhIsRealTimeQuery.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhIsRealTimeQuery,PdhIsRealTimeQuery,0
84
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PerfDeleteInstance.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PerfDeleteInstance,PerfDeleteInstance,0
84
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhGetDllVersion.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhGetDllVersion,PdhGetDllVersion,0
80
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PerfDeleteCounters.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PerfDeleteCounters,PerfDeleteCounters,0
84
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhEnumMachinesW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhEnumMachinesW,PdhEnumMachinesW,0
80
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhFormatFromRawValue.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhFormatFromRawValue,PdhFormatFromRawValue,0
90
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhBrowseCountersHW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhBrowseCountersHW,PdhBrowseCountersHW,0
86
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhGetLogFileSize.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhGetLogFileSize,PdhGetLogFileSize,0
82
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhGetDefaultPerfObjectW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhGetDefaultPerfObjectW,PdhGetDefaultPerfObjectW,0
96
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PerfSetULongCounterValue.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PerfSetULongCounterValue,PerfSetULongCounterValue,0
96
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhValidatePathW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhValidatePathW,PdhValidatePathW,0
80
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhEnumObjectsW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhEnumObjectsW,PdhEnumObjectsW,0
78
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhComputeCounterStatistics.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhComputeCounterStatistics,PdhComputeCounterStatistics,0
102
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PerfDecrementULongCounterValue.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PerfDecrementULongCounterValue,PerfDecrementULongCounterValue,0
108
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhParseCounterPathW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhParseCounterPathW,PdhParseCounterPathW,0
88
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhAddCounterW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhAddCounterW,PdhAddCounterW,0
76
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PerfEnumerateCounterSet.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PerfEnumerateCounterSet,PerfEnumerateCounterSet,0
94
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PerfOpenQueryHandle.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PerfOpenQueryHandle,PerfOpenQueryHandle,0
86
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhGetDefaultPerfObjectHW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhGetDefaultPerfObjectHW,PdhGetDefaultPerfObjectHW,0
98
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PerfCloseQueryHandle.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PerfCloseQueryHandle,PerfCloseQueryHandle,0
88
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhEnumObjectItemsW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhEnumObjectItemsW,PdhEnumObjectItemsW,0
86
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhBindInputDataSourceW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhBindInputDataSourceW,PdhBindInputDataSourceW,0
94
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhReadRawLogRecord.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhReadRawLogRecord,PdhReadRawLogRecord,0
86
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhLookupPerfNameByIndexW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhLookupPerfNameByIndexW,PdhLookupPerfNameByIndexW,0
98
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhSetCounterScaleFactor.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhSetCounterScaleFactor,PdhSetCounterScaleFactor,0
96
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhEnumMachinesHW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhEnumMachinesHW,PdhEnumMachinesHW,0
82
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/LoadPerfCounterTextStringsW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_LoadPerfCounterTextStringsW,LoadPerfCounterTextStringsW,0
102
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhSetQueryTimeRange.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhSetQueryTimeRange,PdhSetQueryTimeRange,0
88
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhExpandWildCardPathW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhExpandWildCardPathW,PdhExpandWildCardPathW,0
92
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhParseInstanceNameW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhParseInstanceNameW,PdhParseInstanceNameW,0
90
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhGetFormattedCounterValue.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhGetFormattedCounterValue,PdhGetFormattedCounterValue,0 .text.windows PdhGetFormattedCounterValue: #ifdef __x86_64__ push %rbp mov %rsp,%rbp .profilable mov __imp_PdhGetFormattedCounterValue(%rip),%rax jmp __sysv2nt #elif defined(__aarch64__) mov x0,#0 ret #endif .endfn PdhGetFormattedCounterValue,globl .previous
372
18
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PerfStartProviderEx.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PerfStartProviderEx,PerfStartProviderEx,0
86
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhExpandWildCardPathHW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhExpandWildCardPathHW,PdhExpandWildCardPathHW,0
94
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PerfCreateInstance.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PerfCreateInstance,PerfCreateInstance,0
84
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhSetDefaultRealTimeDataSource.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhSetDefaultRealTimeDataSource,PdhSetDefaultRealTimeDataSource,0
110
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhGetFormattedCounterArrayW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhGetFormattedCounterArrayW,PdhGetFormattedCounterArrayW,0
104
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhGetDefaultPerfCounterW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhGetDefaultPerfCounterW,PdhGetDefaultPerfCounterW,0
98
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhCollectQueryData.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhCollectQueryData,PdhCollectQueryData,0
86
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhBrowseCountersW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhBrowseCountersW,PdhBrowseCountersW,0
84
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhOpenQueryH.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhOpenQueryH,PdhOpenQueryH,0
74
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhAddEnglishCounterW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhAddEnglishCounterW,PdhAddEnglishCounterW,0 .text.windows PdhAddEnglishCounter: #ifdef __x86_64__ push %rbp mov %rsp,%rbp .profilable mov __imp_PdhAddEnglishCounterW(%rip),%rax jmp __sysv2nt #elif defined(__aarch64__) mov x0,#0 ret #endif .endfn PdhAddEnglishCounter,globl .previous
340
18
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhEnumObjectItemsHW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhEnumObjectItemsHW,PdhEnumObjectItemsHW,0
88
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhMakeCounterPathW.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhMakeCounterPathW,PdhMakeCounterPathW,0
86
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PerfDecrementULongLongCounterValue.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PerfDecrementULongLongCounterValue,PerfDecrementULongLongCounterValue,0
116
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PdhGetDataSourceTimeRangeH.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PdhGetDataSourceTimeRangeH,PdhGetDataSourceTimeRangeH,0
100
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/pdh/PerfStopProvider.S
#include "libc/nt/codegen.h" .imp pdh,__imp_PerfStopProvider,PerfStopProvider,0
80
3
jart/cosmopolitan
false
cosmopolitan/libc/nt/nt/thread.h
#ifndef COSMOPOLITAN_LIBC_NT_NT_THREAD_H_ #define COSMOPOLITAN_LIBC_NT_NT_THREAD_H_ #include "libc/nt/enum/status.h" #include "libc/nt/enum/threadinfoclass.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /* ░░░░ ▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▓▓▓▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓░ ▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▒ ▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ █▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓░ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▒ ▒▒▒▒▓▓ ▓▒▒▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▓ ▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓ ░░░░░░░░░░░▒▒▒▒ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓▓ ▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓░ ░▓███▓ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓░ ▒▓▓▓▒▒▒ ░▒▒▒▓ ████████████ ▒▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▒▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒░ ░███ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ███ ▒▒░░░░░░░░░░▒▒▒▒▒▒▓▓ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ▓██ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒▓ ▓██ ▒▒░░░▒▒▒░░░▒▒░▒▒▒▓▓▒ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ███ ░▒▓ ░▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ▓██ ╔────────────────────────────────────────────────────────────────▀▀▀─────────│─╗ │ cosmopolitan § new technology » beyond the pale » threads ─╬─│┼ ╚────────────────────────────────────────────────────────────────────────────│─╝ “The functions and structures in [for these APIs] are internal to the operating system and subject to change from one release of Windows to the next, and possibly even between service packs for each release.” ──Quoth MSDN */ struct NtClientId; struct NtContext; struct NtObjectAttributes; struct NtUserStack; NtStatus NtCreateThread(int64_t *out_ThreadHandle, uint32_t DesiredAccess, struct NtObjectAttributes *ObjectAttributes, int64_t ProcessHandle, struct NtClientId *out_ClientId, struct NtContext *ThreadContext, struct NtUserStack *UserStack, int32_t CreateSuspended); NtStatus NtTerminateThread(void *opt_ThreadHandle, int32_t ExitStatus); NtStatus NtOpenThread(int64_t *out_ThreadHandle, uint32_t DesiredAccess, struct NtObjectAttributes *ObjectAttributes, struct NtClientId *ClientId); NtStatus NtQueryInformationThread(int64_t ThreadHandle, enum NtThreadInfoClass ThreadInformationClass, void *out_ThreadInformation, uint32_t ThreadInformationLength, uint32_t *opt_out_ReturnLength); NtStatus NtGetContextThread(int64_t ThreadHandle, struct NtContext *out_Context); NtStatus NtSetContextThread(int64_t ThreadHandle, struct NtContext *Context); NtStatus NtSuspendThread(int64_t ThreadHandle, uint32_t *opt_out_PreviousSuspendCount); NtStatus NtResumeThread(int64_t ThreadHandle, uint32_t *opt_out_PreviousSuspendCount); NtStatus NtOpenThreadToken(int64_t ThreadHandle, uint32_t DesiredAccess, int32_t OpenAsSelf, int64_t *out_TokenHandle); NtStatus NtSetInformationThread(int64_t ThreadHandle, enum NtThreadInfoClass ThreadInformationClass, void *ThreadInformation, uint32_t ThreadInformationLength); COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_NT_THREAD_H_ */
5,742
78
jart/cosmopolitan
false
cosmopolitan/libc/nt/nt/ipc.h
#ifndef COSMOPOLITAN_LIBC_NT_NT_IPC_H_ #define COSMOPOLITAN_LIBC_NT_NT_IPC_H_ #include "libc/nt/enum/status.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /* ░░░░ ▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▓▓▓▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓░ ▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▒ ▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ █▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓░ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▒ ▒▒▒▒▓▓ ▓▒▒▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▓ ▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓ ░░░░░░░░░░░▒▒▒▒ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓▓ ▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓░ ░▓███▓ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓░ ▒▓▓▓▒▒▒ ░▒▒▒▓ ████████████ ▒▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▒▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒░ ░███ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ███ ▒▒░░░░░░░░░░▒▒▒▒▒▒▓▓ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ▓██ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒▓ ▓██ ▒▒░░░▒▒▒░░░▒▒░▒▒▒▓▓▒ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ███ ░▒▓ ░▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ▓██ ╔────────────────────────────────────────────────────────────────▀▀▀─────────│─╗ │ cosmopolitan § new technology » beyond the pale » ipc ─╬─│┼ ╚────────────────────────────────────────────────────────────────────────────│─╝ “The functions and structures in [for these APIs] are internal to the operating system and subject to change from one release of Windows to the next, and possibly even between service packs for each release.” ──Quoth MSDN */ struct NtIoStatusBlock; struct NtObjectAttributes; NtStatus NtCreateNamedPipeFile(int64_t *out_FileHandle, uint32_t DesiredAccess, struct NtObjectAttributes *ObjectAttributes, struct NtIoStatusBlock *out_IoStatusBlock, uint32_t ShareAccess, uint32_t CreateDisposition, uint32_t CreateOptions, int32_t TypeMessage, int32_t ReadmodeMessage, int32_t Nonblocking, uint32_t MaxInstances, uint32_t InBufferSize, uint32_t OutBufferSize, int64_t *opt_DefaultTimeout); COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_NT_IPC_H_ */
4,532
51
jart/cosmopolitan
false
cosmopolitan/libc/nt/nt/signing.h
#ifndef COSMOPOLITAN_LIBC_NT_NT_SIGNING_H_ #define COSMOPOLITAN_LIBC_NT_NT_SIGNING_H_ #include "libc/nt/enum/status.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /* ░░░░ ▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▓▓▓▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓░ ▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▒ ▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ █▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓░ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▒ ▒▒▒▒▓▓ ▓▒▒▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▓ ▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓ ░░░░░░░░░░░▒▒▒▒ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓▓ ▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓░ ░▓███▓ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓░ ▒▓▓▓▒▒▒ ░▒▒▒▓ ████████████ ▒▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▒▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒░ ░███ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ███ ▒▒░░░░░░░░░░▒▒▒▒▒▒▓▓ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ▓██ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒▓ ▓██ ▒▒░░░▒▒▒░░░▒▒░▒▒▒▓▓▒ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ███ ░▒▓ ░▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ▓██ ╔────────────────────────────────────────────────────────────────▀▀▀─────────│─╗ │ cosmopolitan § new technology » beyond the pale » code signing ─╬─│┼ ╚────────────────────────────────────────────────────────────────────────────│─╝ “The functions and structures in [for these APIs] are internal to the operating system and subject to change from one release of Windows to the next, and possibly even between service packs for each release.” ──Quoth MSDN */ NtStatus CsrClientCallServer(void *inout_Message, void *unknown, uint32_t Opcode, uint32_t Size); COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_NT_SIGNING_H_ */
3,962
41
jart/cosmopolitan
false
cosmopolitan/libc/nt/nt/memory.h
#ifndef COSMOPOLITAN_LIBC_NT_NT_MEMORY_H_ #define COSMOPOLITAN_LIBC_NT_NT_MEMORY_H_ #include "libc/nt/enum/memoryinformationclass.h" #include "libc/nt/enum/status.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /* ░░░░ ▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▓▓▓▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓░ ▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▒ ▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ █▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓░ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▒ ▒▒▒▒▓▓ ▓▒▒▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▓ ▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓ ░░░░░░░░░░░▒▒▒▒ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓▓ ▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓░ ░▓███▓ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓░ ▒▓▓▓▒▒▒ ░▒▒▒▓ ████████████ ▒▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▒▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒░ ░███ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ███ ▒▒░░░░░░░░░░▒▒▒▒▒▒▓▓ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ▓██ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒▓ ▓██ ▒▒░░░▒▒▒░░░▒▒░▒▒▒▓▓▒ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ███ ░▒▓ ░▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ▓██ ╔────────────────────────────────────────────────────────────────▀▀▀─────────│─╗ │ cosmopolitan § new technology » beyond the pale » memory ─╬─│┼ ╚────────────────────────────────────────────────────────────────────────────│─╝ “The functions and structures in [for these APIs] are internal to the operating system and subject to change from one release of Windows to the next, and possibly even between service packs for each release.” ──Quoth MSDN */ NtStatus NtAllocateVirtualMemory(int64_t ProcessHandle, void **inout_BaseAddress, uint32_t dwZeroBits, uint32_t *inout_AllocationSize, uint32_t dwMemAllocationType, uint32_t dwPageProtect); NtStatus NtFreeVirtualMemory(int64_t ProcessHandle, void **inout_BaseAddress, size_t *inout_FreeSize, uint32_t FreeType); NtStatus NtQueryVirtualMemory(int64_t ProcessHandle, const void *BaseAddress, int MemoryInformationClass, void *out_MemoryInformation, size_t MemoryInformationLength, size_t *opt_out_ReturnLength); NtStatus NtProtectVirtualMemory(int64_t ProcessHandle, void **inout_BaseAddress, uint32_t *inout_ProtectSize, uint32_t NewProtect, uint32_t *out_OldProtect); NtStatus NtWriteVirtualMemory(int64_t ProcessHandle, void *BaseAddress, const void *Buffer, size_t BufferLength, size_t *opt_out_ReturnLength); COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_NT_MEMORY_H_ */
5,098
58
jart/cosmopolitan
false
cosmopolitan/libc/nt/nt/process.h
#ifndef COSMOPOLITAN_LIBC_NT_NT_PROCESS_H_ #define COSMOPOLITAN_LIBC_NT_NT_PROCESS_H_ #include "libc/nt/enum/status.h" #include "libc/nt/thunk/msabi.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /* ░░░░ ▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▓▓▓▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓░ ▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▒ ▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ █▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓░ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▒ ▒▒▒▒▓▓ ▓▒▒▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▓ ▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓ ░░░░░░░░░░░▒▒▒▒ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓▓ ▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓░ ░▓███▓ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓░ ▒▓▓▓▒▒▒ ░▒▒▒▓ ████████████ ▒▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▒▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒░ ░███ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ███ ▒▒░░░░░░░░░░▒▒▒▒▒▒▓▓ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ▓██ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒▓ ▓██ ▒▒░░░▒▒▒░░░▒▒░▒▒▒▓▓▒ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ███ ░▒▓ ░▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ▓██ ╔────────────────────────────────────────────────────────────────▀▀▀─────────│─╗ │ cosmopolitan § new technology » beyond the pale » processes ─╬─│┼ ╚────────────────────────────────────────────────────────────────────────────│─╝ “The functions and structures in [for these APIs] are internal to the operating system and subject to change from one release of Windows to the next, and possibly even between service packs for each release.” ──Quoth MSDN */ struct NtClientId; struct NtObjectAttributes; struct NtRtlUserProcessInformation; struct NtRtlUserProcessParameters; struct NtSecurityDescriptor; struct NtUnicodeString; NtStatus NtCreateProcess(int64_t *out_ProcessHandle, uint32_t dwDesiredAccess, struct NtObjectAttributes *opt_ObjectAttributes, void *InheritFromProcessHandle, int32_t InheritHandles, void *opt_SectionHandle, void *opt_DebugPort, void *opt_ExceptionPort); NtStatus NtTerminateProcess(int64_t opt_ProcessHandle, int32_t ExitStatus); NtStatus NtQueryInformationProcess(int64_t ProcessHandle, int ProcessInformationClass, void *out_ProcessInformation, uint32_t ProcessInformationLength, uint32_t *opt_out_ReturnLength); NtStatus NtOpenProcessToken(int64_t ProcessToken, uint32_t DesiredAccess, int64_t *out_TokenHandle); NtStatus NtOpenProcess(int64_t *out_ProcessHandle, uint32_t DesiredAccess, struct NtObjectAttributes *ObjectAttributes, struct NtClientId *ClientId); NtStatus RtlCreateProcessParameters( struct NtRtlUserProcessParameters **out_ProcessParameters, struct NtUnicodeString *ImageFile, struct NtUnicodeString *opt_DllPath, struct NtUnicodeString *opt_CurrentDirectory, struct NtUnicodeString *opt_CommandLine, uint32_t CreationFlags, struct NtUnicodeString *opt_WindowTitle, struct NtUnicodeString *opt_Desktop, struct NtUnicodeString *opt_Reserved, struct NtUnicodeString *opt_Reserved2); NtStatus RtlDestroyProcessParameters( struct NtRtlUserProcessParameters *ProcessParameters); NtStatus RtlCloneUserProcess( uint32_t ProcessFlags, struct NtSecurityDescriptor *opt_ProcessSecurityDescriptor, struct NtSecurityDescriptor *opt_ThreadSecurityDescriptor, void *opt_DebugPort, struct NtRtlUserProcessInformation *ProcessInformation); #if ShouldUseMsabiAttribute() #include "libc/nt/nt/thunk/process.inc" #endif /* ShouldUseMsabiAttribute() */ COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_NT_PROCESS_H_ */
6,064
86
jart/cosmopolitan
false
cosmopolitan/libc/nt/nt/debug.h
#ifndef COSMOPOLITAN_LIBC_NT_NT_DEBUG_H_ #define COSMOPOLITAN_LIBC_NT_NT_DEBUG_H_ #include "libc/nt/enum/status.h" #include "libc/nt/struct/context.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /* ░░░░ ▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▓▓▓▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓░ ▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▒ ▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ █▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓░ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▒ ▒▒▒▒▓▓ ▓▒▒▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▓ ▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓ ░░░░░░░░░░░▒▒▒▒ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓▓ ▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓░ ░▓███▓ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓░ ▒▓▓▓▒▒▒ ░▒▒▒▓ ████████████ ▒▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▒▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒░ ░███ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ███ ▒▒░░░░░░░░░░▒▒▒▒▒▒▓▓ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ▓██ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒▓ ▓██ ▒▒░░░▒▒▒░░░▒▒░▒▒▒▓▓▒ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ███ ░▒▓ ░▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ▓██ ╔────────────────────────────────────────────────────────────────▀▀▀─────────│─╗ │ cosmopolitan § new technology » beyond the pale » debugging ─╬─│┼ ╚────────────────────────────────────────────────────────────────────────────│─╝ “The functions and structures in [for these APIs] are internal to the operating system and subject to change from one release of Windows to the next, and possibly even between service packs for each release.” ──Quoth MSDN */ NtStatus NtContinue(struct NtContext *Context, int32_t TestAlert); COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_NT_DEBUG_H_ */
3,932
41
jart/cosmopolitan
false
cosmopolitan/libc/nt/nt/sections.h
#ifndef COSMOPOLITAN_LIBC_NT_NT_SECTIONS_H_ #define COSMOPOLITAN_LIBC_NT_NT_SECTIONS_H_ #include "libc/nt/enum/status.h" #include "libc/nt/struct/objectattributes.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ NtStatus NtCreateSection(int64_t *out_SectionHandle, uint32_t DesiredAccess, struct NtObjectAttributes *ObjectAttributes, int64_t *opt_SectionSize, uint32_t Protect, uint32_t Attributes, int64_t FileHandle); NtStatus NtOpenSection(int64_t *out_SectionHandle, uint32_t DesiredAccess, struct NtObjectAttributes *ObjectAttributes); NtStatus NtMapViewOfSection(int64_t SectionHandle, int64_t ProcessHandle, void **inout_BaseAddress, uint32_t *ZeroBits, size_t CommitSize, int64_t *opt_inout_SectionOffset, size_t *inout_ViewSize, int InheritDisposition, uint32_t AllocationType, uint32_t Protect); NtStatus NtUnmapViewOfSection(int64_t ProcessHandle, void *BaseAddress); NtStatus NtQuerySection(int64_t SectionHandle, int SectionInformationClass, void *out_SectionInformation, uint32_t SectionInformationLength, uint32_t *opt_out_ResultLength); COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_NT_SECTIONS_H_ */
1,467
28
jart/cosmopolitan
false
cosmopolitan/libc/nt/nt/key.h
#ifndef COSMOPOLITAN_LIBC_NT_NT_EVENT_H_ #define COSMOPOLITAN_LIBC_NT_NT_EVENT_H_ #include "libc/nt/enum/status.h" #include "libc/nt/struct/objectattributes.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /* ░░░░ ▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▓▓▓▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓░ ▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▒ ▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ █▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓░ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▒ ▒▒▒▒▓▓ ▓▒▒▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▓ ▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓ ░░░░░░░░░░░▒▒▒▒ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓▓ ▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓░ ░▓███▓ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓░ ▒▓▓▓▒▒▒ ░▒▒▒▓ ████████████ ▒▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▒▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒░ ░███ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ███ ▒▒░░░░░░░░░░▒▒▒▒▒▒▓▓ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ▓██ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒▓ ▓██ ▒▒░░░▒▒▒░░░▒▒░▒▒▒▓▓▒ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ███ ░▒▓ ░▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ▓██ ╔────────────────────────────────────────────────────────────────▀▀▀─────────│─╗ │ cosmopolitan § new technology » beyond the pale » files ─╬─│┼ ╚────────────────────────────────────────────────────────────────────────────│─╝ “The functions and structures in [for these APIs] are internal to the operating system and subject to change from one release of Windows to the next, and possibly even between service packs for each release.” ──Quoth MSDN */ NtStatus NtCreateKeyedEvent(int64_t *KeyedEventHandle, uint32_t DesiredAccess, struct NtObjectAttributes *ObjectAttributes, uint32_t Flags); NtStatus NtReleaseKeyedEvent(int64_t KeyedEventHandle, void *KeyValue, bool32 Alertable, int64_t *Timeout); NtStatus NtWaitForKeyedEvent(int64_t KeyedEventHandle, void *KeyValue, bool32 Alertable, int64_t *Timeout); COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_NT_EVENT_H_ */
4,347
49
jart/cosmopolitan
false
cosmopolitan/libc/nt/nt/file.h
#ifndef COSMOPOLITAN_LIBC_NT_NT_FILE_H_ #define COSMOPOLITAN_LIBC_NT_NT_FILE_H_ #include "libc/nt/enum/fileinformationclass.h" #include "libc/nt/enum/status.h" #include "libc/nt/struct/iostatusblock.h" #include "libc/nt/thunk/msabi.h" #include "libc/nt/typedef/ioapcroutine.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /* ░░░░ ▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▓▓▓▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓░ ▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▒ ▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ █▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓░ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▒ ▒▒▒▒▓▓ ▓▒▒▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▓ ▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓ ░░░░░░░░░░░▒▒▒▒ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓▓ ▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓░ ░▓███▓ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓░ ▒▓▓▓▒▒▒ ░▒▒▒▓ ████████████ ▒▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▒▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒░ ░███ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ███ ▒▒░░░░░░░░░░▒▒▒▒▒▒▓▓ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ▓██ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒▓ ▓██ ▒▒░░░▒▒▒░░░▒▒░▒▒▒▓▓▒ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ███ ░▒▓ ░▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ▓██ ╔────────────────────────────────────────────────────────────────▀▀▀─────────│─╗ │ cosmopolitan § new technology » beyond the pale » files ─╬─│┼ ╚────────────────────────────────────────────────────────────────────────────│─╝ “The functions and structures in [for these APIs] are internal to the operating system and subject to change from one release of Windows to the next, and possibly even between service packs for each release.” ──Quoth MSDN */ struct NtIoStatusBlock; struct NtObjectAttributes; NtStatus NtClose(int64_t handle); NtStatus NtCreateFile(int64_t *out_FileHandle, uint32_t DesiredAccess, struct NtObjectAttributes *ObjectAttributes, struct NtIoStatusBlock *out_IoStatusBlock, int64_t *opt_AllocationSize, uint32_t FileAttributes, uint32_t ShareAccess, uint32_t CreateDisposition, uint32_t CreateOptions, void *opt_EaBuffer, uint32_t EaLength); NtStatus NtReadFile(int64_t FileHandle, void *opt_Event, NtIoApcRoutine opt_ApcRoutine, void *opt_ApcContext, struct NtIoStatusBlock *out_IoStatusBlock, void *out_Buffer, uint32_t Length, int64_t *opt_ByteOffset, uint32_t *opt_Key); NtStatus NtWriteFile(int64_t FileHandle, void *opt_Event, NtIoApcRoutine opt_ApcRoutine, void *opt_ApcContext, struct NtIoStatusBlock *out_IoStatusBlock, const void *Buffer, uint32_t Length, int64_t *opt_ByteOffset, uint32_t *opt_Key); NtStatus NtDuplicateObject(int64_t SourceProcessHandle, void *SourceHandle, void *TargetProcessHandle, void **opt_out_TargetHandle, uint32_t DesiredAcess, uint32_t Attributes, uint32_t options_t); NtStatus NtQueryInformationFile(int64_t FileHandle, struct NtIoStatusBlock *out_IoStatusBlock, void *out_FileInformation, uint32_t FileInformationLength, uint32_t FileInformationClass); NtStatus NtSetInformationFile(int64_t FileHandle, struct NtIoStatusBlock *out_IoStatusBlock, void *FileInformation, uint32_t FileInformationLength, uint32_t FileInformationClass); NtStatus NtDeviceIoControlFile( int64_t FileHandle, int64_t opt_Event, NtIoApcRoutine opt_ApcRoutine, void *opt_ApcContext, struct NtIoStatusBlock *out_IoStatusBlock, uint32_t IoControlCode, void *opt_InputBuffer, uint32_t InputBufferLength, void *opt_out_OutputBuffer, uint32_t OutputBufferLength); NtStatus NtCancelIoFileEx(int64_t FileHandle, struct NtIoStatusBlock *IoRequestToCancel, struct NtIoStatusBlock *IoStatusBlock); NtStatus RtlNtStatusToDosError(NtStatus Status); #if ShouldUseMsabiAttribute() #include "libc/nt/thunk/ntfile.inc" #endif /* ShouldUseMsabiAttribute() */ COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_NT_FILE_H_ */
6,720
99
jart/cosmopolitan
false
cosmopolitan/libc/nt/nt/loader.h
#ifndef COSMOPOLITAN_LIBC_NT_NT_LOADER_H_ #define COSMOPOLITAN_LIBC_NT_NT_LOADER_H_ #include "libc/nt/enum/status.h" #include "libc/nt/typedef/wambda.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /* ░░░░ ▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▓▓▓▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓░ ▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▒ ▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ █▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓░ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▒ ▒▒▒▒▓▓ ▓▒▒▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▓ ▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓ ░░░░░░░░░░░▒▒▒▒ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓▓ ▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓░ ░▓███▓ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓░ ▒▓▓▓▒▒▒ ░▒▒▒▓ ████████████ ▒▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▒▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒░ ░███ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ███ ▒▒░░░░░░░░░░▒▒▒▒▒▒▓▓ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ▓██ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒▓ ▓██ ▒▒░░░▒▒▒░░░▒▒░▒▒▒▓▓▒ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ███ ░▒▓ ░▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ▓██ ╔────────────────────────────────────────────────────────────────▀▀▀─────────│─╗ │ cosmopolitan § new technology » beyond the pale » loader ─╬─│┼ ╚────────────────────────────────────────────────────────────────────────────│─╝ “The functions and structures in [for these APIs] are internal to the operating system and subject to change from one release of Windows to the next, and possibly even between service packs for each release.” ──Quoth MSDN */ struct NtAnsiString; struct NtLdrDataTableEntry; struct NtUnicodeString; NtStatus LdrLoadDll(const char16_t *opt_PathToFile, uint32_t *opt_Flags, struct NtUnicodeString *ModuleFileName, void **out_ModuleHandle); NtStatus LdrUnloadDll(void *ModuleHandle); NtStatus LdrGetProcedureAddress(void *ModuleHandle, struct NtAnsiString *opt_ProcedureName, uint32_t opt_Ordinal, wambda *out_ProcedureAddress); NtStatus LdrGetDllHandle(const char16_t *opt_PathToFile, uint32_t opt_Unused, struct NtUnicodeString *ModuleFileName, void **out_ModuleHandle); COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_NT_LOADER_H_ */
4,599
55
jart/cosmopolitan
false
cosmopolitan/libc/nt/nt/time.h
#ifndef COSMOPOLITAN_LIBC_NT_NT_THREAD_H_ #define COSMOPOLITAN_LIBC_NT_NT_THREAD_H_ #include "libc/nt/enum/status.h" #include "libc/nt/thunk/msabi.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /* ░░░░ ▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▓▓▓▓▓▓░ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓░ ▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▒ ▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ █▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓░ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▒ ▒▒▒▒▓▓ ▓▒▒▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▓ ▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓ ░░░░░░░░░░░▒▒▒▒ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓▓ ▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓ ░▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓░ ░▓███▓ ▒▒░░░░░░░░░░▒▒▒▒▒▓▓░ ▒▓▓▓▒▒▒ ░▒▒▒▓ ████████████ ▒▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▒▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒░ ░███ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ███ ▒▒░░░░░░░░░░▒▒▒▒▒▒▓▓ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ▓██ ▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒▓ ▓██ ▒▒░░░▒▒▒░░░▒▒░▒▒▒▓▓▒ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ███ ░▒▓ ░▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ▓██ ╔────────────────────────────────────────────────────────────────▀▀▀─────────│─╗ │ cosmopolitan § new technology » beyond the pale » time ─╬─│┼ ╚────────────────────────────────────────────────────────────────────────────│─╝ “The functions and structures in [for these APIs] are internal to the operating system and subject to change from one release of Windows to the next, and possibly even between service packs for each release.” ──Quoth MSDN */ NtStatus NtDelayExecution(bool32 alertable, int64_t *AbsCobolOrNegRelHectoNano); #if ShouldUseMsabiAttribute() #include "libc/nt/nt/thunk/time.inc" #endif /* ShouldUseMsabiAttribute() */ COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_NT_THREAD_H_ */
4,052
44
jart/cosmopolitan
false
cosmopolitan/libc/nt/nt/thunk/time.inc
#define NtDelayExecution(...) __imp_NtDelayExecution(__VA_ARGS__) extern typeof(NtDelayExecution) *const __imp_NtDelayExecution __msabi;
138
4
jart/cosmopolitan
false
cosmopolitan/libc/nt/nt/thunk/process.inc
#define NtQueryInformationProcess(...) \ __imp_NtQueryInformationProcess(__VA_ARGS__) extern typeof(NtQueryInformationProcess) *const __imp_NtQueryInformationProcess __msabi;
182
6
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/errormodeflags.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_ERRORMODEFLAGS_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_ERRORMODEFLAGS_H_ #define kNtErrorModeDefault 0x0 #define kNtSemFailcriticalerrors 0x1 #define kNtSemNogpfaulterrorbox 0x2 #define kNtSemNoopenfileerrorbox 0x8000 #endif /* COSMOPOLITAN_LIBC_NT_ENUM_ERRORMODEFLAGS_H_ */
314
10
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/sectioninherit.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_SECTIONINHERIT_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_SECTIONINHERIT_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) enum NtSectionInherit { kNtViewShare = 1, kNtViewUnmap = 2 }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_ENUM_SECTIONINHERIT_H_ */
310
9
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/sc.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_SC_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_SC_H_ #define kNtScSize 0xF000 #define kNtScMove 0xF010 #define kNtScMinimize 0xF020 #define kNtScMaximize 0xF030 #define kNtScNextwindow 0xF040 #define kNtScPrevwindow 0xF050 #define kNtScClose 0xF060 #define kNtScVscroll 0xF070 #define kNtScHscroll 0xF080 #define kNtScMousemenu 0xF090 #define kNtScKeymenu 0xF100 #define kNtScArrange 0xF110 #define kNtScRestore 0xF120 #define kNtScTasklist 0xF130 #define kNtScScreensave 0xF140 #define kNtScHotkey 0xF150 #define kNtScDefault 0xF160 #define kNtScMonitorpower 0xF170 #define kNtScContexthelp 0xF180 #define kNtScSeparator 0xF00F #endif /* COSMOPOLITAN_LIBC_NT_ENUM_SC_H_ */
787
26
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/lockfile.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_LOCKFILE_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_LOCKFILE_H_ #define kNtLockfileFailImmediately 1 #define kNtLockfileExclusiveLock 2 #endif /* COSMOPOLITAN_LIBC_NT_ENUM_LOCKFILE_H_ */
219
8
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/version.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_VERSION_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_VERSION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) /** * Known versions of the New Technology executive. * @see IsAtLeastWindows10() * @see NtGetVersion() */ #define kNtVersionWindows10 0x0a00 #define kNtVersionWindows81 0x0603 #define kNtVersionWindows8 0x0602 #define kNtVersionWindows7 0x0601 #define kNtVersionWindowsVista 0x0600 /* intended baseline */ #define kNtVersionWindowsXp64 0x0502 /* end of the road */ #define kNtVersionWindowsXp 0x0501 /* snowball's chance */ #define kNtVersionWindows2000 0x0500 /* the golden age */ #define kNtVersionFuture 0x0b00 #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_ENUM_VERSION_H_ */
771
22
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/ioctl.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_IOCTL_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_IOCTL_H_ #define kNtIoctlDiskGetDriveGeometry 0x00070000u #define kNtIoctlAfdPoll 0x00012024u #endif /* COSMOPOLITAN_LIBC_NT_ENUM_IOCTL_H_ */
234
8
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/filemapflags.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_FILEMAPFLAGS_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_FILEMAPFLAGS_H_ #define kNtFileMapCopy 0x00000001u #define kNtFileMapWrite 0x00000002u #define kNtFileMapRead 0x00000004u #define kNtFileMapExecute 0x00000020u #define kNtFileMapReserve 0x80000000u #define kNtFileMapTargetsInvalid 0x40000000u #define kNtFileMapLargePages 0x20000000u #endif /* COSMOPOLITAN_LIBC_NT_ENUM_FILEMAPFLAGS_H_ */
472
13
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/wsa.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_WSA_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_WSA_H_ #include "libc/nt/errors.h" #define kNtWsaInvalidHandle kNtErrorInvalidHandle #define kNtWsaNotEnoughMemory kNtErrorNotEnoughMemory #define kNtWsaInvalidParameter kNtErrorInvalidParameter #define kNtWsaIoPending kNtErrorIoPending #define kNtWsaIoIncomplete kNtErrorIoIncomplete #define kNtWsaOperationAborted kNtErrorOperationAborted #endif /* COSMOPOLITAN_LIBC_NT_ENUM_WSA_H_ */
479
13
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/keyinformationclass.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_KEYINFORMATIONCLASS_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_KEYINFORMATIONCLASS_H_ #define kNtKeyBasicInformation 0 #define kNtKeyNodeInformation 1 #define kNtKeyFullInformation 2 #define kNtKeyNameInformation 3 #endif /* COSMOPOLITAN_LIBC_NT_ENUM_KEYINFORMATIONCLASS_H_ */
310
10
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/wm.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_WM_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_WM_H_ #define kNtWmNull 0x0000 #define kNtWmCreate 0x0001 #define kNtWmDestroy 0x0002 #define kNtWmMove 0x0003 #define kNtWmSize 0x0005 #define kNtWmActivate 0x0006 #define kNtWmSetfocus 0x0007 #define kNtWmKillfocus 0x0008 #define kNtWmEnable 0x000A #define kNtWmSetredraw 0x000B #define kNtWmSettext 0x000C #define kNtWmGettext 0x000D #define kNtWmGettextlength 0x000E #define kNtWmPaint 0x000F #define kNtWmClose 0x0010 #define kNtWmQueryendsession 0x0011 #define kNtWmQueryopen 0x0013 #define kNtWmEndsession 0x0016 #define kNtWmQuit 0x0012 #define kNtWmErasebkgnd 0x0014 #define kNtWmSyscolorchange 0x0015 #define kNtWmShowwindow 0x0018 #define kNtWmWininichange 0x001A #define kNtWmSettingchange kNtWmWininichange #define kNtWmDevmodechange 0x001B #define kNtWmActivateapp 0x001C #define kNtWmFontchange 0x001D #define kNtWmTimechange 0x001E #define kNtWmCancelmode 0x001F #define kNtWmSetcursor 0x0020 #define kNtWmMouseactivate 0x0021 #define kNtWmChildactivate 0x0022 #define kNtWmQueuesync 0x0023 #define kNtWmGetminmaxinfo 0x0024 #define kNtWmPainticon 0x0026 #define kNtWmIconerasebkgnd 0x0027 #define kNtWmNextdlgctl 0x0028 #define kNtWmSpoolerstatus 0x002A #define kNtWmDrawitem 0x002B #define kNtWmMeasureitem 0x002C #define kNtWmDeleteitem 0x002D #define kNtWmVkeytoitem 0x002E #define kNtWmChartoitem 0x002F #define kNtWmSetfont 0x0030 #define kNtWmGetfont 0x0031 #define kNtWmSethotkey 0x0032 #define kNtWmGethotkey 0x0033 #define kNtWmQuerydragicon 0x0037 #define kNtWmCompareitem 0x0039 #define kNtWmGetobject 0x003D #define kNtWmCompacting 0x0041 #define kNtWmWindowposchanging 0x0046 #define kNtWmWindowposchanged 0x0047 #define kNtWmPower 0x0048 #define kNtWmCopydata 0x004A #define kNtWmCanceljournal 0x004B #define kNtWmNotify 0x004E #define kNtWmInputlangchangerequest 0x0050 #define kNtWmInputlangchange 0x0051 #define kNtWmTcard 0x0052 #define kNtWmHelp 0x0053 #define kNtWmUserchanged 0x0054 #define kNtWmNotifyformat 0x0055 #define kNtWmContextmenu 0x007B #define kNtWmStylechanging 0x007C #define kNtWmStylechanged 0x007D #define kNtWmDisplaychange 0x007E #define kNtWmGeticon 0x007F #define kNtWmSeticon 0x0080 #define kNtWmNccreate 0x0081 #define kNtWmNcdestroy 0x0082 #define kNtWmNccalcsize 0x0083 #define kNtWmNchittest 0x0084 #define kNtWmNcpaint 0x0085 #define kNtWmNcactivate 0x0086 #define kNtWmGetdlgcode 0x0087 #define kNtWmNcmousemove 0x00A0 #define kNtWmNclbuttondown 0x00A1 #define kNtWmNclbuttonup 0x00A2 #define kNtWmNclbuttondblclk 0x00A3 #define kNtWmNcrbuttondown 0x00A4 #define kNtWmNcrbuttonup 0x00A5 #define kNtWmNcrbuttondblclk 0x00A6 #define kNtWmNcmbuttondown 0x00A7 #define kNtWmNcmbuttonup 0x00A8 #define kNtWmNcmbuttondblclk 0x00A9 #define kNtWmNcxbuttondown 0x00AB #define kNtWmNcxbuttonup 0x00AC #define kNtWmNcxbuttondblclk 0x00AD #define kNtWmKeyfirst 0x0100 #define kNtWmKeydown 0x0100 #define kNtWmKeyup 0x0101 #define kNtWmChar 0x0102 #define kNtWmDeadchar 0x0103 #define kNtWmSyskeydown 0x0104 #define kNtWmSyskeyup 0x0105 #define kNtWmSyschar 0x0106 #define kNtWmSysdeadchar 0x0107 #define kNtWmUnichar 0x0109 #define kNtWmKeylast 0x0109 #define kNtWmInitdialog 0x0110 #define kNtWmCommand 0x0111 #define kNtWmSyscommand 0x0112 #define kNtWmTimer 0x0113 #define kNtWmHscroll 0x0114 #define kNtWmVscroll 0x0115 #define kNtWmInitmenu 0x0116 #define kNtWmInitmenupopup 0x0117 #define kNtWmGesture 0x0119 #define kNtWmGesturenotify 0x011A #define kNtWmMenuselect 0x011F #define kNtWmMenuchar 0x0120 #define kNtWmEnteridle 0x0121 #define kNtWmMenurbuttonup 0x0122 #define kNtWmMenudrag 0x0123 #define kNtWmMenugetobject 0x0124 #define kNtWmUninitmenupopup 0x0125 #define kNtWmMenucommand 0x0126 #define kNtWmChangeuistate 0x0127 #define kNtWmUpdateuistate 0x0128 #define kNtWmQueryuistate 0x0129 #define kNtWmMousefirst 0x0200 #define kNtWmMousemove 0x0200 #define kNtWmLbuttondown 0x0201 #define kNtWmLbuttonup 0x0202 #define kNtWmLbuttondblclk 0x0203 #define kNtWmRbuttondown 0x0204 #define kNtWmRbuttonup 0x0205 #define kNtWmRbuttondblclk 0x0206 #define kNtWmMbuttondown 0x0207 #define kNtWmMbuttonup 0x0208 #define kNtWmMbuttondblclk 0x0209 #define kNtWmMousewheel 0x020A #define kNtWmXbuttondown 0x020B #define kNtWmXbuttonup 0x020C #define kNtWmXbuttondblclk 0x020D #define kNtWmMousehwheel 0x020E #define kNtWmMouselast 0x020E #define kNtWmParentnotify 0x0210 #define kNtWmEntermenuloop 0x0211 #define kNtWmExitmenuloop 0x0212 #define kNtWmNextmenu 0x0213 #define kNtWmSizing 0x0214 #define kNtWmCapturechanged 0x0215 #define kNtWmMoving 0x0216 #define kNtWmPowerbroadcast 0x0218 #define kNtWmMdicreate 0x0220 #define kNtWmMdidestroy 0x0221 #define kNtWmMdiactivate 0x0222 #define kNtWmMdirestore 0x0223 #define kNtWmMdinext 0x0224 #define kNtWmMdimaximize 0x0225 #define kNtWmMditile 0x0226 #define kNtWmMdicascade 0x0227 #define kNtWmMdiiconarrange 0x0228 #define kNtWmMdigetactive 0x0229 #define kNtWmMdisetmenu 0x0230 #define kNtWmEntersizemove 0x0231 #define kNtWmExitsizemove 0x0232 #define kNtWmDropfiles 0x0233 #define kNtWmMdirefreshmenu 0x0234 #define kNtWmCut 0x0300 #define kNtWmCopy 0x0301 #define kNtWmPaste 0x0302 #define kNtWmClear 0x0303 #define kNtWmUndo 0x0304 #define kNtWmRenderformat 0x0305 #define kNtWmRenderallformats 0x0306 #define kNtWmDestroyclipboard 0x0307 #define kNtWmDrawclipboard 0x0308 #define kNtWmPaintclipboard 0x0309 #define kNtWmVscrollclipboard 0x030A #define kNtWmSizeclipboard 0x030B #define kNtWmAskcbformatname 0x030C #define kNtWmChangecbchain 0x030D #define kNtWmHscrollclipboard 0x030E #define kNtWmQuerynewpalette 0x030F #define kNtWmPaletteischanging 0x0310 #define kNtWmPalettechanged 0x0311 #define kNtWmHotkey 0x0312 #endif /* COSMOPOLITAN_LIBC_NT_ENUM_WM_H_ */
7,878
186
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/pdh.h
#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_ */
634
18
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/ctrlevent.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_CTRLEVENT_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_CTRLEVENT_H_ #define kNtCtrlCEvent 0 /* SIGINT */ #define kNtCtrlBreakEvent 1 /* SIGQUIT */ #define kNtCtrlCloseEvent 2 /* SIGHUP */ #define kNtCtrlLogoffEvent 5 /* SIGTERM */ #define kNtCtrlShutdownEvent 6 #endif /* COSMOPOLITAN_LIBC_NT_ENUM_CTRLEVENT_H_ */
349
11
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/keyedevent.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_KEYEDEVENT_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_KEYEDEVENT_H_ #include "libc/nt/enum/accessmask.h" #define kNtKeyedeventWait 0x00000001u #define kNtKeyedeventWake 0x00000002u #define kNtKeyedeventAllAccess \ (kNtStandardRightsRequired | kNtKeyedeventWait | kNtKeyedeventWake) #endif /* COSMOPOLITAN_LIBC_NT_ENUM_KEYEDEVENT_H_ */
367
11
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/memflags.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_MEMFLAGS_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_MEMFLAGS_H_ #define kNtMemCommit 0x1000 /* perform physical memory reservation step */ #define kNtMemReserve 0x2000 /* perform virtual memory reservation step */ #define kNtMemDecommit 0x4000 #define kNtMemRelease 0x8000 #define kNtMemFree 0x10000 #define kNtMemPrivate 0x20000 #define kNtMemMapped 0x40000 #define kNtMemReset 0x80000 #define kNtMemTopDown 0x100000 #define kNtMemWriteWatch 0x200000 #define kNtMemPhysical 0x400000 #define kNtMemImage 0x1000000 #define kNtMemLargePages 0x20000000 #define kNtMem4mbPages 0x80000000 #endif /* COSMOPOLITAN_LIBC_NT_ENUM_MEMFLAGS_H_ */
707
20
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/filetype.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_FILETYPE_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_FILETYPE_H_ #define kNtFileTypeUnknown 0x0000 #define kNtFileTypeDisk 0x0001 /* @see S_ISBLK() */ #define kNtFileTypeChar 0x0002 /* @see S_ISCHR() */ #define kNtFileTypePipe 0x0003 /* @see S_ISFIFO() */ #define kNtFileTypeRemote 0x8000 /* unused -MSDN */ #endif /* COSMOPOLITAN_LIBC_NT_ENUM_FILETYPE_H_ */
398
11
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/ht.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_HT_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_HT_H_ #define kNtHterror -2 #define kNtHttransparent -1 #define kNtHtnowhere 0 #define kNtHtclient 1 #define kNtHtcaption 2 #define kNtHtsysmenu 3 #define kNtHtgrowbox 4 #define kNtHtsize kNtHtgrowbox #define kNtHtmenu 5 #define kNtHthscroll 6 #define kNtHtvscroll 7 #define kNtHtminbutton 8 #define kNtHtmaxbutton 9 #define kNtHtleft 10 #define kNtHtright 11 #define kNtHttop 12 #define kNtHttopleft 13 #define kNtHttopright 14 #define kNtHtbottom 15 #define kNtHtbottomleft 16 #define kNtHtbottomright 17 #define kNtHtborder 18 #define kNtHtreduce kNtHtminbutton #define kNtHtzoom kNtHtmaxbutton #define kNtHtsizefirst kNtHtleft #define kNtHtsizelast kNtHtbottomright #define kNtHtobject 19 #define kNtHtclose 20 #define kNtHthelp 21 #endif /* COSMOPOLITAN_LIBC_NT_ENUM_HT_H_ */
984
35
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/startf.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_STARTF_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_STARTF_H_ #define kNtStartfUseshowwindow 0x00000001 /* otherwise wShowWindow ignored */ #define kNtStartfUsesize 0x00000002 /* otherwise dwX / dwY ignored */ #define kNtStartfUseposition 0x00000004 /* otherwise dwX/YSize ignored */ #define kNtStartfUsecountchars 0x00000008 /* otherwise dwX/YCountChars ign. */ #define kNtStartfUsefillattribute 0x00000010 /* etc. */ #define kNtStartfRunfullscreen 0x00000020 #define kNtStartfForceonfeedback 0x00000040 #define kNtStartfForceofffeedback 0x00000080 #define kNtStartfUsestdhandles 0x00000100 /* otherwise hStd... ignored */ #define kNtStartfUsehotkey 0x00000200 #define kNtStartfTitleislinkname 0x00000800 #define kNtStartfTitleisappid 0x00001000 #define kNtStartfPreventpinning 0x00002000 #define kNtStartfUntrustedsource 0x00008000 #endif /* COSMOPOLITAN_LIBC_NT_ENUM_STARTF_H_ */
919
20
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/imageauxsymboltype.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_IMAGEAUXSYMBOLTYPE_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_IMAGEAUXSYMBOLTYPE_H_ #define kNtImageAuxSymbolTypeTokenDef 1 #endif /* COSMOPOLITAN_LIBC_NT_ENUM_IMAGEAUXSYMBOLTYPE_H_ */
215
7
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/progress.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_PROGRESS_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_PROGRESS_H_ #define kNtProgressContinue 0 #define kNtProgressCancel 1 #define kNtProgressStop 2 #define kNtProgressQuiet 3 #endif /* COSMOPOLITAN_LIBC_NT_ENUM_PROGRESS_H_ */
265
10
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/fileinfobyhandleclass.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_FILEINFOBYHANDLECLASS_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_FILEINFOBYHANDLECLASS_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) #define kNtFileBasicInfo 0 /* struct NtFileBasicInformation */ #define kNtFileStandardInfo 1 /* struct NtFileStandardInformation */ #define kNtFileNameInfo 2 /* struct NtFileNameInformation */ #define kNtFileStreamInfo 7 /* struct NtFileStreamInformation */ #define kNtFileCompressionInfo 8 /* struct NtFileCompressionInfo */ #define kNtFileAttributeTagInfo 9 /* struct NtFileAttributeTagInformation */ #define kNtFileIdBothDirectoryInfo 10 #define kNtFileIdBothDirectoryRestartInfo 11 #define kNtFileRemoteProtocolInfo 13 #define kNtFileFullDirectoryInfo 14 /* NtFileFullDirectoryInformation */ #define kNtFileFullDirectoryRestartInfo 15 #define kNtFileStorageInfo 16 /* win8+ */ #define kNtFileAlignmentInfo 17 /* win8+ */ #define kNtFileIdInfo 18 /* win8+ */ #define kNtFileIdExtdDirectoryInfo 19 /* win8+ */ #define kNtFileIdExtdDirectoryRestartInfo 20 /* win8+ */ /* #define kNtFileRenameInfo 4 */ /* #define kNtFileDispositionInfo 5 */ /* #define kNtFileAllocationInfo 6 */ /* #define kNtFileEndOfFileInfo 7 */ /* #define kNtFileIoPriorityHintInfo 13 */ /* #define kNtFileDispositionInfoEx 22 /\* win10+ *\/ */ /* #define kNtFileRenameInfoEx 23 /\* win10+ *\/ */ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_ENUM_FILEINFOBYHANDLECLASS_H_ */
1,543
32
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/event.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_EVENT_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_EVENT_H_ #define kNtEventSystemSound 0x0001 #define kNtEventSystemAlert 0x0002 #define kNtEventSystemForeground 0x0003 #define kNtEventSystemMenustart 0x0004 #define kNtEventSystemMenuend 0x0005 #define kNtEventSystemMenupopupstart 0x0006 #define kNtEventSystemMenupopupend 0x0007 #define kNtEventSystemCapturestart 0x0008 #define kNtEventSystemCaptureend 0x0009 #define kNtEventSystemMovesizestart 0x000A #define kNtEventSystemMovesizeend 0x000B #define kNtEventSystemContexthelpstart 0x000C #define kNtEventSystemContexthelpend 0x000D #define kNtEventSystemDragdropstart 0x000E #define kNtEventSystemDragdropend 0x000F #define kNtEventSystemDialogstart 0x0010 #define kNtEventSystemDialogend 0x0011 #define kNtEventSystemScrollingstart 0x0012 #define kNtEventSystemScrollingend 0x0013 #define kNtEventSystemSwitchstart 0x0014 #define kNtEventSystemSwitchend 0x0015 #define kNtEventSystemMinimizestart 0x0016 #define kNtEventSystemMinimizeend 0x0017 #define kNtEventConsoleCaret 0x4001 #define kNtEventConsoleUpdateRegion 0x4002 #define kNtEventConsoleUpdateSimple 0x4003 #define kNtEventConsoleUpdateScroll 0x4004 #define kNtEventConsoleLayout 0x4005 #define kNtEventConsoleStartApplication 0x4006 #define kNtEventConsoleEndApplication 0x4007 #define kNtEventObjectCreate 0x8000 #define kNtEventObjectDestroy 0x8001 #define kNtEventObjectShow 0x8002 #define kNtEventObjectHide 0x8003 #define kNtEventObjectReorder 0x8004 #define kNtEventObjectFocus 0x8005 #define kNtEventObjectSelection 0x8006 #define kNtEventObjectSelectionadd 0x8007 #define kNtEventObjectSelectionremove 0x8008 #define kNtEventObjectSelectionwithin 0x8009 #define kNtEventObjectStatechange 0x800A #define kNtEventObjectLocationchange 0x800B #define kNtEventObjectNamechange 0x800C #define kNtEventObjectDescriptionchange 0x800D #define kNtEventObjectValuechange 0x800E #define kNtEventObjectParentchange 0x800F #define kNtEventObjectHelpchange 0x8010 #define kNtEventObjectDefactionchange 0x8011 #define kNtEventObjectAcceleratorchange 0x8012 #endif /* COSMOPOLITAN_LIBC_NT_ENUM_EVENT_H_ */
2,418
57
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/consolemodeflags.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_CONSOLEMODEFLAGS_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_CONSOLEMODEFLAGS_H_ /* input mode */ #define kNtEnableProcessedInput 0x0001u #define kNtEnableLineInput 0x0002u #define kNtEnableEchoInput 0x0004u #define kNtEnableWindowInput 0x0008u #define kNtEnableMouseInput 0x0010u #define kNtEnableInsertMode 0x0020u #define kNtEnableQuickEditMode 0x0040u #define kNtEnableExtendedFlags 0x0080u #define kNtEnableAutoPosition 0x0100u #define kNtEnableVirtualTerminalInput 0x0200u /* output mode */ #define kNtEnableProcessedOutput 0x0001u #define kNtEnableWrapAtEolOutput 0x0002u #define kNtEnableVirtualTerminalProcessing 0x0004u #define kNtDisableNewlineAutoReturn 0x0008u #define kNtEnableLvbGridWorldwide 0x0010u #endif /* COSMOPOLITAN_LIBC_NT_ENUM_CONSOLEMODEFLAGS_H_ */
805
24
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/eventtype.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_EVENTTYPE_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_EVENTTYPE_H_ #define kNtNotificationEvent 0 #define kNtSynchronizationEvent 1 #endif /* COSMOPOLITAN_LIBC_NT_ENUM_EVENTTYPE_H_ */
216
8
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/accessmask.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_ACCESSMASK_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_ACCESSMASK_H_ /** * Can also be described as follows: * * struct NtAccessMask { * union { * uint32_t value; * struct { * uint16_t SpecificRights; * unsigned char StandardRights; * unsigned AccessSystemAcl : 1; * unsigned Reserved : 3; * unsigned GenericAll : 1; * unsigned GenericExecute : 1; * unsigned GenericWrite : 1; * unsigned GenericRead : 1; * }; * }; * }; */ #define kNtGenericRead 0x80000000u #define kNtGenericWrite 0x40000000u #define kNtGenericExecute 0x20000000u #define kNtGenericAll 0x10000000u #define kNtDelete 0x00010000u #define kNtReadControl 0x00020000u #define kNtWriteDac 0x00040000u #define kNtWriteOwner 0x00080000u #define kNtSynchronize 0x00100000u #define kNtStandardRightsRequired 0x000F0000u #define kNtStandardRightsRead kNtReadControl #define kNtStandardRightsWrite kNtReadControl #define kNtStandardRightsExecute kNtReadControl #define kNtStandardRightsAll 0x001F0000u #define kNtSpecificRightsAll 0x0000FFFFu #define kNtAccessSystemSecurity 0x01000000u #define kNtMaximumAllowed 0x02000000u #define kNtFileReadData 0x0001u #define kNtFileListDirectory 0x0001u #define kNtFileWriteData 0x0002u #define kNtFileAddFile 0x0002u #define kNtFileAppendData 0x0004u #define kNtFileAddSubdirectory 0x0004u #define kNtFileCreatePipeInstance 0x0004u #define kNtFileReadEa 0x0008u #define kNtFileWriteEa 0x0010u #define kNtFileExecute 0x0020u #define kNtFileTraverse 0x0020u #define kNtFileDeleteChild 0x0040u #define kNtFileReadAttributes 0x0080u #define kNtFileWriteAttributes 0x0100u #define kNtFileAllAccess (kNtStandardRightsRequired | kNtSynchronize | 0x1FFu) #define kNtFileGenericRead \ (kNtStandardRightsRead | kNtFileReadData | kNtFileReadAttributes | \ kNtFileReadEa | kNtSynchronize) #define kNtFileGenericWrite \ (kNtStandardRightsWrite | kNtFileWriteData | kNtFileWriteAttributes | \ kNtFileWriteEa | kNtFileAppendData | kNtSynchronize) #define kNtFileGenericExecute \ (kNtStandardRightsExecute | kNtFileReadAttributes | kNtFileExecute | \ kNtSynchronize) #define kNtTokenAssignPrimary 0x0001u #define kNtTokenDuplicate 0x0002u #define kNtTokenImpersonate 0x0004u #define kNtTokenQuery 0x0008u #define kNtTokenQuerySource 0x0010u #define kNtTokenAdjustPrivileges 0x0020u #define kNtTokenAdjustGroups 0x0040u #define kNtTokenAdjustDefault 0x0080u #define kNtTokenAdjustSessionid 0x0100u #define kNtTokenAllAccessP \ (kNtStandardRightsRequired | kNtTokenAssignPrimary | kNtTokenDuplicate | \ kNtTokenImpersonate | kNtTokenQuery | kNtTokenQuerySource | \ kNtTokenAdjustPrivileges | kNtTokenAdjustGroups | kNtTokenAdjustDefault) #define kNtTokenAllAccess kNtTokenAllAccessP | kNtTokenAdjustSessionid #define kNtTokenRead kNtStandardRightsRead | kNtTokenQuery #define kNtTokenWrite \ (kNtStandardRightsWrite | kNtTokenAdjustPrivileges | kNtTokenAdjustGroups | \ kNtTokenAdjustDefault) #define kNtTokenExecute kNtStandardRightsExecute #define kNtTokenTrustConstraintMask \ (kNtStandardRightsRead | kNtTokenQuery | kNtTokenQuerySource) #define kNtTokenAccessPseudoHandleWin8 kNtTokenQuery | kNtTokenQuerySource #define kNtTokenAccessPseudoHandle kNtTokenAccessPseudoHandleWin8 #endif /* COSMOPOLITAN_LIBC_NT_ENUM_ACCESSMASK_H_ */
3,923
89
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/tpm.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_TPM_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_TPM_H_ #define kNtTpmLeftbutton 0x00000 #define kNtTpmRightbutton 0x00002 #define kNtTpmLeftalign 0x00000 #define kNtTpmCenteralign 0x00004 #define kNtTpmRightalign 0x00008 #define kNtTpmTopalign 0x00000 #define kNtTpmVcenteralign 0x00010 #define kNtTpmBottomalign 0x00020 #define kNtTpmHorizontal 0x00000 #define kNtTpmVertical 0x00040 #define kNtTpmNonotify 0x00080 #define kNtTpmReturncmd 0x00100 #define kNtTpmRecurse 0x00001 #define kNtTpmHorposanimation 0x00400 #define kNtTpmHorneganimation 0x00800 #define kNtTpmVerposanimation 0x01000 #define kNtTpmVerneganimation 0x02000 #define kNtTpmNoanimation 0x04000 #define kNtTpmLayoutrtl 0x08000 #define kNtTpmWorkarea 0x10000 #endif /* COSMOPOLITAN_LIBC_NT_ENUM_TPM_H_ */
890
26
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/processinfoclass.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_PROCESSINFOCLASS_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_PROCESSINFOCLASS_H_ #define kNtProcessBasicInformation 0 #define kNtProcessQuotaLimits 1 #define kNtProcessIoCounters 2 #define kNtProcessVmCounters 3 #define kNtProcessTimes 4 #define kNtProcessBasePriority 5 #define kNtProcessRaisePriority 6 #define kNtProcessDebugPort 7 #define kNtProcessExceptionPort 8 #define kNtProcessAccessToken 9 #define kNtProcessWow64Information 26 #define kNtProcessImageFileName 27 #endif /* COSMOPOLITAN_LIBC_NT_ENUM_PROCESSINFOCLASS_H_ */
615
18
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/filesharemode.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_FILESHAREFLAGS_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_FILESHAREFLAGS_H_ #define kNtFileShareExclusive 0x00000000u #define kNtFileShareRead 0x00000001u #define kNtFileShareWrite 0x00000002u #define kNtFileShareDelete 0x00000004u #endif /* COSMOPOLITAN_LIBC_NT_ENUM_FILESHAREFLAGS_H_ */
319
10
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/threadpriority.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_THREADPRIORITY_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_THREADPRIORITY_H_ #define kNtThreadBasePriorityIdle (-15) #define kNtThreadBasePriorityMin (-2) #define kNtThreadBasePriorityMax 2 #define kNtThreadBasePriorityLowrt 15 #define kNtThreadPriorityIdle kNtThreadBasePriorityIdle #define kNtThreadPriorityLowest kNtThreadBasePriorityMin #define kNtThreadPriorityBelowNormal (kNtThreadPriorityLowest + 1) #define kNtThreadPriorityNormal 0 #define kNtThreadPriorityAboveNormal (kNtThreadPriorityHighest - 1) #define kNtThreadPriorityHighest kNtThreadBasePriorityMax #define kNtThreadPriorityTimeCritical kNtThreadBasePriorityLowrt #endif /* COSMOPOLITAN_LIBC_NT_ENUM_THREADPRIORITY_H_ */
752
18
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/importobjecttype.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_IMPORTOBJECTTYPE_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_IMPORTOBJECTTYPE_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) enum NtImportObjectType { IMPORT_OBJECT_CODE, IMPORT_OBJECT_DATA, IMPORT_OBJECT_CONST }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_ENUM_IMPORTOBJECTTYPE_H_ */
349
13
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/io.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_IO_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_IO_H_ #define kNtIoReparseTagSymlink 0xa000000c #define kNtIoReparseTagMountPoint 0xa0000003 #endif /* COSMOPOLITAN_LIBC_NT_ENUM_IO_H_ */
217
8
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/fileinformationclass.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_FILEINFORMATIONCLASS_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_FILEINFORMATIONCLASS_H_ #define kNtFileDirectoryInformation 1 /*→ struct NtFileDirectoryInformation */ #define kNtFileFullDirectoryInformation 2 /*→ etc. */ #define kNtFileBothDirectoryInformation 3 #define kNtFileBasicInformation 4 #define kNtFileStandardInformation 5 #define kNtFileInternalInformation 6 #define kNtFileEaInformation 7 #define kNtFileAccessInformation 8 #define kNtFileNameInformation 9 #define kNtFileRenameInformation 10 #define kNtFileLinkInformation 11 #define kNtFileNamesInformation 12 #define kNtFileDispositionInformation 13 #define kNtFilePositionInformation 14 #define kNtFileFullEaInformation 15 #define kNtFileModeInformation 16 #define kNtFileAlignmentInformation 17 #define kNtFileAllInformation 18 #define kNtFileAllocationInformation 19 #define kNtFileEndOfFileInformation 20 #define kNtFileAlternateNameInformation 21 #define kNtFileStreamInformation 22 #define kNtFilePipeInformation 23 #define kNtFilePipeLocalInformation 24 #define kNtFilePipeRemoteInformation 25 #define kNtFileMailslotQueryInformation 26 #define kNtFileMailslotSetInformation 27 #define kNtFileCompressionInformation 28 #define kNtFileObjectIdInformation 29 #define kNtFileCompletionInformation 30 #define kNtFileMoveClusterInformation 31 #define kNtFileQuotaInformation 32 #define kNtFileReparsePointInformation 33 #define kNtFileNetworkOpenInformation 34 #define kNtFileAttributeTagInformation 35 #define kNtFileTrackingInformation 36 #define kNtFileIdBothDirectoryInformation 37 #define kNtFileIdFullDirectoryInformation 38 #define kNtFileValidDataLengthInformation 39 #define kNtFileShortNameInformation 40 #define kNtFileInformation_MAX 40 #endif /* COSMOPOLITAN_LIBC_NT_ENUM_FILEINFORMATIONCLASS_H_ */
1,814
47
jart/cosmopolitan
false
cosmopolitan/libc/nt/enum/kwaitreason.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_KWAITREASON_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_KWAITREASON_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) #define kNtExecutive 0 #define kNtFreePage 1 #define kNtPageIn 2 #define kNtPoolAllocation 3 #define kNtDelayExecution 4 #define kNtSuspended 5 #define kNtUserRequest 6 #define kNtWrExecutive 7 #define kNtWrFreePage 8 #define kNtWrPageIn 9 #define kNtWrPoolAllocation 10 #define kNtWrDelayExecution 11 #define kNtWrSuspended 12 #define kNtWrUserRequest 13 #define kNtWrEventPair 14 #define kNtWrQueue 15 #define kNtWrLpcReceive 16 #define kNtWrLpcReply 17 #define kNtWrVirtualMemory 18 #define kNtWrPageOut 19 #define kNtWrRendezvous 20 #define kNtSpare2 21 #define kNtSpare3 22 #define kNtSpare4 23 #define kNtSpare5 24 #define kNtSpare6 25 #define kNtWrKernel 26 #define kNtMaximumWaitReason 27 #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_ENUM_KWAITREASON_H_ */
936
36
jart/cosmopolitan
false