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/user32/GetSubMenu.S | #include "libc/nt/codegen.h"
.imp user32,__imp_GetSubMenu,GetSubMenu,1951
| 74 | 3 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/user32/IsWinEventHookInstalled.S | #include "libc/nt/codegen.h"
.imp user32,__imp_IsWinEventHookInstalled,IsWinEventHookInstalled,2083
| 100 | 3 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/user32/CheckDlgButton.S | #include "libc/nt/codegen.h"
.imp user32,__imp_CheckDlgButton,CheckDlgButton,1574
| 82 | 3 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/user32/CreatePalmRejectionDelayZone.S | #include "libc/nt/codegen.h"
.imp user32,__imp_CreatePalmRejectionDelayZone,CreatePalmRejectionDelayZone,1503
| 110 | 3 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/thunk/synchronization.inc | extern typeof(SleepEx) *const __imp_SleepEx __msabi;
| 53 | 2 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/thunk/thread.inc | #define GetCurrentThread(...) __imp_GetCurrentThread(__VA_ARGS__)
#define GetThreadPriority(...) __imp_GetThreadPriority(__VA_ARGS__)
#define SetThreadPriority(...) __imp_SetThreadPriority(__VA_ARGS__)
extern typeof(GetCurrentThread) *const __imp_GetCurrentThread __msabi;
extern typeof(GetThreadPriority) *const __imp_GetThreadPriority __msabi;
extern typeof(SetThreadPriority) *const __imp_SetThreadPriority __msabi;
| 421 | 8 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/thunk/ntdll.inc | #define NtYieldExecution(...) __imp_NtYieldExecution(__VA_ARGS__)
extern typeof(NtYieldExecution) *const __imp_NtYieldExecution __msabi;
| 138 | 4 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/thunk/runtime.inc | #define FreeEnvironmentStrings(...) __imp_FreeEnvironmentStringsW(__VA_ARGS__)
extern typeof(FreeEnvironmentStrings) *const
__imp_FreeEnvironmentStringsW __msabi;
#define GetCommandLine(...) __imp_GetCommandLineW(__VA_ARGS__)
extern typeof(GetCommandLine) *const __imp_GetCommandLineW __msabi;
#define GetEnvironmentStrings(...) __imp_GetEnvironmentStringsW(__VA_ARGS__)
extern typeof(GetEnvironmentStrings) *const
__imp_GetEnvironmentStringsW __msabi;
#define GetStdHandle(...) __imp_GetStdHandle(__VA_ARGS__)
extern typeof(GetStdHandle) *const __imp_GetStdHandle __msabi;
#define SetStdHandle(...) __imp_SetStdHandle(__VA_ARGS__)
extern typeof(SetStdHandle) *const __imp_SetStdHandle __msabi;
#define ReadFile(...) __imp_ReadFile(__VA_ARGS__)
extern typeof(ReadFile) *const __imp_ReadFile __msabi;
#define WriteFile(...) __imp_WriteFile(__VA_ARGS__)
extern typeof(WriteFile) *const __imp_WriteFile __msabi;
#define SetDefaultDllDirectories(...) \
__imp_SetDefaultDllDirectories(__VA_ARGS__)
extern typeof(SetDefaultDllDirectories) *const
__imp_SetDefaultDllDirectories __msabi;
#define GetCurrentProcess(...) __imp_GetCurrentProcess(__VA_ARGS__)
extern typeof(GetCurrentProcess) *const __imp_GetCurrentProcess __msabi;
#define GetModuleFileName(...) __imp_GetModuleFileNameW(__VA_ARGS__)
extern typeof(GetModuleFileName) *const __imp_GetModuleFileNameW __msabi;
extern typeof(GetLastError) *const __imp_GetLastError __msabi;
extern typeof(ExitProcess) *const __imp_ExitProcess __msabi;
| 1,512 | 37 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/thunk/systeminfo.inc | #define GetSystemInfo(...) __imp_GetSystemInfo(__VA_ARGS__)
#define GetTempPath(...) __imp_GetTempPathW(__VA_ARGS__)
extern typeof(GetSystemInfo) *const __imp_GetSystemInfo __msabi;
extern typeof(GetTempPath) *const __imp_GetTempPathW __msabi;
| 245 | 6 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/thunk/files.inc | #define CopyFile(...) __imp_CopyFileW(__VA_ARGS__)
extern typeof(CopyFile) *const __imp_CopyFileW __msabi;
#define GetFileType(...) __imp_GetFileType(__VA_ARGS__)
extern typeof(GetFileType) *const __imp_GetFileType __msabi;
| 225 | 6 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/thunk/signals.inc | #define SetErrorMode(...) __imp_SetErrorMode(__VA_ARGS__)
#define AddVectoredExceptionHandler(...) \
__imp_AddVectoredExceptionHandler(__VA_ARGS__)
#define AddVectoredContinueHandler(...) \
__imp_AddVectoredContinueHandler(__VA_ARGS__)
#define RemoveVectoredExceptionHandler(...) \
__imp_RemoveVectoredExceptionHandler(__VA_ARGS__)
#define RemoveVectoredContinueHandler(...) \
__imp_RemoveVectoredContinueHandler(__VA_ARGS__)
#define SetUnhandledExceptionFilter(...) \
__imp_SetUnhandledExceptionFilter(__VA_ARGS__)
extern typeof(SetErrorMode) *const __imp_SetErrorMode __msabi;
extern typeof(AddVectoredExceptionHandler) *const
__imp_AddVectoredExceptionHandler __msabi;
extern typeof(AddVectoredContinueHandler) *const
__imp_AddVectoredContinueHandler __msabi;
extern typeof(RemoveVectoredExceptionHandler) *const
__imp_RemoveVectoredExceptionHandler __msabi;
extern typeof(RemoveVectoredContinueHandler) *const
__imp_RemoveVectoredContinueHandler __msabi;
extern typeof(SetUnhandledExceptionFilter) *const
__imp_SetUnhandledExceptionFilter __msabi;
| 1,083 | 24 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/thunk/msabi.h | #ifndef COSMOPOLITAN_LIBC_NT_THUNK_MSABI_H_
#define COSMOPOLITAN_LIBC_NT_THUNK_MSABI_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
#ifdef __x86_64__
#if !defined(__STRICT_ANSI__) && \
(__GNUC__ * 100 + __GNUC_MINOR__ >= 408 || \
(__has_attribute(__ms_abi__) || defined(__llvm__)))
/**
* Defines function as using Microsoft x64 calling convention.
*
* This can be used to define prototypes that allow modern compilers to
* generate code that calls MS ABI functions directly, without needing
* to jump through the assembly thunks.
*/
#define __msabi __attribute__((__ms_abi__))
#endif
/*
* Returns true if header should provide MS-ABI overrides.
*/
#ifndef ShouldUseMsabiAttribute
#if defined(__msabi) && defined(NDEBUG) && !defined(__PG__)
#define ShouldUseMsabiAttribute() 1
#else
#define ShouldUseMsabiAttribute() 0
#endif
#endif
#else
#define __msabi
#ifndef ShouldUseMsabiAttribute
#define ShouldUseMsabiAttribute() 0
#endif
#endif /* __x86_64__ */
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_THUNK_MSABI_H_ */
| 1,077 | 38 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/thunk/memory.inc | extern typeof(LocalFree) *const __imp_LocalFree __msabi;
| 57 | 2 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/thunk/accounting.inc | #define GetProcessTimes(...) __imp_GetProcessTimes(__VA_ARGS__)
extern typeof(GetProcessTimes) *const __imp_GetProcessTimes __msabi;
#define GetThreadTimes(...) __imp_GetThreadTimes(__VA_ARGS__)
extern typeof(GetThreadTimes) *const __imp_GetThreadTimes __msabi;
#define GetUserName(...) __imp_GetUserNameW(__VA_ARGS__)
extern typeof(GetUserName) *const __imp_GetUserNameW __msabi;
| 383 | 9 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/thunk/process.inc | #define GetEnvironmentVariable(...) __imp_GetEnvironmentVariableW(__VA_ARGS__)
extern typeof(GetEnvironmentVariable) *const
__imp_GetEnvironmentVariableW __msabi;
#define SetEnvironmentVariable(...) __imp_SetEnvironmentVariableW(__VA_ARGS__)
extern typeof(SetEnvironmentVariable) *const
__imp_SetEnvironmentVariableW __msabi;
#define GetPriorityClass(...) __imp_GetPriorityClass(__VA_ARGS__)
extern typeof(GetPriorityClass) *const __imp_GetPriorityClass __msabi;
#define SetPriorityClass(...) __imp_SetPriorityClass(__VA_ARGS__)
extern typeof(SetPriorityClass) *const __imp_SetPriorityClass __msabi;
#define GetCurrentProcessId(...) __imp_GetCurrentProcessId(__VA_ARGS__)
extern typeof(GetCurrentProcessId) *const __imp_GetCurrentProcessId __msabi;
extern typeof(FormatMessage) *const __imp_FormatMessageW __msabi;
extern typeof(SetLastError) *const __imp_SetLastError __msabi;
| 891 | 20 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/thunk/ntfile.inc | #define NtQueryInformationFile(...) __imp_NtQueryInformationFile(__VA_ARGS__)
extern typeof(NtQueryInformationFile) *const
__imp_NtQueryInformationFile __msabi;
| 166 | 5 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/thunk/startupinfo.inc | #define GetStartupInfo(...) __imp_GetStartupInfoW(__VA_ARGS__)
extern typeof(GetStartupInfo) *const __imp_GetStartupInfoW __msabi;
| 132 | 4 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/thunk/paint.inc | #define SetPixel(...) __imp_SetPixel(__VA_ARGS__)
#define GetPixel(...) __imp_GetPixel(__VA_ARGS__)
extern typeof(SetPixel) *const __imp_SetPixel __msabi;
extern typeof(GetPixel) *const __imp_GetPixel __msabi;
| 211 | 6 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/thunk/console.inc | #define GetConsoleMode(...) __imp_GetConsoleMode(__VA_ARGS__)
extern typeof(GetConsoleMode) *const __imp_GetConsoleMode __msabi;
#define SetConsoleCP(...) __imp_SetConsoleCP(__VA_ARGS__)
extern typeof(SetConsoleCP) *const __imp_SetConsoleCP __msabi;
#define GetConsoleCP(...) __imp_GetConsoleCP(__VA_ARGS__)
extern typeof(GetConsoleCP) *const __imp_GetConsoleCP __msabi;
#define SetConsoleCtrlHandler(...) __imp_SetConsoleCtrlHandler(__VA_ARGS__)
extern typeof(SetConsoleCtrlHandler) *const __imp_SetConsoleCtrlHandler __msabi;
#define SetConsoleMode(...) __imp_SetConsoleMode(__VA_ARGS__)
extern typeof(SetConsoleMode) *const __imp_SetConsoleMode __msabi;
#define SetConsoleOutputCP(...) __imp_SetConsoleOutputCP(__VA_ARGS__)
extern typeof(SetConsoleOutputCP) *const __imp_SetConsoleOutputCP __msabi;
#define GetConsoleOutputCP(...) __imp_GetConsoleOutputCP(__VA_ARGS__)
extern typeof(GetConsoleOutputCP) *const __imp_GetConsoleOutputCP __msabi;
| 953 | 21 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/MsWSock/WSARecvEx.S | #include "libc/nt/codegen.h"
.imp MsWSock,__imp_WSARecvEx,WSARecvEx,0
.text.windows
WSARecvEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSARecvEx(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn WSARecvEx,globl
.previous
| 286 | 18 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/MsWSock/DisconnectEx.S | #include "libc/nt/codegen.h"
.imp MsWSock,__imp_DisconnectEx,DisconnectEx,0
.text.windows
DisconnectEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_DisconnectEx(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn DisconnectEx,globl
.previous
| 301 | 18 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/MsWSock/TransmitFile.S | #include "libc/nt/codegen.h"
.imp MsWSock,__imp_TransmitFile,TransmitFile,0
.text.windows
TransmitFile:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_TransmitFile(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn TransmitFile,globl
.previous
| 302 | 18 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/MsWSock/AcceptEx.S | #include "libc/nt/codegen.h"
.imp MsWSock,__imp_AcceptEx,AcceptEx,0
.text.windows
AcceptEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_AcceptEx(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn AcceptEx,globl
.previous
| 282 | 18 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/MsWSock/GetAcceptExSockaddrs.S | #include "libc/nt/codegen.h"
.imp MsWSock,__imp_GetAcceptExSockaddrs,GetAcceptExSockaddrs,0
.text.windows
GetAcceptExSockaddrs:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetAcceptExSockaddrs(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetAcceptExSockaddrs,globl
.previous
| 342 | 18 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/pollfd.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_POLLFD_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_POLLFD_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct sys_pollfd_nt {
int64_t handle;
int16_t events;
int16_t revents;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_POLLFD_H_ */
| 311 | 13 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imageenclaveimport.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEENCLAVEIMPORT_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEENCLAVEIMPORT_H_
#include "libc/nt/pedef.internal.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageEnclaveImport {
uint32_t MatchType;
uint32_t MinimumSecurityVersion;
uint8_t UniqueOrAuthorID[kNtImageEnclaveLongIdLength];
uint8_t FamilyID[kNtImageEnclaveShortIdLength];
uint8_t ImageID[kNtImageEnclaveShortIdLength];
uint32_t ImportName;
uint32_t Reserved;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEENCLAVEIMPORT_H_ */
| 592 | 18 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/filepipelocalinformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEPIPELOCALINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEPIPELOCALINFORMATION_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtFilePipeLocalInformation {
uint32_t NamedPipeType;
uint32_t NamedPipeConfiguration;
uint32_t MaximumInstances;
uint32_t CurrentInstances;
uint32_t InboundQuota;
uint32_t ReadDataAvailable;
uint32_t OutboundQuota;
uint32_t WriteQuotaAvailable;
uint32_t NamedPipeState;
uint32_t NamedPipeEnd;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEPIPELOCALINFORMATION_H_ */
| 607 | 20 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/startupinfoex.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_STARTUPINFOEX_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_STARTUPINFOEX_H_
#include "libc/nt/struct/procthreadattributelist.h"
#include "libc/nt/struct/startupinfo.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtStartupInfoEx {
struct NtStartupInfo StartupInfo;
struct NtProcThreadAttributeList *lpAttributeList;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_STARTUPINFOEX_H_ */
| 460 | 14 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/systeminfo.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMINFO_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMINFO_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtSystemInfo {
union {
uint32_t dwOemId;
struct {
uint16_t wProcessorArchitecture;
uint16_t wReserved;
};
};
uint32_t dwPageSize;
void *lpMinimumApplicationAddress;
void *lpMaximumApplicationAddress;
uintptr_t dwActiveProcessorMask;
uint32_t dwNumberOfProcessors;
uint32_t dwProcessorType;
uint32_t dwAllocationGranularity;
uint16_t wProcessorLevel;
uint16_t wProcessorRevision;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMINFO_H_ */
| 677 | 26 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imagesectionheader.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGESECTIONHEADER_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGESECTIONHEADER_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageSectionHeader {
uint8_t Name[8];
union {
uint32_t PhysicalAddress;
uint32_t VirtualSize;
} Misc;
uint32_t VirtualAddress;
uint32_t SizeOfRawData;
uint32_t PointerToRawData;
uint32_t PointerToRelocations;
uint32_t PointerToLinenumbers;
uint16_t NumberOfRelocations;
uint16_t NumberOfLinenumbers;
uint32_t Characteristics;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGESECTIONHEADER_H_ */
| 634 | 23 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imagehotpatchhashes.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEHOTPATCHHASHES_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEHOTPATCHHASHES_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageHotPatchHashes {
uint8_t SHA256[32];
uint8_t SHA1[20];
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEHOTPATCHHASHES_H_ */
| 345 | 12 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/drawtextparams.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_DRAWTEXTPARAMS_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_DRAWTEXTPARAMS_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
struct NtDrawTextParams {
uint32_t cbSize;
int32_t iTabLength;
int32_t iLeftMargin;
int32_t iRightMargin;
uint32_t uiLengthDrawn;
};
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_DRAWTEXTPARAMS_H_ */
| 439 | 17 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/userstack.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_NTUSERSTACK_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_NTUSERSTACK_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtUserStack {
void *FixedStackBase;
void *FixedStackLimit;
void *ExpandableStackBase;
void *ExpandableStackLimit;
void *ExpandableStackBottom;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_NTUSERSTACK_H_ */
| 408 | 15 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/consolescreenbufferinfoex.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLESCREENBUFFERINFOEX_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLESCREENBUFFERINFOEX_H_
#include "libc/nt/struct/coord.h"
#include "libc/nt/struct/smallrect.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtConsoleScreenBufferInfoEx {
uint32_t cbSize; /* sizeof(struct NtConsoleScreenBufferInfoEx) */
struct NtCoord dwSize;
struct NtCoord dwCursorPosition;
uint16_t wAttributes; /* kNt{Foreground,Background}... */
struct NtSmallRect srWindow;
struct NtCoord dwMaximumWindowSize;
uint16_t wPopupAttributes;
bool32 bFullscreenSupported;
uint32_t ColorTable[16]; /* 0x00BBGGRR */
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLESCREENBUFFERINFOEX_H_ */
| 760 | 21 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/pdhfmtcountervalue.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_PDHFMTCOUNTERVALUE_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_PDHFMTCOUNTERVALUE_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
struct NtPdhFmtCountervalue {
uint32_t CStatus;
union {
int32_t longValue;
double doubleValue;
int64_t largeValue;
const char *AnsiStringValue;
const char16_t *WideStringValue;
};
};
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_PDHFMTCOUNTERVALUE_H_ */
| 517 | 20 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imagedynamicrelocationtable.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDYNAMICRELOCATIONTABLE_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDYNAMICRELOCATIONTABLE_H_
#include "libc/nt/struct/imagedynamicrelocation.internal.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageDynamicRelocationTable {
uint32_t Version;
uint32_t Size;
struct NtImageDynamicRelocation DynamicRelocations[0];
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDYNAMICRELOCATIONTABLE_H_ */
| 489 | 14 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/timeval.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_TIMEVAL_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_TIMEVAL_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
struct NtTimeval {
int32_t tv_sec; /* [sic] */
int32_t tv_usec;
};
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_TIMEVAL_H_ */
| 346 | 14 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/overlapped.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_OVERLAPPED_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_OVERLAPPED_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtOverlapped {
uintptr_t Internal;
uintptr_t InternalHigh;
union {
struct {
uint32_t Offset;
uint32_t OffsetHigh;
};
void *Pointer;
};
int64_t hEvent;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_OVERLAPPED_H_ */
| 437 | 20 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/fileendoffileinformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEENDOFFILEINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEENDOFFILEINFORMATION_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct FileEndOfFileInformation {
int64_t EndOfFile;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEENDOFFILEINFORMATION_H_ */
| 342 | 11 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/openfilename.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_OPENFILENAME_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_OPENFILENAME_H_
#include "libc/nt/struct/editmenu.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtOpenFilename {
uint32_t lStructSize;
int64_t hwndOwner;
int64_t hInstance;
const char16_t *lpstrFilter;
char16_t *lpstrCustomFilter;
uint32_t nMaxCustFilter;
uint32_t nFilterIndex;
char16_t *lpstrFile;
uint32_t nMaxFile;
char16_t *lpstrFileTitle;
uint32_t nMaxFileTitle;
const char16_t *lpstrInitialDir;
const char16_t *lpstrTitle;
uint32_t Flags;
uint16_t nFileOffset;
uint16_t nFileExtension;
const char16_t *lpstrDefExt;
intptr_t lCustData;
uint64_t (*lpfnHook)(int64_t, uint32_t, uint64_t, int64_t);
const char16_t *lpTemplateName;
void *pvReserved;
uint32_t dwReserved;
uint32_t FlagsEx;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_OPENFILENAME_H_ */
| 936 | 34 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/memorystatusex.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_MEMORYSTATUSEX_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_MEMORYSTATUSEX_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtMemoryStatusEx {
uint32_t dwLength;
uint32_t dwMemoryLoad;
uint64_t ullTotalPhys;
uint64_t ullAvailPhys;
uint64_t ullTotalPageFile;
uint64_t ullAvailPageFile;
uint64_t ullTotalVirtual;
uint64_t ullAvailVirtual;
uint64_t ullAvailExtendedVirtual;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_MEMORYSTATUSEX_H_ */
| 529 | 19 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imagefileheader.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEFILEHEADER_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEFILEHEADER_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageFileHeader {
uint16_t Machine;
uint16_t NumberOfSections;
uint32_t TimeDateStamp;
uint32_t PointerToSymbolTable;
uint32_t NumberOfSymbols;
uint16_t SizeOfOptionalHeader;
uint16_t Characteristics;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEFILEHEADER_H_ */
| 484 | 17 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/criticalsectiondebug.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_CRITICALSECTIONDEBUG_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_CRITICALSECTIONDEBUG_H_
#include "libc/nt/struct/criticalsection.h"
#include "libc/nt/struct/linkedlist.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtCriticalSectionDebug {
uint16_t Type;
uint16_t CreatorBackTraceIndex;
struct NtCriticalSection *CriticalSection;
struct NtLinkedList ProcessLocksList;
uint32_t EntryCount;
uint32_t ContentionCount;
uint32_t Spare[2];
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_CRITICALSECTIONDEBUG_H_ */
| 598 | 19 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imageboundimportdescriptor.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEBOUNDIMPORTDESCRIPTOR_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEBOUNDIMPORTDESCRIPTOR_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageBoundImportDescriptor {
uint32_t TimeDateStamp;
uint16_t OffsetModuleName;
uint16_t NumberOfModuleForwarderRefs;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEBOUNDIMPORTDESCRIPTOR_H_ */
| 426 | 13 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imageimportbyname.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEIMPORTBYNAME_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEIMPORTBYNAME_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageImportByName {
uint16_t Hint;
char Name[1];
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEIMPORTBYNAME_H_ */
| 328 | 12 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/memoryrangeentry.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_MEMORYRANGEENTRY_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_MEMORYRANGEENTRY_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtMemoryRangeEntry {
void *VirtualAddress;
size_t NumberOfBytes;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_MEMORYRANGEENTRY_H_ */
| 339 | 12 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/filezerodatainformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEZERODATAINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEZERODATAINFORMATION_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtFileZeroDataInformation {
uint64_t FileOffset;
uint64_t BeyondFinalZero;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEZERODATAINFORMATION_H_ */
| 370 | 12 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/win32fileattributedata.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_WIN32FILEATTRIBUTEDATA_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_WIN32FILEATTRIBUTEDATA_H_
#include "libc/nt/struct/filetime.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtWin32FileAttributeData {
uint32_t dwFileAttributes; /* âNtFileFlagAndAttributes */
struct NtFileTime ftCreationTime;
struct NtFileTime ftLastAccessTime;
struct NtFileTime ftLastWriteTime;
uint32_t nFileSizeHigh;
uint32_t nFileSizeLow;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_WIN32FILEATTRIBUTEDATA_H_ */
| 576 | 17 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/memorybasicinformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_MEMORYBASICINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_MEMORYBASICINFORMATION_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtMemoryBasicInformation {
void *BaseAddress;
void *AllocationBase;
uint32_t AllocationProtect;
uint64_t RegionSize;
uint32_t State;
uint32_t Protect;
uint32_t Type;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_MEMORYBASICINFORMATION_H_ */
| 468 | 17 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imageresourcedirstring.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERESOURCEDIRSTRING_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERESOURCEDIRSTRING_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageResourceDirString {
uint16_t Length;
char16_t NameString[1];
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERESOURCEDIRSTRING_H_ */
| 360 | 12 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/charinfo.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_CHARINFO_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_CHARINFO_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtCharInfo {
union {
char16_t UnicodeChar;
char AsciiChar;
} Char;
uint16_t Attributes;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_CHARINFO_H_ */
| 348 | 15 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/systemthreads.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMTHREADS_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMTHREADS_H_
#include "libc/nt/enum/kwaitreason.h"
#include "libc/nt/struct/clientid.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtSystemThreads {
int64_t KernelTime;
int64_t UserTime;
int64_t CreateTime;
uint32_t WaitTime;
void *StartAddress;
struct NtClientId ClientId;
int32_t Priority;
int32_t BasePriority;
uint32_t ContextSwitchCount;
int State;
uint32_t WaitReason;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMTHREADS_H_ */
| 602 | 23 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imageimportdescriptor.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEIMPORTDESCRIPTOR_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEIMPORTDESCRIPTOR_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageImportDescriptor {
union {
uint32_t Characteristics;
uint32_t OriginalFirstThunk;
};
uint32_t TimeDateStamp;
uint32_t ForwarderChain;
uint32_t Name;
uint32_t FirstThunk;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEIMPORTDESCRIPTOR_H_ */
| 482 | 18 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/filenamesinformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILENAMESINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILENAMESINFORMATION_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtFileNamesInformation {
uint32_t NextEntryOffset;
uint32_t FileIndex;
uint32_t FileNameLength;
char16_t FileName[1];
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILENAMESINFORMATION_H_ */
| 408 | 14 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/objectnameinformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_OBJECTNAMEINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_OBJECTNAMEINFORMATION_H_
#include "libc/nt/struct/unicodestring.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtObjectNameInformation {
struct NtUnicodeString Name;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_OBJECTNAMEINFORMATION_H_ */
| 384 | 12 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/startupinfo.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_STARTUPINFO_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_STARTUPINFO_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtStartupInfo {
uint32_t cb /* = sizeof(struct NtStartupInfo) */;
uint16_t *lpReserved;
char16_t *lpDesktop;
char16_t *lpTitle; /* title of *new* console window only */
uint32_t dwX; /* position of window on screen */
uint32_t dwY;
uint32_t dwXSize;
uint32_t dwYSize;
uint32_t dwXCountChars; /* used to dimension the dos terminal */
uint32_t dwYCountChars;
uint32_t dwFillAttribute;
uint32_t dwFlags;
uint16_t wShowWindow;
uint16_t cbReserved2;
uint8_t *lpReserved2;
union {
struct {
int64_t hStdInput;
int64_t hStdOutput;
int64_t hStdError;
};
int64_t stdiofds[3];
};
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_STARTUPINFO_H_ */
| 893 | 33 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/genericmapping.h | #ifndef COSMOPOLITAN_LIBC_NT_GENERICMAPPING_H_
#define COSMOPOLITAN_LIBC_NT_GENERICMAPPING_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtGenericMapping {
unsigned int GenericRead;
unsigned int GenericWrite;
unsigned int GenericExecute;
unsigned int GenericAll;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_GENERICMAPPING_H_ */
| 377 | 14 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/fileaccessinformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEACCESSINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEACCESSINFORMATION_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtFileAccessInformation {
uint32_t AccessFlags;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEACCESSINFORMATION_H_ */
| 335 | 11 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/teb.h | #ifndef COSMOPOLITAN_LIBC_NT_TEB_H_
#define COSMOPOLITAN_LIBC_NT_TEB_H_
#include "libc/intrin/segmentation.h"
#include "libc/nt/struct/peb.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
/*
* These macros address directly into NT's TEB a.k.a. TIB
* Any function that does this needs the `noasan` keyword
*/
#define NtGetPeb() gs((struct NtPeb **)(0x60ULL))
#define NtGetTeb() gs((void **)(0x30)) /* %gs:0 linear address */
#define NtGetPid() gs((uint32_t *)(0x40)) /* GetCurrentProcessId() */
#define NtGetTid() gs((uint32_t *)(0x48)) /* GetCurrentThreadId() */
#define NtGetErr() gs((int *)(0x68))
#define _NtGetSeh() gs((void **)(0x00))
#define _NtGetStackHigh() gs((void **)(0x08))
#define _NtGetStackLow() gs((void **)(0x10))
#define _NtGetSubsystemTib() gs((void **)(0x18))
#define _NtGetFib() gs((void **)(0x20))
#define _NtGetEnv() gs((char16_t **)(0x38))
#define _NtGetRpc() gs((void **)(0x50))
#define _NtGetTls() gs((void **)(0x58)) /* cf. gs((long *)0x1480 + i0..64) */
#endif /* __GNUC__ && !__STRICT_ANSI__ */
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_TEB_H_ */
| 1,265 | 29 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/windowplacement.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_WINDOWPLACEMENT_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_WINDOWPLACEMENT_H_
#include "libc/nt/struct/point.h"
#include "libc/nt/struct/rect.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtWindowPlacement {
uint32_t length;
uint32_t flags;
uint32_t showCmd;
struct NtPoint ptMinPosition;
struct NtPoint ptMaxPosition;
struct NtRect rcNormalPosition;
struct NtRect rcDevice;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_WINDOWPLACEMENT_H_ */
| 535 | 19 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/objectallinformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_OBJECTALLINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_OBJECTALLINFORMATION_H_
#include "libc/nt/struct/objecttypeinformation.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtObjectAllInformation {
uint32_t NumberOfObjects;
struct NtObjectTypeInformation ObjectTypeInformation[1];
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_OBJECTALLINFORMATION_H_ */
| 444 | 13 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imageresourcedirectoryentry.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERESOURCEDIRECTORYENTRY_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERESOURCEDIRECTORYENTRY_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageResourceDirectoryEntry {
/* TODO(jart): No bitfields. */
union {
struct {
uint32_t NameOffset : 31;
uint32_t NameIsString : 1;
};
uint32_t Name;
uint16_t Id;
};
union {
uint32_t OffsetToData;
struct {
uint32_t OffsetToDirectory : 31;
uint32_t DataIsDirectory : 1;
};
};
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERESOURCEDIRECTORYENTRY_H_ */
| 642 | 26 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/systeminterruptinformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMINTERRUPTINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMINTERRUPTINFORMATION_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtSystemInterruptInformation {
unsigned char Reserved1[24];
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMINTERRUPTINFORMATION_H_ */
| 362 | 11 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/processentry32.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_PROCESSENTRY32_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_PROCESSENTRY32_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtProcessEntry32 {
uint32_t dwSize;
uint32_t cntUsage; /* unused */
uint32_t th32ProcessID;
uint64_t th32DefaultHeapID; /* unused */
uint32_t th32ModuleID; /* unused */
uint32_t cntThreads;
uint32_t th32ParentProcessID;
int32_t cPriClassBase;
uint32_t dwFlags; /* unused */
char16_t szExeFile[260];
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_PROCESSENTRY32_H_ */
| 588 | 20 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/systemregistryquotainformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMREGISTRYQUOTAINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMREGISTRYQUOTAINFORMATION_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtSystemRegistryQuotaInformation {
uint32_t RegistryQuotaAllowed;
uint32_t RegistryQuotaUsed;
void *Reserved1;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMREGISTRYQUOTAINFORMATION_H_ */
| 429 | 13 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/win32finddata.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_WIN32FINDDATA_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_WIN32FINDDATA_H_
#include "libc/nt/struct/filetime.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtWin32FindData {
uint32_t dwFileAttributes;
struct NtFileTime ftCreationTime;
struct NtFileTime ftLastAccessTime;
struct NtFileTime ftLastWriteTime;
uint32_t nFileSizeHigh;
uint32_t nFileSizeLow;
uint32_t dwReserved0;
uint32_t dwReserved1;
char16_t cFileName[260];
char16_t cAlternateFileName[14];
uint32_t dwFileType;
uint32_t dwCreatorType;
uint16_t wFinderFlags;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_WIN32FINDDATA_H_ */
| 691 | 24 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/systemexceptioninformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMEXCEPTIONINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMEXCEPTIONINFORMATION_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtSystemExceptionInformation {
unsigned char Reserved1[16];
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMEXCEPTIONINFORMATION_H_ */
| 362 | 11 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/systemhandleentry.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMHANDLEENTRY_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMHANDLEENTRY_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtSystemHandleEntry {
uint32_t OwnerPid;
unsigned char ObjectType;
unsigned char HandleFlags;
unsigned short HandleValue;
void *ObjectPointer;
uint32_t AccessMask;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMHANDLEENTRY_H_ */
| 449 | 16 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imageauxsymboltokendef.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEAUXSYMBOLTOKENDEF_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEAUXSYMBOLTOKENDEF_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageAuxSymbolTokenDef {
uint8_t bAuxType;
uint8_t bReserved;
uint32_t SymbolTableIndex;
uint8_t rgbReserved[12];
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEAUXSYMBOLTOKENDEF_H_ */
| 412 | 14 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imagelinenumber.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGELINENUMBER_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGELINENUMBER_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageLinenumber {
union {
uint32_t SymbolTableIndex;
uint32_t VirtualAddress;
} Type;
uint16_t Linenumber;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGELINENUMBER_H_ */
| 390 | 15 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imageboundforwarderref.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEBOUNDFORWARDERREF_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEBOUNDFORWARDERREF_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageBoundForwarderRef {
uint32_t TimeDateStamp;
uint16_t OffsetModuleName;
uint16_t Reserved;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEBOUNDFORWARDERREF_H_ */
| 391 | 13 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/fdset.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FDSET_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_FDSET_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
struct NtFdSet {
uint32_t fd_count;
int64_t fd_array[64];
};
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FDSET_H_ */
| 334 | 14 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imagecoffsymbolsheader.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGECOFFSYMBOLSHEADER_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGECOFFSYMBOLSHEADER_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageCoffSymbolsHeader {
uint32_t NumberOfSymbols;
uint32_t LvaToFirstSymbol;
uint32_t NumberOfLinenumbers;
uint32_t LvaToFirstLinenumber;
uint32_t RvaToFirstByteOfCode;
uint32_t RvaToLastByteOfCode;
uint32_t RvaToFirstByteOfData;
uint32_t RvaToLastByteOfData;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGECOFFSYMBOLSHEADER_H_ */
| 567 | 18 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/filemailslotsetinformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEMAILSLOTSETINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEMAILSLOTSETINFORMATION_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtFileMailslotSetInformation {
int64_t ReadTimeout;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEMAILSLOTSETINFORMATION_H_ */
| 354 | 11 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/exceptionframe.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_EXCEPTIONFRAME_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_EXCEPTIONFRAME_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtExceptionFrame {
struct NtExceptionFrame *Prev;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_EXCEPTIONFRAME_H_ */
| 316 | 11 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/filenameinformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILENAMEINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILENAMEINFORMATION_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtFileNameInformation {
uint32_t FileNameLength;
char16_t FileName[1];
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILENAMEINFORMATION_H_ */
| 354 | 12 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/fileallinformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEALLINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEALLINFORMATION_H_
#include "libc/nt/struct/fileaccessinformation.h"
#include "libc/nt/struct/filealignmentinformation.h"
#include "libc/nt/struct/filebasicinformation.h"
#include "libc/nt/struct/fileeainformation.h"
#include "libc/nt/struct/fileinternalinformation.h"
#include "libc/nt/struct/filemodeinformation.h"
#include "libc/nt/struct/filenameinformation.h"
#include "libc/nt/struct/filepositioninformation.h"
#include "libc/nt/struct/filestandardinformation.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtFileAllInformation {
struct NtFileBasicInformation BasicInformation;
struct NtFileStandardInformation StandardInformation;
struct NtFileInternalInformation InternalInformation;
struct NtFileEaInformation EaInformation;
struct NtFileAccessInformation AccessInformation;
struct NtFilePositionInformation PositionInformation;
struct NtFileModeInformation ModeInformation;
struct NtFileAlignmentInformation AlignmentInformation;
struct NtFileNameInformation NameInformation;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEALLINFORMATION_H_ */
| 1,217 | 28 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/msg.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_MSG_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_MSG_H_
#include "libc/nt/struct/point.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtMsg {
int64_t hwnd;
uint32_t message;
uint64_t wParam;
int64_t lParam;
uint32_t time;
struct NtPoint pt;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_MSG_H_ */
| 384 | 17 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imageruntimefunctionentry.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERUNTIMEFUNCTIONENTRY_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERUNTIMEFUNCTIONENTRY_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageRuntimeFunctionEntry {
uint32_t BeginAddress;
uint32_t EndAddress;
union {
uint32_t UnwindInfoAddress;
uint32_t UnwindData;
};
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERUNTIMEFUNCTIONENTRY_H_ */
| 447 | 16 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/tokenprivileges.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_TOKENPRIVILEGES_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_TOKENPRIVILEGES_H_
#include "libc/nt/struct/luidandattributes.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtTokenPrivileges {
uint32_t PrivilegeCount;
struct NtLuidAndAttributes Privileges[1];
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_TOKENPRIVILEGES_H_ */
| 404 | 13 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imageresourcedataentry.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERESOURCEDATAENTRY_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERESOURCEDATAENTRY_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageResourceDataEntry {
uint32_t OffsetToData;
uint32_t Size;
uint32_t CodePage;
uint32_t Reserved;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERESOURCEDATAENTRY_H_ */
| 399 | 14 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/ldr.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_LDR_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_LDR_H_
#include "libc/nt/struct/linkedlist.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtLdr {
uint32_t SizeOfThis; /* msdn:reserved */
uint32_t IsInitialized; /* msdn:reserved */
void *SsHandle; /* msdn:reserved */
struct NtLinkedList InLoadOrderModuleList; /* msdn:reserved */
struct NtLinkedList /*â©NtLdrDataTableEntry*/ InMemoryOrderModuleList;
struct NtLinkedList InInitOrderModuleList; /* msdn:reserved */
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_LDR_H_ */
| 677 | 17 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/point.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_POINT_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_POINT_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtPoint {
int32_t x;
int32_t y;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_POINT_H_ */
| 273 | 12 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imageepiloguedynamicrelocationheader.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEEPILOGUEDYNAMICRELOCATIONHEADER_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEEPILOGUEDYNAMICRELOCATIONHEADER_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageEpilogueDynamicRelocationHeader {
uint32_t EpilogueCount;
uint8_t EpilogueByteCount;
uint8_t BranchDescriptorElementSize;
uint16_t BranchDescriptorCount;
/* uint8_t BranchDescriptors[...]; */
/* uint8_t BranchDescriptorBitMap[...]; */
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEEPILOGUEDYNAMICRELOCATIONHEADER_H_ \
*/
| 594 | 17 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/iocounters.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IOCOUNTERS_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IOCOUNTERS_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtIoCounters {
uint64_t ReadOperationCount;
uint64_t WriteOperationCount;
uint64_t OtherOperationCount;
uint64_t ReadTransferCount;
uint64_t WriteTransferCount;
uint64_t OtherTransferCount;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IOCOUNTERS_H_ */
| 454 | 16 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/consoleselectioninfo.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLESELECTIONINFO_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLESELECTIONINFO_H_
#include "libc/nt/struct/coord.h"
#include "libc/nt/struct/smallrect.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtConsoleSelectionInfo {
uint32_t dwFlags;
struct NtCoord dwSelectionAnchor;
struct NtSmallRect srSelection;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLESELECTIONINFO_H_ */
| 469 | 15 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/fileeainformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEEAINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEEAINFORMATION_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtFileEaInformation {
uint32_t EaSize;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEEAINFORMATION_H_ */
| 314 | 11 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/linkedlist.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_LINKEDLIST_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_LINKEDLIST_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
/**
* Dynamic linked list overlay.
*/
struct NtLinkedList {
struct NtLinkedList *Next;
struct NtLinkedList *Prev;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_LINKEDLIST_H_ */
| 365 | 15 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/osversioninfo.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_OSVERSIONINFO_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_OSVERSIONINFO_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
struct NtOsVersionInfo {
uint32_t dwOSVersionInfoSize;
uint32_t dwMajorVersion;
uint32_t dwMinorVersion;
uint32_t dwBuildNumber;
uint32_t dwPlatformId;
char16_t szCSDVersion[128];
uint16_t wServicePackMajor;
uint16_t wServicePackMinor;
uint16_t wSuiteMask;
uint8_t wProductType;
uint8_t wReserved;
};
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_OSVERSIONINFO_H_ */
| 616 | 23 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imagetlsdirectory.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGETLSDIRECTORY_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGETLSDIRECTORY_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageTlsDirectory {
uint64_t StartAddressOfRawData;
uint64_t EndAddressOfRawData;
uint64_t AddressOfIndex;
uint64_t AddressOfCallBacks;
uint32_t SizeOfZeroFill;
uint32_t Characteristics;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGETLSDIRECTORY_H_ */
| 474 | 16 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/coord.h | #ifndef COSMOPOLITAN_LIBC_NT_ENUM_COORD_H_
#define COSMOPOLITAN_LIBC_NT_ENUM_COORD_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtCoord {
int16_t X;
int16_t Y;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_COORD_H_ */
| 267 | 12 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/filecompressioninfo.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILECOMPRESSIONINFO_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILECOMPRESSIONINFO_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtFileCompressionInfo {
int64_t CompressedFileSize;
uint16_t CompressionFormat;
uint8_t CompressionUnitShift;
uint8_t ChunkShift;
uint8_t ClusterShift;
uint8_t Reserved[3];
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILECOMPRESSIONINFO_H_ */
| 464 | 16 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/filedispositioninformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEDISPOSITIONINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEDISPOSITIONINFORMATION_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtFileDispositionInformation {
bool32 DoDeleteFile;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEDISPOSITIONINFORMATION_H_ */
| 354 | 11 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imageexportdirectory.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEEXPORTDIRECTORY_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEEXPORTDIRECTORY_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageExportDirectory {
uint32_t Characteristics;
uint32_t TimeDateStamp;
uint16_t MajorVersion;
uint16_t MinorVersion;
uint32_t Name;
uint32_t Base;
uint32_t NumberOfFunctions;
uint32_t NumberOfNames;
uint32_t AddressOfFunctions;
uint32_t AddressOfNames;
uint32_t AddressOfNameOrdinals;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEEXPORTDIRECTORY_H_ */
| 593 | 21 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/filemodeinformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEMODEINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEMODEINFORMATION_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtFileModeInformation {
uint32_t Mode;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEMODEINFORMATION_H_ */
| 320 | 11 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/filefsfullsizeinformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEFSFULLSIZEINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEFSFULLSIZEINFORMATION_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
struct NtFileFsFullSizeInformation {
int64_t TotalAllocationUnits;
int64_t CallerAvailableAllocationUnits;
int64_t ActualAvailableAllocationUnits;
uint32_t SectorsPerAllocationUnit;
uint32_t BytesPerSector;
};
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEFSFULLSIZEINFORMATION_H_ */
| 549 | 17 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/fileattributetaginformation.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEATTRIBUTETAGINFORMATION_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_FILEATTRIBUTETAGINFORMATION_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtFileAttributeTagInformation {
uint32_t FileAttributes;
uint32_t ReparseTag;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEATTRIBUTETAGINFORMATION_H_ */
| 385 | 12 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imagedosheader.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDOSHEADER_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDOSHEADER_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtImageDosHeader {
uint16_t e_magic;
uint16_t e_cblp;
uint16_t e_cp;
uint16_t e_crlc;
uint16_t e_cparhdr;
uint16_t e_minalloc;
uint16_t e_maxalloc;
uint16_t e_ss;
uint16_t e_sp;
uint16_t e_csum;
uint16_t e_ip;
uint16_t e_cs;
uint16_t e_lfarlc;
uint16_t e_ovno;
uint16_t e_res[4];
uint16_t e_oemid;
uint16_t e_oeminfo;
uint16_t e_res2[10];
uint32_t e_lfanew;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDOSHEADER_H_ */
| 660 | 29 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/paintstruct.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_PAINTSTRUCT_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_PAINTSTRUCT_H_
#include "libc/nt/struct/rect.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
struct NtPaintStruct {
int64_t hdc;
bool32 fErase;
struct NtRect rcPaint;
bool32 fRestore;
bool32 fIncUpdate;
uint8_t rgbReserved[32];
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_PAINTSTRUCT_H_ */
| 428 | 17 | jart/cosmopolitan | false |
cosmopolitan/libc/nt/struct/imageauxsymbolex.internal.h | #ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEAUXSYMBOLEX_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEAUXSYMBOLEX_H_
#include "libc/nt/struct/imageauxsymboltokendef.internal.h"
#include "libc/nt/struct/imagesymbolex.internal.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
union NtImageAuxSymbolEx {
struct {
uint32_t WeakDefaultSymIndex;
uint32_t WeakSearchType;
uint8_t rgbReserved[12];
} Sym;
struct {
uint8_t Name[sizeof(struct NtImageSymbolEx)];
} File;
struct {
uint32_t Length;
uint16_t NumberOfRelocations;
uint16_t NumberOfLinenumbers;
uint32_t CheckSum;
uint16_t Number;
uint8_t Selection;
uint8_t bReserved;
uint16_t HighNumber;
uint8_t rgbReserved[2];
} Section;
struct {
struct NtImageAuxSymbolTokenDef TokenDef;
uint8_t rgbReserved[2];
};
struct {
uint32_t crc;
uint8_t rgbReserved[16];
} CRC;
};
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEAUXSYMBOLEX_H_ */
| 997 | 39 | jart/cosmopolitan | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.