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/struct/filefulleainformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEFULLEAINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_FILEFULLEAINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtFileFullEaInformation { uint32_t NextEntryOffset; uint8_t Flags; uint8_t EaNameLength; uint16_t EaValueLength; char EaName[1]; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEFULLEAINFORMATION_H_ */
424
15
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/processbasicinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_PROCESSBASICINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_PROCESSBASICINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtProcessBasicInformation { int32_t ExitStatus; struct NtPeb *PebBaseAddress; uint32_t *AffinityMask; int32_t BasePriority; int64_t UniqueProcessId; int64_t InheritedFromUniqueProcessId; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_PROCESSBASICINFORMATION_H_ */
490
16
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/iovec.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IOVEC_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IOVEC_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct NtIovec { uint32_t len; char *buf; }; void DescribeIovNt(const struct NtIovec *, uint32_t, ssize_t); COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IOVEC_H_ */
382
16
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/systemprocessorperformanceinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMPROCESSORPERFORMANCEINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMPROCESSORPERFORMANCEINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtSystemProcessorPerformanceInformation { int64_t IdleTime; int64_t KernelTime; int64_t UserTime; int64_t Reserved1[2]; uint32_t Reserved2; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMPROCESSORPERFORMANCEINFORMATION_H_*/
482
15
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/nonpageddebuginfo.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_NONPAGEDDEBUGINFO_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_NONPAGEDDEBUGINFO_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtNonPagedDebugInfo { uint16_t Signature; uint16_t Flags; uint32_t Size; uint16_t Machine; uint16_t Characteristics; uint32_t TimeDateStamp; uint32_t CheckSum; uint32_t SizeOfImage; uint64_t ImageBase; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_NONPAGEDDEBUGINFO_H_ */
493
19
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/objectbasicinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_OBJECTBASICINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_OBJECTBASICINFORMATION_H_ #include "libc/nt/enum/accessmask.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtObjectBasicInformation { uint32_t Attributes; uint32_t GrantedAccess; uint32_t HandleCount; uint32_t PointerCount; uint32_t PagedPoolUsage; uint32_t NonPagedPoolUsage; uint32_t Reserved[3]; uint32_t NameInformationLength; uint32_t TypeInformationLength; uint32_t SecurityDescriptorLength; int64_t CreateTime; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_OBJECTBASICINFORMATION_H_ */
658
22
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imagehotpatchinfo.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEHOTPATCHINFO_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEHOTPATCHINFO_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageHotPatchInfo { uint32_t Version; uint32_t Size; uint32_t SequenceNumber; uint32_t BaseImageList; uint32_t BaseImageCount; uint32_t BufferOffset; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEHOTPATCHINFO_H_ */
437
16
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imagedebugdirectory.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDEBUGDIRECTORY_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDEBUGDIRECTORY_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageDebugDirectory { uint32_t Characteristics; uint32_t TimeDateStamp; uint16_t MajorVersion; uint16_t MinorVersion; uint32_t Type; uint32_t SizeOfData; uint32_t AddressOfRawData; uint32_t PointerToRawData; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDEBUGDIRECTORY_H_ */
505
18
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/securitydescriptor.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SECURITYDESCRIPTOR_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_SECURITYDESCRIPTOR_H_ #include "libc/nt/struct/acl.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtSecurityDescriptor { uint8_t Revision; uint8_t Sbz1; uint16_t Control; void *Owner; void *Group; struct NtAcl *Sacl; struct NtAcl *Dacl; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SECURITYDESCRIPTOR_H_ */
461
18
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/filestreaminformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILESTREAMINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_FILESTREAMINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtFileStreamInformation { uint32_t NextEntryOffset; uint32_t StreamNameLength; int64_t StreamSize; int64_t StreamAllocationSize; char16_t StreamName[1]; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILESTREAMINFORMATION_H_ */
448
15
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/filesegmentelement.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILESEGMENTELEMENT_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_FILESEGMENTELEMENT_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) union NtFileSegmentElement { void *Buffer; uint64_t Alignment; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILESEGMENTELEMENT_H_ */
336
12
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/reparsedatabuffer.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_REPARSEDATABUFFER_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_REPARSEDATABUFFER_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct NtReparseDataBuffer { uint32_t ReparseTag; uint16_t ReparseDataLength; uint16_t Reserved; union { struct { uint16_t SubstituteNameOffset; uint16_t SubstituteNameLength; uint16_t PrintNameOffset; uint16_t PrintNameLength; uint32_t Flags; char16_t PathBuffer[1]; } SymbolicLinkReparseBuffer; struct { uint16_t SubstituteNameOffset; uint16_t SubstituteNameLength; uint16_t PrintNameOffset; uint16_t PrintNameLength; char16_t PathBuffer[1]; } MountPointReparseBuffer; struct { uint8_t DataBuffer[1]; } GenericReparseBuffer; }; }; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_REPARSEDATABUFFER_H_ */
944
35
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/ipadapteraddresses.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IP_ADAPTER_ADDRESSES_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IP_ADAPTER_ADDRESSES_H_ #include "libc/nt/struct/guid.h" #include "libc/nt/winsock.h" /* Constants ----------------------------------------------------------- */ #define kNtMaxAdapterAddressLength 8 #define kNtMaxDnsSuffixStringLength 256 #define kNtMaxDhcpv6DuidLength 130 /* Values for the 'Flags' parameter of GetAdaptersAddresses */ #define kNtGaaFlagSkipUnicast 0x0001 #define kNtGaaFlagSkipAnycast 0x0002 #define kNtGaaFlagSkipMulticast 0x0004 #define kNtGaaFlagSkipDnsServer 0x0008 #define kNtGaaFlagIncludePrefix 0x0010 #define kNtGaaFlagSkipFriendlyName 0x0020 #define kNtGaaFlagIncludeWinsInfo 0x0040 #define kNtGaaFlagIncludeGateways 0x0080 #define kNtGaaFlagIncludeAllInterfaces 0x0100 #define kNtGaaFlagIncludeAllCompartments 0x0200 #define kNtGaaFlagIncludeTunnelBindingorder 0x0400 #define kNtGaaFlagSkipDnsInfo 0x0800 /* Values for the IfType parameter * See: * https://docs.microsoft.com/en-us/windows/win32/api/iptypes/ns-iptypes-ip_adapter_addresses_lh */ #define kNtIfTypeOther 1 #define kNtIfTypeEthernetCsmacd 6 #define kNtIfTypeIso88025Tokenring 9 #define kNtIfTypePpp 23 #define kNtIfTypeSoftwareLoopback 24 #define kNtIfTypeAtm 37 #define kNtIfTypeIeee80211 71 /* wifi */ #define kNtIfTypeTunnel 131 #define kNtIfTypeIeee1394 144 /* firewire */ #define kNtIpAdapterDdnsEnabled 0x0001 #define kNtIpAdapterRegisterAdapterSuffix 0x0002 #define kNtIpAdapterDhcpv4Enabled 0x0004 #define kNtIpAdapterReceiveOnly 0x0008 #define kNtIpAdapterNoMulticast 0x0010 #define kNtIpAdapterIpv6OtherStatefulConfig 0x0020 #define kNtIpAdapterNetbiosOverTcpipEnabled 0x0040 #define kNtIpAdapterIpv4Enabled 0x0080 #define kNtIpAdapterIpv6Enabled 0x0100 #define kNtIpAdapterIpv6Managed 0x0200 #define kNtIpPrefixOriginOther 0 #define kNtIpPrefixOriginManual 1 #define kNtIpPrefixOriginWellKnown 2 #define kNtIpPrefixOriginDhcp 3 #define kNtIpPrefixOriginRouterAdvertisement 4 #define kNtIpPrefixOriginUnchanged 16 #define kNtIpSuffixOriginOther 0 #define kNtIpSuffixOriginManual 1 #define kNtIpSuffixOriginWellKnown 2 #define kNtIpSuffixOriginDhcp 3 #define kNtIpSuffixOriginLinkLayerAddress 4 #define kNtIpSuffixOriginRandom 5 #define kNtIpSuffixOriginUnchanged 16 #define kNtIpDadStateInvalid 0 #define kNtIpDadStateTentative 1 #define kNtIpDadStateDuplicate 2 #define kNtIpDadStateDeprecated 3 #define kNtIpDadStatePreferred 4 #define kNtIfOperStatusUp 1 #define kNtIfOperStatusDown 2 #define kNtIfOperStatusTesting 3 #define kNtIfOperStatusUnknown 4 #define kNtIfOperStatusDormant 5 #define kNtIfOperStatusNotPresent 6 #define kNtIfOperStatusLowerLayerDown 7 #define kNtNetIfConnectionDedicated 1 #define kNtNetIfConnectionPassive 2 #define kNtNetIfConnectionDemand 3 #define kNtNetIfConnectionMaximum 4 #define kNtTunnelTypeNone 0 #define kNtTunnelTypeOther 1 #define kNtTunnelTypeDirect 2 #define kNtTunnelType6to4 11 #define kNtTunnelTypeIsatap 13 #define kNtTunnelTypeTeredo 14 #define kNtTunnelTypeIphttps 15 #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /* Inner Types --------------------------------------------------------- */ struct NtIpAdapterUnicastAddress { uint32_t Length; uint32_t Flags; struct NtIpAdapterUnicastAddress *Next; struct NtSocketAddress Address; uint32_t PrefixOrigin; /* kNtIpPrefixOrigin... */ uint32_t SuffixOrigin; /* kNtIpSuffixOrigin... */ uint32_t DadState; /* kNtIpDadState... */ uint32_t ValidLifetime; uint32_t PreferredLifetime; uint32_t LeaseLifetime; uint8_t OnLinkPrefixLength; }; struct NtIpAdapterAnycastAddress { uint32_t Length; uint32_t Flags; struct NtIpAdapterAnycastAddress *Next; struct NtSocketAddress Address; }; struct NtIpAdapterMulticastAddress { uint32_t Length; uint32_t Flags; struct NtIpAdapterMulticastAddress *Next; struct NtSocketAddress Address; }; struct NtIpAdapterDnsServerAddress { uint32_t Length; uint32_t Reserved; struct NtIpAdapterDnsServerAddress *Next; struct NtSocketAddress Address; }; struct NtIpAdapterPrefix { uint32_t Length; uint32_t Flags; struct NtIpAdapterPrefix *Next; struct NtSocketAddress Address; uint32_t PrefixLength; }; struct NtIpAdapterWinsServerAddress { uint32_t Length; uint32_t Reserved; struct NtIpAdapterWinsServerAddress *Next; struct NtSocketAddress Address; }; struct NtIpAdapterGatewayAddress { uint32_t Length; uint32_t Reserved; struct NtIpAdapterGatewayAddress *Next; struct NtSocketAddress Address; }; struct NtIpAdapterDnsSuffix { struct NtIpAdapterDnsSuffix *Next; uint16_t String[kNtMaxDnsSuffixStringLength]; }; /* Top level ----------------------------------------------------------- */ struct NtIpAdapterAddresses { uint32_t Length; uint32_t IfIndex; struct NtIpAdapterAddresses *Next; char *AdapterName; struct NtIpAdapterUnicastAddress *FirstUnicastAddress; struct NtIpAdapterAnycastAddress *FirstAnycastAddress; struct NtIpAdapterMulticastAddress *FirstMulticastAddress; struct NtIpAdapterDnsServerAddress *FirstDnsServerAddress; uint16_t *DnsSuffix; uint16_t *Description; uint16_t *FriendlyName; uint8_t PhysicalAddress[kNtMaxAdapterAddressLength]; uint32_t PhysicalAddressLength; uint32_t Flags; /* kNtIpAdapter... */ uint32_t Mtu; uint32_t IfType; /* kNtIfType... */ uint32_t OperStatus; /* kNtIfOperStatus... */ uint32_t Ipv6IfIndex; uint32_t ZoneIndices[16]; struct NtIpAdapterPrefix *FirstPrefix; uint64_t TransmitLinkSpeed; uint64_t ReceiveLinkSpeed; struct NtIpAdapterWinsServerAddress *FirstWinsServerAddress; struct NtIpAdapterGatewayAddress *FirstGatewayAddress; uint32_t Ipv4Metric; uint32_t Ipv6Metric; uint64_t Luid; /* reserved(24bits),NetLuidIndex(24b),IfType(16b) */ struct NtSocketAddress Dhcpv4Server; uint32_t CompartmentId; struct NtGuid NetworkGuid; uint32_t ConnectionType; /* kNtNetIfConnection... */ uint32_t TunnelType; /* kNtTunnelType... */ struct NtSocketAddress Dhcpv6Server; uint8_t Dhcpv6ClientDuid[kNtMaxDhcpv6DuidLength]; uint32_t Dhcpv6ClientDuidLength; uint32_t Dhcpv6Iaid; struct NtIpAdapterDnsSuffix *FirstDnsSuffix; }; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IP_ADAPTER_ADDRESSES_H_ */
6,784
205
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imagedelayloaddescriptor.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDELAYLOADDESCRIPTOR_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDELAYLOADDESCRIPTOR_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageDelayloadDescriptor { union { uint32_t AllAttributes; struct { uint32_t RvaBased : 1; uint32_t ReservedAttributes : 31; }; } Attributes; uint32_t DllNameRVA; uint32_t ModuleHandleRVA; uint32_t ImportAddressTableRVA; uint32_t ImportNameTableRVA; uint32_t BoundImportAddressTableRVA; uint32_t UnloadInformationTableRVA; uint32_t TimeDateStamp; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDELAYLOADDESCRIPTOR_H_ */
685
24
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/rtluserprocessinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_RTLUSERPROCESSINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_RTLUSERPROCESSINFORMATION_H_ #include "libc/nt/struct/clientid.h" #include "libc/nt/struct/sectionimageinformation.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtRtlUserProcessInformation { uint32_t SizeOfThis; int64_t ProcessHandle; int64_t ThreadHandle; struct NtClientId ClientId; struct NtSectionImageInformation ImageInformation; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_RTLUSERPROCESSINFORMATION_H_ */
571
17
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/sectionimageinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SECTIONIMAGEINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_SECTIONIMAGEINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtSectionImageInformation { void *EntryPoint; uint32_t Unknown1; uint32_t StackReserve; uint32_t StackCommit; uint32_t Subsystem; uint16_t MinorSubsystemVersion; uint16_t MajorSubsystemVersion; uint32_t Unknown2; uint32_t Characteristics; uint16_t ImageNumber; uint32_t IsExecutable; uint8_t __wut1; uint32_t __wut2[3]; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SECTIONIMAGEINFORMATION_H_ */
637
23
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/consolescreenbufferinfo.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLESCREENBUFFERINFO_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLESCREENBUFFERINFO_H_ #include "libc/nt/struct/coord.h" #include "libc/nt/struct/smallrect.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtConsoleScreenBufferInfo { struct NtCoord dwSize; struct NtCoord dwCursorPosition; uint16_t wAttributes; struct NtSmallRect srWindow; struct NtCoord dwMaximumWindowSize; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLESCREENBUFFERINFO_H_ */
544
17
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/iostatusblock.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IOSTATUSBLOCK_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IOSTATUSBLOCK_H_ #include "libc/nt/enum/status.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtIoStatusBlock { union { NtStatus Status; void *Pointer; /* reserved for internal use */ }; uint32_t *Information; /* request dependent */ }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IOSTATUSBLOCK_H_ */
448
16
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imagedynamicrelocationv2.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDYNAMICRELOCATIONV2_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDYNAMICRELOCATIONV2_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageDynamicRelocationV2 { uint32_t HeaderSize; uint32_t FixupInfoSize; uint64_t Symbol; uint32_t SymbolGroup; uint32_t Flags; uint8_t FixupInfo[0]; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDYNAMICRELOCATIONV2_H_ */
457
16
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imageloadconfigdirectory.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGELOADCONFIGDIRECTORY_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGELOADCONFIGDIRECTORY_H_ #include "libc/nt/struct/imageloadconfigcodeintegrity.internal.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageLoadConfigDirectory { uint32_t Size; uint32_t TimeDateStamp; uint16_t MajorVersion; uint16_t MinorVersion; uint32_t GlobalFlagsClear; uint32_t GlobalFlagsSet; uint32_t CriticalSectionDefaultTimeout; uint64_t DeCommitFreeBlockThreshold; uint64_t DeCommitTotalFreeThreshold; uint64_t LockPrefixTable; uint64_t MaximumAllocationSize; uint64_t VirtualMemoryThreshold; uint64_t ProcessAffinityMask; uint32_t ProcessHeapFlags; uint16_t CSDVersion; uint16_t DependentLoadFlags; uint64_t EditList; uint64_t SecurityCookie; uint64_t SEHandlerTable; uint64_t SEHandlerCount; uint64_t GuardCFCheckFunctionPointer; uint64_t GuardCFDispatchFunctionPointer; uint64_t GuardCFFunctionTable; uint64_t GuardCFFunctionCount; uint32_t GuardFlags; struct NtImageLoadConfigCodeIntegrity CodeIntegrity; uint64_t GuardAddressTakenIatEntryTable; uint64_t GuardAddressTakenIatEntryCount; uint64_t GuardLongJumpTargetTable; uint64_t GuardLongJumpTargetCount; uint64_t DynamicValueRelocTable; uint64_t CHPEMetadataPointer; uint64_t GuardRFFailureRoutine; uint64_t GuardRFFailureRoutineFunctionPointer; uint32_t DynamicValueRelocTableOffset; uint16_t DynamicValueRelocTableSection; uint16_t Reserved2; uint64_t GuardRFVerifyStackPointerFunctionPointer; uint32_t HotPatchTableOffset; uint32_t Reserved3; uint64_t EnclaveConfigurationPointer; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGELOADCONFIGDIRECTORY_H_ */
1,761
52
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/context.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_CONTEXT_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_CONTEXT_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtM128A { uint64_t Low; int64_t High; }; struct NtXmmSaveArea32 { /* basically same as struct FpuState */ uint16_t ControlWord; uint16_t StatusWord; uint8_t TagWord; uint8_t Reserved1; uint16_t ErrorOpcode; uint32_t ErrorOffset; uint16_t ErrorSelector; uint16_t Reserved2; uint32_t DataOffset; uint16_t DataSelector; uint16_t Reserved3; uint32_t MxCsr; uint32_t MxCsr_Mask; struct NtM128A FloatRegisters[8]; struct NtM128A XmmRegisters[16]; uint8_t Reserved4[96]; }; struct NtContext { uint64_t P1Home, P2Home, P3Home, P4Home, P5Home, P6Home; uint32_t ContextFlags; uint32_t MxCsr; uint16_t SegCs, SegDs, SegEs, SegFs, SegGs, SegSs; uint32_t EFlags; uint64_t Dr0, Dr1, Dr2, Dr3, Dr6, Dr7; uint64_t Rax, Rcx, Rdx, Rbx, Rsp, Rbp, Rsi, Rdi; uint64_t R8, R9, R10, R11, R12, R13, R14, R15; uint64_t Rip; union { struct NtXmmSaveArea32 FltSave; struct NtXmmSaveArea32 FloatSave; struct { struct NtM128A Header[2]; struct NtM128A Legacy[8]; struct NtM128A Xmm0, Xmm1, Xmm2, Xmm3, Xmm4, Xmm5, Xmm6, Xmm7; struct NtM128A Xmm8, Xmm9, Xmm10, Xmm11, Xmm12, Xmm13, Xmm14, Xmm15; }; }; struct NtM128A VectorRegister[26]; uint64_t VectorControl; uint64_t DebugControl; uint64_t LastBranchToRip; uint64_t LastBranchFromRip; uint64_t LastExceptionToRip; uint64_t LastExceptionFromRip; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_CONTEXT_H_ */
1,625
60
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/filepositioninformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEPOSITIONINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_FILEPOSITIONINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtFilePositionInformation { int64_t CurrentByteOffset; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEPOSITIONINFORMATION_H_ */
348
11
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/kernelusertimes.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_KERNELUSERTIMES_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_KERNELUSERTIMES_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtKernelUserTimes { uint64_t CreateFileTime; uint64_t ExitFileTime; int64_t KernelTime; int64_t UserTime; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_KERNELUSERTIMES_H_ */
381
14
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/clientid.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_CLIENTID_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_CLIENTID_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtClientId { void *UniqueProcess; void *UniqueThread; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_CLIENTID_H_ */
304
12
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/filestandardinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILESTANDARDINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_FILESTANDARDINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtFileStandardInformation { int64_t AllocationSize; int64_t EndOfFile; uint32_t NumberOfLinks; bool32 DeletePending; bool32 Directory; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILESTANDARDINFORMATION_H_ */
436
15
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/inputrecord.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_INPUTRECORD_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_INPUTRECORD_H_ #include "libc/nt/struct/coord.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtKeyEventRecord { bool32 bKeyDown; uint16_t wRepeatCount; uint16_t wVirtualKeyCode; uint16_t wVirtualScanCode; union { int16_t UnicodeChar; char AsciiChar; } uChar; unsigned int dwControlKeyState; }; struct NtMouseEventRecord { struct NtCoord dwMousePosition; uint32_t dwButtonState; uint32_t dwControlKeyState; uint32_t dwEventFlags; }; struct NtWindowBufferSizeRecord { struct NtCoord dwSize; }; struct NtMenuEventRecord { uint32_t dwCommandId; }; struct NtFocusEventRecord { bool32 bSetFocus; }; struct NtInputRecord { uint16_t EventType; union { struct NtKeyEventRecord KeyEvent; struct NtMouseEventRecord MouseEvent; struct NtWindowBufferSizeRecord WindowBufferSizeEvent; struct NtMenuEventRecord MenuEvent; struct NtFocusEventRecord FocusEvent; } Event; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_INPUTRECORD_H_ */
1,117
50
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/criticalsection.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_CRITICALSECTION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_CRITICALSECTION_H_ #include "libc/nt/struct/criticalsectiondebug.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtCriticalSection { struct NtCriticalSectionDebug *DebugInfo; int32_t LockCount; int32_t RecursionCount; void *OwningThread; void *LockSemaphore; uintptr_t SpinCount; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_CRITICALSECTION_H_ */
495
17
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/peb.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_PEB_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_PEB_H_ #include "libc/nt/struct/ldr.h" #include "libc/nt/struct/unicodestring.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtPeb { union { struct { unsigned char InheritedAddressSpace; unsigned char ReadImageFileExecOptions; unsigned char BeingDebugged; unsigned char __wut1; }; uint64_t __wut2; }; uint64_t Mutant; uint64_t ImageBaseAddress; struct NtLdr *Ldr; uint64_t ProcessParameters; uint64_t SubSystemData; uint64_t ProcessHeap; uint64_t FastPebLock; uint64_t __wut3; uint64_t __wut4; uint64_t __wut5; union { uint64_t KernelCallbackTable; uint64_t UserSharedInfoPtr; }; uint32_t SystemReserved; uint32_t __wut6; uint64_t __wut7; uint64_t TlsExpansionCounter; uint64_t TlsBitmap; uint32_t TlsBitmapBits[2]; uint64_t ReadOnlySharedMemoryBase; uint64_t __wut8; uint64_t ReadOnlyStaticServerData; uint64_t AnsiCodePageData; uint64_t OemCodePageData; uint64_t UnicodeCaseTableData; uint32_t NumberOfProcessors; #ifdef __x86_64__ uint32_t NtGlobalFlag; #else uint64_t NtGlobalFlag; #endif int64_t CriticalSectionTimeout; uint64_t HeapSegmentReserve; uint64_t HeapSegmentCommit; uint64_t HeapDeCommitTotalFreeThreshold; uint64_t HeapDeCommitFreeBlockThreshold; uint32_t NumberOfHeaps; uint32_t MaximumNumberOfHeaps; uint64_t ProcessHeaps; uint64_t GdiSharedHandleTable; uint64_t ProcessStarterHelper; uint64_t GdiDCAttributeList; uint64_t LoaderLock; union { struct { uint32_t OSMajorVersion; uint32_t OSMinorVersion; }; uint64_t OSVersion; }; uint16_t OSBuildNumber; uint16_t OSCSDVersion; uint32_t OSPlatformId; uint32_t ImageSubsystem; uint32_t ImageSubsystemMajorVersion; uint64_t ImageSubsystemMinorVersion; union { uint64_t ImageProcessAffinityMask; uint64_t ActiveProcessAffinityMask; }; uint64_t GdiHandleBuffer[38 - __SIZEOF_POINTER__]; uint64_t PostProcessInitRoutine; uint64_t TlsExpansionBitmap; uint32_t TlsExpansionBitmapBits[32]; uint64_t SessionId; uint64_t AppCompatFlags; uint64_t AppCompatFlagsUser; uint64_t pShimData; uint64_t AppCompatInfo; struct NtUnicodeString CSDVersion; uint64_t ActivationContextData; uint64_t ProcessAssemblyStorageMap; uint64_t SystemDefaultActivationContextData; uint64_t SystemAssemblyStorageMap; uint64_t MinimumStackCommit; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_PEB_H_ */
2,566
97
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/filealignmentinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEALIGNMENTINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_FILEALIGNMENTINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtFileAlignmentInformation { uint32_t AlignmentRequirement; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEALIGNMENTINFORMATION_H_ */
356
11
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/systemtimeofdayinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMTIMEOFDAYINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMTIMEOFDAYINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtSystemTimeofdayInformation { int64_t BootTime; int64_t CurrentTime; int64_t TimeZoneBias; uint32_t CurrentTimeZoneId; unsigned char Reserved1[20]; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMTIMEOFDAYINFORMATION_H_ */
459
15
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/unicodestring.h
#ifndef COSMOPOLITAN_LIBC_NT_UNICODE_H_ #define COSMOPOLITAN_LIBC_NT_UNICODE_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtUnicodeString { uint16_t Length; uint16_t MaxLength; char16_t *Data; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_UNICODE_H_ */
299
13
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/wndclass.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_WNDCLASS_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_WNDCLASS_H_ #include "libc/nt/typedef/wndproc.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct NtWndClass { uint32_t style; NtWndProc lpfnWndProc; int32_t cbClsExtra; int32_t cbWndExtra; int64_t hInstance; int64_t hIcon; int64_t hCursor; int64_t hbrBackground; const char16_t *lpszMenuName; const char16_t *lpszClassName; }; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_WNDCLASS_H_ */
572
23
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/fpodata.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FPODATA_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_FPODATA_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtFpoData { /* TODO(jart): No bitfields. */ uint32_t ulOffStart; uint32_t cbProcSize; uint32_t cdwLocals; uint16_t cdwParams; uint16_t cbProlog : 8; uint16_t cbRegs : 3; uint16_t fHasSEH : 1; uint16_t fUseBP : 1; uint16_t reserved : 1; uint16_t cbFrame : 2; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FPODATA_H_ */
523
21
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/editmenu.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_EDITMENU_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_EDITMENU_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtEditMenu { int64_t hmenu; uint16_t idEdit; uint16_t idCut; uint16_t idCopy; uint16_t idPaste; uint16_t idClear; uint16_t idUndo; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_EDITMENU_H_ */
391
17
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/valent.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_VALENT_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_VALENT_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtValent { char16_t *ve_valuename; uint32_t ve_valuelen; uintptr_t ve_valueptr; uint32_t ve_type; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_VALENT_H_ */
346
14
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/fileinternalinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEINTERNALINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_FILEINTERNALINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtFileInternalInformation { int64_t IndexNumber; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEINTERNALINFORMATION_H_ */
342
11
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/rtluserprocessparameters.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_RTLUSERPROCESSPARAMETERS_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_RTLUSERPROCESSPARAMETERS_H_ #include "libc/nt/struct/unicodestring.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtRtlUserProcessParameters { uint32_t MaximumLength; uint32_t Length; uint32_t Flags; uint32_t DebugFlags; int64_t ConsoleHandle; uint32_t ConsoleFlags; int64_t StdInputHandle; int64_t StdOutputHandle; int64_t StdErrorHandle; struct NtUnicodeString *CurrentDirectoryPath; int64_t CurrentDirectoryHandle; struct NtUnicodeString *DllPath; struct NtUnicodeString *ImagePathName; struct NtUnicodeString *CommandLine; void *Environment; uint32_t StartingPositionLeft; uint32_t StartingPositionTop; uint32_t Width; uint32_t Height; uint32_t CharWidth; uint32_t CharHeight; uint32_t ConsoleTextAttributes; uint32_t WindowFlags; uint32_t ShowWindowFlags; struct NtUnicodeString *WindowTitle; struct NtUnicodeString *DesktopName; struct NtUnicodeString *ShellInfo; struct NtUnicodeString *RuntimeData; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_RTLUSERPROCESSPARAMETERS_H_ */
1,185
39
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/processmemorycounters.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_PROCESSMEMORYCOUNTERS_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_PROCESSMEMORYCOUNTERS_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct NtProcessMemoryCountersEx { uint32_t cb; /* count bytes */ uint32_t PageFaultCount; uint64_t PeakWorkingSetSize; uint64_t WorkingSetSize; uint64_t QuotaPeakPagedPoolUsage; uint64_t QuotaPagedPoolUsage; uint64_t QuotaPeakNonPagedPoolUsage; uint64_t QuotaNonPagedPoolUsage; uint64_t PagefileUsage; uint64_t PeakPagefileUsage; uint64_t PrivateUsage; }; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_PROCESSMEMORYCOUNTERS_H_ */
696
23
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/systemhandleinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMHANDLEINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMHANDLEINFORMATION_H_ #include "libc/nt/struct/systemhandleentry.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtSystemHandleInformation { uint32_t Count; struct NtSystemHandleEntry Handle[1]; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMHANDLEINFORMATION_H_ */
423
13
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/systemlookasideinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMLOOKASIDEINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMLOOKASIDEINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtSystemLookasideInformation { unsigned char Reserved1[32]; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMLOOKASIDEINFORMATION_H_ */
362
11
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imagedatadirectory.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDATADIRECTORY_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDATADIRECTORY_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageDataDirectory { uint32_t VirtualAddress; uint32_t Size; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDATADIRECTORY_H_ */
343
12
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/consolecursorinfo.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLECURSORINFO_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLECURSORINFO_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtConsoleCursorInfo { uint32_t dwSize; bool32 bVisible; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_CONSOLECURSORINFO_H_ */
333
12
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/systemprocessinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMPROCESSINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMPROCESSINFORMATION_H_ #include "libc/nt/struct/iocounters.h" #include "libc/nt/struct/unicodestring.h" #include "libc/nt/struct/vmcounters.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtSystemProcessInformation { uint32_t NextEntryOffset; uint32_t NumberOfThreads; int64_t Reserved[3]; int64_t CreateTime; int64_t UserTime; int64_t KernelTime; struct NtUnicodeString ImageName; int32_t BasePriority; int64_t UniqueProcessId; int64_t InheritedFromUniqueProcessId; uint32_t HandleCount; uint32_t SessionId; uint32_t PageDirectoryBase; struct NtVmCounters VirtualMemoryCounters; size_t PrivatePageCount; struct NtIoCounters IoCounters; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMPROCESSINFORMATION_H_ */
895
29
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/linger.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_LINGER_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_LINGER_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct linger_nt { uint16_t l_onoff; /* on/off */ uint16_t l_linger; /* seconds */ }; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_LINGER_H_ */
363
14
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/securityattributes.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SECURITYATTRIBUTES_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_SECURITYATTRIBUTES_H_ #include "libc/nt/struct/securitydescriptor.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtSecurityAttributes { uint32_t nLength; struct NtSecurityDescriptor *lpSecurityDescriptor; bool32 bInheritHandle; }; const char *DescribeNtSecurityAttributes(struct NtSecurityAttributes *); #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SECURITYATTRIBUTES_H_ */
518
16
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/systemperformanceinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMPERFORMANCEINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMPERFORMANCEINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtSystemPerformanceInformation { int64_t IdleTime; int64_t ReadTransferCount; int64_t WriteTransferCount; int64_t OtherTransferCount; uint32_t ReadOperationCount; uint32_t WriteOperationCount; uint32_t OtherOperationCount; uint32_t AvailablePages; uint32_t TotalCommittedPages; uint32_t TotalCommitLimit; uint32_t PeakCommitment; uint32_t PageFaults; uint32_t WriteCopyFaults; uint32_t TransitionFaults; uint32_t CacheTransitionFaults; uint32_t DemandZeroFaults; uint32_t PagesRead; uint32_t PageReadIos; uint32_t CacheReads; uint32_t CacheIos; uint32_t PagefilePagesWritten; uint32_t PagefilePageWriteIos; uint32_t MappedFilePagesWritten; uint32_t MappedFilePageWriteIos; uint32_t PagedPoolUsage; uint32_t NonPagedPoolUsage; uint32_t PagedPoolAllocs; uint32_t PagedPoolFrees; uint32_t NonPagedPoolAllocs; uint32_t NonPagedPoolFrees; uint32_t TotalFreeSystemPtes; uint32_t SystemCodePage; uint32_t TotalSystemDriverPages; uint32_t TotalSystemCodePages; uint32_t SmallNonPagedLookasideListAllocateHits; uint32_t SmallPagedLookasideListAllocateHits; uint32_t Reserved3; uint32_t MmSystemCachePage; uint32_t PagedPoolPage; uint32_t SystemDriverPage; uint32_t FastReadNoWait; uint32_t FastReadWait; uint32_t FastReadResourceMiss; uint32_t FastReadNotPossible; uint32_t FastMdlReadNoWait; uint32_t FastMdlReadWait; uint32_t FastMdlReadResourceMiss; uint32_t FastMdlReadNotPossible; uint32_t MapDataNoWait; uint32_t MapDataWait; uint32_t MapDataNoWaitMiss; uint32_t MapDataWaitMiss; uint32_t PinMappedDataCount; uint32_t PinReadNoWait; uint32_t PinReadWait; uint32_t PinReadNoWaitMiss; uint32_t PinReadWaitMiss; uint32_t CopyReadNoWait; uint32_t CopyReadWait; uint32_t CopyReadNoWaitMiss; uint32_t CopyReadWaitMiss; uint32_t MdlReadNoWait; uint32_t MdlReadWait; uint32_t MdlReadNoWaitMiss; uint32_t MdlReadWaitMiss; uint32_t ReadAheadIos; uint32_t LazyWriteIos; uint32_t LazyWritePages; uint32_t DataFlushes; uint32_t DataPages; uint32_t ContextSwitches; uint32_t FirstLevelTbFills; uint32_t SecondLevelTbFills; uint32_t SystemCalls; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMPERFORMANCEINFORMATION_H_ */
2,482
84
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/vmcounters.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_VMCOUNTERS_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_VMCOUNTERS_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtVmCounters { size_t PeakVirtualSize; size_t VirtualSize; uint32_t PageFaultCount; size_t PeakWorkingSetSize; size_t WorkingSetSize; size_t QuotaPeakPagedPoolUsage; size_t QuotaPagedPoolUsage; size_t QuotaPeakNonPagedPoolUsage; size_t QuotaNonPagedPoolUsage; size_t PagefileUsage; size_t PeakPagefileUsage; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_VMCOUNTERS_H_ */
582
21
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/fileallocationinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEALLOCATIONINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_FILEALLOCATIONINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtFileAllocationInformation { int64_t AllocationSize; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEALLOCATIONINFORMATION_H_ */
353
11
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/systemprocessorinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMPROCESSORINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMPROCESSORINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtSystemProcessorInformation { unsigned short ProcessorArchitecture; unsigned short ProcessorLevel; unsigned short ProcessorRevision; unsigned short Unknown; uint32_t FeatureBits; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMPROCESSORINFORMATION_H_ */
490
15
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imagesymbolex.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGESYMBOLEX_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGESYMBOLEX_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageSymbolEx { union { uint8_t ShortName[8]; struct { uint32_t Short; uint32_t Long; } Name; uint32_t LongName[2]; } N; uint32_t Value; int32_t SectionNumber; uint16_t Type; uint8_t StorageClass; uint8_t NumberOfAuxSymbols; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGESYMBOLEX_H_ */
530
23
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imagethunkdata.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGETHUNKDATA_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGETHUNKDATA_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageThunkData { union { uint64_t ForwarderString; uint64_t Function; uint64_t Ordinal; uint64_t AddressOfData; } u1; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGETHUNKDATA_H_ */
404
16
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/filenetworkopeninformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILENETWORKOPENINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_FILENETWORKOPENINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtFileNetworkOpenInformation { int64_t CreationTime; int64_t LastAccessTime; int64_t LastWriteTime; int64_t ChangeTime; int64_t AllocationSize; int64_t EndOfFile; uint32_t FileAttributes; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILENETWORKOPENINFORMATION_H_ */
502
17
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imageoptionalheader.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEOPTIONALHEADER_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEOPTIONALHEADER_H_ #include "libc/nt/pedef.internal.h" #include "libc/nt/struct/imagedatadirectory.internal.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageOptionalHeader { uint16_t Magic; uint8_t MajorLinkerVersion; uint8_t MinorLinkerVersion; uint32_t SizeOfCode; uint32_t SizeOfInitializedData; uint32_t SizeOfUninitializedData; uint32_t AddressOfEntryPoint; uint32_t BaseOfCode; uint64_t ImageBase; uint32_t SectionAlignment; uint32_t FileAlignment; uint16_t MajorOperatingSystemVersion; uint16_t MinorOperatingSystemVersion; uint16_t MajorImageVersion; uint16_t MinorImageVersion; uint16_t MajorSubsystemVersion; uint16_t MinorSubsystemVersion; uint32_t Win32VersionValue; uint32_t SizeOfImage; uint32_t SizeOfHeaders; uint32_t CheckSum; uint16_t Subsystem; uint16_t DllCharacteristics; uint64_t SizeOfStackReserve; uint64_t SizeOfStackCommit; uint64_t SizeOfHeapReserve; uint64_t SizeOfHeapCommit; uint32_t LoaderFlags; uint32_t NumberOfRvaAndSizes; struct NtImageDataDirectory DataDirectory[kNtImageNumberofDirectoryEntries]; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEOPTIONALHEADER_H_ */
1,315
42
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/overlappedentry.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_OVERLAPPEDENTRY_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_OVERLAPPEDENTRY_H_ #include "libc/nt/struct/overlapped.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct NtOverlappedEntry { uint32_t *lpCompletionKey; struct NtOverlapped *lpOverlapped; uint32_t *Internal; uint32_t dwNumberOfBytesTransferred; }; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_OVERLAPPEDENTRY_H_ */
495
17
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imagehotpatchbase.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEHOTPATCHBASE_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEHOTPATCHBASE_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageHotPatchBase { uint32_t SequenceNumber; uint32_t Flags; uint32_t OriginalTimeDateStamp; uint32_t OriginalCheckSum; uint32_t CodeIntegrityInfo; uint32_t CodeIntegritySize; uint32_t PatchTable; uint32_t BufferOffset; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEHOTPATCHBASE_H_ */
511
18
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/filerenameinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILERENAMEINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_FILERENAMEINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtFileRenameInformation { bool32 Replace; void *RootDir; uint32_t FileNameLength; char16_t FileName[1]; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILERENAMEINFORMATION_H_ */
397
14
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imageceruntimefunctionentry.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGECERUNTIMEFUNCTIONENTRY_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGECERUNTIMEFUNCTIONENTRY_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageCeRuntimeFunctionEntry { uint32_t FuncStart; uint32_t PrologLen : 8; uint32_t FuncLen : 22; uint32_t ThirtyTwoBit : 1; uint32_t ExceptionFlag : 1; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGECERUNTIMEFUNCTIONENTRY_H_ */
467
15
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imageseparatedebugheader.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGESEPARATEDEBUGHEADER_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGESEPARATEDEBUGHEADER_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageSeparateDebugHeader { uint16_t Signature; uint16_t Flags; uint16_t Machine; uint16_t Characteristics; uint32_t TimeDateStamp; uint32_t CheckSum; uint32_t ImageBase; uint32_t SizeOfImage; uint32_t NumberOfSections; uint32_t ExportedNamesSize; uint32_t DebugDirectorySize; uint32_t SectionAlignment; uint32_t Reserved[2]; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGESEPARATEDEBUGHEADER_H_ */
647
23
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/guid.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_GUID_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_GUID_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct NtGuid { uint32_t Data1; uint16_t Data2; uint16_t Data3; uint8_t Data4[8]; }; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_GUID_H_ */
359
16
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/filebasicinfo.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEBASICINFO_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_FILEBASICINFO_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtFileBasicInfo { int64_t CreationTime; /* in 100ns units */ int64_t LastAccessTime; /* in 100ns units */ int64_t LastWriteTime; /* in 100ns units */ int64_t ChangeTime; /* in 100ns units */ uint32_t FileAttributes; /* kNtFileAttributeXXX */ }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEBASICINFO_H_ */
524
15
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/filefulldirectoryinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEFULLDIRECTORYINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_FILEFULLDIRECTORYINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtFileFullDirectoryInformation { uint32_t NextEntryOffset; uint32_t FileIndex; int64_t CreationTime; int64_t LastAccessTime; int64_t LastWriteTime; int64_t ChangeTime; int64_t EndOfFile; int64_t AllocationSize; uint32_t FileAttributes; uint32_t FileNameLength; uint32_t EaSize; char16_t FileName[1]; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEFULLDIRECTORYINFORMATION_H_ */
630
22
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imagentheaders.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGENTHEADERS_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGENTHEADERS_H_ #include "libc/nt/struct/imagefileheader.internal.h" #include "libc/nt/struct/imageoptionalheader.internal.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageNtHeaders { uint32_t Signature; struct NtImageFileHeader FileHeader; struct NtImageOptionalHeader OptionalHeader; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGENTHEADERS_H_ */
501
15
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imagearchivememberheader.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEARCHIVEMEMBERHEADER_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEARCHIVEMEMBERHEADER_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageArchiveMemberHeader { uint8_t Name[16]; uint8_t Date[12]; uint8_t UserID[6]; uint8_t GroupID[6]; uint8_t Mode[8]; uint8_t Size[10]; uint8_t EndHeader[2]; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEARCHIVEMEMBERHEADER_H_ */
469
17
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imagebaserelocation.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEBASERELOCATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEBASERELOCATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageBaseRelocation { uint32_t VirtualAddress; uint32_t SizeOfBlock; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEBASERELOCATION_H_ */
354
12
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/filetime.h
#ifndef COSMOPOLITAN_LIBC_NT_FILETIME_H_ #define COSMOPOLITAN_LIBC_NT_FILETIME_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtFileTime { uint32_t dwLowDateTime; uint32_t dwHighDateTime; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_FILETIME_H_ */
291
12
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/wndclassex.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_WNDCLASSEX_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_WNDCLASSEX_H_ #include "libc/nt/typedef/wndproc.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct NtWndClassEx { uint32_t cbSize; uint32_t style; NtWndProc lpfnWndProc; int32_t cbClsExtra; int32_t cbWndExtra; int64_t hInstance; int64_t hIcon; int64_t hCursor; int64_t hbrBackground; const char16_t *lpszMenuName; const char16_t *lpszClassName; int64_t hIconSm; }; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_WNDCLASSEX_H_ */
618
25
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/smallrect.h
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_SMALLRECT_H_ #define COSMOPOLITAN_LIBC_NT_ENUM_SMALLRECT_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtSmallRect { int16_t Left; int16_t Top; int16_t Right; int16_t Bottom; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_ENUM_SMALLRECT_H_ */
323
14
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imagedynamicrelocation.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDYNAMICRELOCATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDYNAMICRELOCATION_H_ #include "libc/nt/struct/imagebaserelocation.internal.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageDynamicRelocation { uint64_t Symbol; uint32_t BaseRelocSize; struct NtImageBaseRelocation BaseRelocations[0]; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDYNAMICRELOCATION_H_ */
468
14
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/privilegeset.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_PRIVILEGESET_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_PRIVILEGESET_H_ #include "libc/nt/struct/luidandattributes.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtPrivilegeSet { uint32_t PrivilegeCount; uint32_t Control; struct NtLuidAndAttributes Privilege[1]; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_PRIVILEGESET_H_ */
411
14
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/systemtime.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMTIME_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMTIME_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtSystemTime { uint16_t wYear; uint16_t wMonth; uint16_t wDayOfWeek; uint16_t wDay; uint16_t wHour; uint16_t wMinute; uint16_t wSecond; uint16_t wMilliseconds; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMTIME_H_ */
428
18
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/byhandlefileinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_BYHANDLEFILEINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_BYHANDLEFILEINFORMATION_H_ #include "libc/nt/struct/filetime.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtByHandleFileInformation { uint32_t dwFileAttributes; /* ←NtFileFlagAndAttributes */ struct NtFileTime ftCreationFileTime; struct NtFileTime ftLastAccessFileTime; struct NtFileTime ftLastWriteFileTime; uint32_t dwVolumeSerialNumber; uint32_t nFileSizeHigh; uint32_t nFileSizeLow; uint32_t nNumberOfLinks; uint32_t nFileIndexHigh; uint32_t nFileIndexLow; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_BYHANDLEFILEINFORMATION_H_ */
705
21
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imageenclaveconfig.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEENCLAVECONFIG_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEENCLAVECONFIG_H_ #include "libc/nt/pedef.internal.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageEnclaveConfig { uint32_t Size; uint32_t MinimumRequiredConfigSize; uint32_t PolicyFlags; uint32_t NumberOfImports; uint32_t ImportList; uint32_t ImportEntrySize; uint8_t FamilyID[kNtImageEnclaveShortIdLength]; uint8_t ImageID[kNtImageEnclaveShortIdLength]; uint32_t ImageVersion; uint32_t SecurityVersion; uint64_t EnclaveSize; uint32_t NumberOfThreads; uint32_t EnclaveFlags; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEENCLAVECONFIG_H_ */
722
24
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imageresourcedirectory.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERESOURCEDIRECTORY_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERESOURCEDIRECTORY_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageResourceDirectory { uint32_t Characteristics; uint32_t TimeDateStamp; uint16_t MajorVersion; uint16_t MinorVersion; uint16_t NumberOfNamedEntries; uint16_t NumberOfIdEntries; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERESOURCEDIRECTORY_H_ */
482
16
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/acl.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_ACL_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_ACL_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtAcl { uint8_t AclRevision; uint8_t Sbz1; uint16_t AclSize; uint16_t AceCount; uint16_t Sbz2; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_ACL_H_ */
336
15
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/filebasicinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEBASICINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_FILEBASICINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtFileBasicInformation { int64_t CreationTime; /* in 100ns units */ int64_t LastAccessTime; /* in 100ns units */ int64_t LastWriteTime; /* in 100ns units */ int64_t ChangeTime; /* in 100ns units */ uint32_t FileAttributes; /* kNtFileAttributeXXX */ }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEBASICINFORMATION_H_ */
552
15
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/ansistring.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_ANSISTRING_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_ANSISTRING_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtAnsiString { unsigned short Length; unsigned short MaximumLength; char *Buffer; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_ANSISTRING_H_ */
340
13
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imageromoptionalheader.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEROMOPTIONALHEADER_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEROMOPTIONALHEADER_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageRomOptionalHeader { uint16_t Magic; uint8_t MajorLinkerVersion; uint8_t MinorLinkerVersion; uint32_t SizeOfCode; uint32_t SizeOfInitializedData; uint32_t SizeOfUninitializedData; uint32_t AddressOfEntryPoint; uint32_t BaseOfCode; uint32_t BaseOfData; uint32_t BaseOfBss; uint32_t GprMask; uint32_t CprMask[4]; uint32_t GpValue; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEROMOPTIONALHEADER_H_ */
649
23
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/systembasicinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMBASICINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMBASICINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtSystemBasicInformation { unsigned char Reserved1[4]; uint32_t MaximumIncrement; uint32_t PhysicalPageSize; uint32_t NumberOfPhysicalPages; uint32_t LowestPhysicalPage; uint32_t HighestPhysicalPage; uint32_t AllocationGranularity; uint32_t LowestUserAddress; uint32_t HighestUserAddress; uint32_t ActiveProcessors; char NumberOfProcessors; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SYSTEMBASICINFORMATION_H_ */
651
21
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/size.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SIZE_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_SIZE_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct NtSize { int32_t cx; int32_t cy; }; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SIZE_H_ */
313
14
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/objectattributes.h
#ifndef COSMOPOLITAN_LIBC_NT_I_OBJECTATTRIBUTES_H_ #define COSMOPOLITAN_LIBC_NT_I_OBJECTATTRIBUTES_H_ #include "libc/nt/struct/rtluserprocessparameters.h" #include "libc/nt/struct/securityattributes.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtObjectAttributes { uint32_t Length; int64_t RootDirectory; struct NtUnicodeString *ObjectName; uint32_t Attributes; /* OBJ_INHERIT, etc. */ struct NtSecurityDescriptor *SecurityDescriptor; void *SecurityQualityOfService; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_I_OBJECTATTRIBUTES_H_ */
590
18
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imagesymbol.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGESYMBOL_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGESYMBOL_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageSymbol { union { uint8_t ShortName[8]; struct { uint32_t Short; uint32_t Long; } Name; uint32_t LongName[2]; } N; uint32_t Value; uint16_t SectionNumber; uint16_t Type; uint8_t StorageClass; uint8_t NumberOfAuxSymbols; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGESYMBOL_H_ */
523
23
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/afd.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_AFD_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_AFD_H_ #include "libc/nt/enum/status.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct NtAfdPollHandleInfo { int64_t Handle; uint32_t Events; NtStatus Status; }; struct NtAfdPollInfo { int64_t Timeout; uint32_t NumberOfHandles; uint32_t Exclusive; struct NtAfdPollHandleInfo Handles[1]; }; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_AFD_H_ */
521
23
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/rect.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_RECT_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_RECT_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtRect { int32_t left; int32_t top; int32_t right; int32_t bottom; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_RECT_H_ */
309
14
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/filebothdirectoryinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEBOTHDIRECTORYINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_FILEBOTHDIRECTORYINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct NtFileBothDirectoryInformation { uint32_t NextEntryOffset; uint32_t FileIndex; int64_t CreationTime; int64_t LastAccessTime; int64_t LastWriteTime; int64_t ChangeTime; int64_t EndOfFile; int64_t AllocationSize; uint32_t FileAttributes; uint32_t FileNameLength; uint32_t EaSize; unsigned char ShortNameLength; char16_t ShortName[12]; char16_t FileName[1]; }; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEBOTHDIRECTORYINFORMATION_H_ */
731
26
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/objecttypeinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_OBJECTTYPEINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_OBJECTTYPEINFORMATION_H_ #include "libc/nt/struct/genericmapping.h" #include "libc/nt/struct/unicodestring.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtObjectTypeInformation { struct NtUnicodeString TypeName; uint32_t TotalNumberOfObjects; uint32_t TotalNumberOfHandles; uint32_t TotalPagedPoolUsage; uint32_t TotalNonPagedPoolUsage; uint32_t TotalNamePoolUsage; uint32_t TotalHandleTableUsage; uint32_t HighWaterNumberOfObjects; uint32_t HighWaterNumberOfHandles; uint32_t HighWaterPagedPoolUsage; uint32_t HighWaterNonPagedPoolUsage; uint32_t HighWaterNamePoolUsage; uint32_t HighWaterHandleTableUsage; uint32_t InvalidAttributes; struct NtGenericMapping GenericMapping; uint32_t ValidAccessMask; bool32 SecurityRequired; bool32 MaintainHandleCount; uint32_t PoolType; uint32_t DefaultPagedPoolCharge; uint32_t DefaultNonPagedPoolCharge; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_OBJECTTYPEINFORMATION_H_ */
1,102
33
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/ntexceptionpointers.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_NTEXCEPTIONPOINTERS_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_NTEXCEPTIONPOINTERS_H_ #include "libc/nt/struct/context.h" #include "libc/nt/struct/ntexceptionrecord.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtExceptionPointers { struct NtExceptionRecord *ExceptionRecord; struct NtContext *ContextRecord; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_NTEXCEPTIONPOINTERS_H_ */
463
14
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/luidandattributes.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_LUIDANDATTRIBUTES_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_LUIDANDATTRIBUTES_H_ #include "libc/nt/struct/luid.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtLuidAndAttributes { struct NtLuid Luid; uint32_t Attributes; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_LUIDANDATTRIBUTES_H_ */
373
13
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imageauxsymbol.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEAUXSYMBOL_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEAUXSYMBOL_H_ #include "libc/nt/pedef.internal.h" #include "libc/nt/struct/imageauxsymboltokendef.internal.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) union NtImageAuxSymbol { struct { uint32_t TagIndex; union { struct { uint16_t Linenumber; uint16_t Size; } LnSz; uint32_t TotalSize; } Misc; union { struct { uint32_t PointerToLinenumber; uint32_t PointerToNextFunction; } Function; struct { uint16_t Dimension[4]; } Array; } FcnAry; uint16_t TvIndex; } Sym; struct { uint8_t Name[kNtImageSizeofSymbol]; } 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; } Section; struct NtImageAuxSymbolTokenDef TokenDef; struct { uint32_t crc; uint8_t rgbReserved[14]; } CRC; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEAUXSYMBOL_H_ */
1,172
50
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imageloadconfigcodeintegrity.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGELOADCONFIGCODEINTEGRITY_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGELOADCONFIGCODEINTEGRITY_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageLoadConfigCodeIntegrity { uint16_t Flags; uint16_t Catalog; uint32_t CatalogOffset; uint32_t Reserved; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGELOADCONFIGCODEINTEGRITY_H_ */
424
14
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/luid.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_LUID_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_LUID_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtLuid { uint32_t LowPart; int32_t HighPart; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_LUID_H_ */
283
12
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/procthreadattributelist.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_PROCTHREADATTRIBUTELIST_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_PROCTHREADATTRIBUTELIST_H_ struct NtProcThreadAttributeList; #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_PROCTHREADATTRIBUTELIST_H_ */
230
7
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imageprologuedynamicrelocationheader.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEPROLOGUEDYNAMICRELOCATIONHEADER_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEPROLOGUEDYNAMICRELOCATIONHEADER_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImagePrologueDynamicRelocationHeader { uint8_t PrologueByteCount; uint8_t PrologueBytes[0]; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEPROLOGUEDYNAMICRELOCATIONHEADER_H_ \ */
438
13
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/ldrdatatableentry.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_LDRDATATABLEENTRY_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_LDRDATATABLEENTRY_H_ #include "libc/nt/struct/linkedlist.h" #include "libc/nt/struct/unicodestring.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtLdrDataTableEntry { struct NtLinkedList InLoadOrderLinks; /* msdn:reserved */ struct NtLinkedList InMemoryOrderLinks; struct NtLinkedList InInitOrderLinks; /* msdn:reserved */ void *DllBase; void *EntryPoint; union { uint32_t SizeOfImage; unsigned char SizeOfImagePadding[__SIZEOF_POINTER__]; }; struct NtUnicodeString FullDllName; struct NtUnicodeString BaseDllName; uint32_t Flags; uint16_t Load_Count; uint16_t TlsIndex; union { struct NtLinkedList HashLinks; struct { void *SectionPointer; uint32_t CheckSum; }; }; union { void *LoadedImports; uint32_t TimeDateStamp; }; void *EntryPointActivationContext; void *PatchInformation; struct NtLinkedList ForwarderLinks; struct NtLinkedList ServiceTagLinks; struct NtLinkedList StaticLinks; void *ContextInformation; uintptr_t OriginalBase; int64_t LoadTime; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_LDRDATATABLEENTRY_H_ */
1,252
45
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/importobjectheader.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMPORTOBJECTHEADER_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMPORTOBJECTHEADER_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImportObjectHeader { /* TODO(jart): No bitfields. */ uint16_t Sig1; uint16_t Sig2; uint16_t Version; uint16_t Machine; uint32_t TimeDateStamp; uint32_t SizeOfData; union { uint16_t Ordinal; uint16_t Hint; }; uint16_t Type : 2; uint16_t NameType : 3; uint16_t Reserved : 11; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMPORTOBJECTHEADER_H_ */
584
24
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/ntexceptionrecord.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_NTEXCEPTIONRECORD_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_NTEXCEPTIONRECORD_H_ #define kNtExceptionMaximumParameters 15 #define kNtExceptionNoncontinuable 1 #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtExceptionRecord { uint32_t ExceptionCode; /* kNtException... */ uint32_t ExceptionFlags; /* kNtExceptionNoncontinuable */ struct NtExceptionRecord *ExceptionRecord; /* nested exceptions */ void *ExceptionAddress; /* %rip */ uint32_t NumberParameters; /* #ExceptionInformation */ uint32_t *ExceptionInformation[kNtExceptionMaximumParameters]; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_NTEXCEPTIONRECORD_H_ */
781
20
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/filedirectoryinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEDIRECTORYINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_FILEDIRECTORYINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtFileDirectoryInformation { uint32_t NextEntryOffset; uint32_t FileIndex; int64_t CreationTime; int64_t LastAccessTime; int64_t LastWriteTime; int64_t ChangeTime; int64_t EndOfFile; int64_t AllocationSize; uint32_t FileAttributes; uint32_t FileNameLength; char16_t FileName[1]; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEDIRECTORYINFORMATION_H_ */
595
21
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imagedebugmisc.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDEBUGMISC_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDEBUGMISC_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageDebugMisc { uint32_t DataType; uint32_t Length; bool32 Unicode; uint8_t Reserved[3]; uint8_t Data[1]; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGEDEBUGMISC_H_ */
383
15
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/imagerelocation.internal.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERELOCATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERELOCATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtImageRelocation { union { uint32_t VirtualAddress; uint32_t RelocCount; }; uint32_t SymbolTableIndex; uint16_t Type; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_IMAGERELOCATION_H_ */
402
16
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/processinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_PROCESSINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_PROCESSINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtProcessInformation { int64_t hProcess; int64_t hThread; uint32_t dwProcessId; uint32_t dwThreadId; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_PROCESSINFORMATION_H_ */
385
14
jart/cosmopolitan
false
cosmopolitan/libc/nt/struct/filemailslotqueryinformation.h
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_FILEMAILSLOTQUERYINFORMATION_H_ #define COSMOPOLITAN_LIBC_NT_STRUCT_FILEMAILSLOTQUERYINFORMATION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) struct NtFileMailslotQueryInformation { uint32_t MaximumMessageSize; uint32_t MailslotQuota; uint32_t NextMessageSize; uint32_t MessagesAvailable; int64_t ReadTimeout; }; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_NT_STRUCT_FILEMAILSLOTQUERYINFORMATION_H_ */
477
15
jart/cosmopolitan
false