HyperDbg Debugger
Loading...
Searching...
No Matches
Windows.h File Reference

Windows specific headers. More...

Go to the source code of this file.

Classes

struct  _RTL_PROCESS_MODULE_INFORMATION
 
struct  _RTL_PROCESS_MODULES
 

Macros

#define STATUS_UNSUCCESSFUL   ((NTSTATUS)0xC0000001L)
 

Typedefs

typedef struct _RTL_PROCESS_MODULE_INFORMATION RTL_PROCESS_MODULE_INFORMATION
 
typedef struct _RTL_PROCESS_MODULE_INFORMATIONPRTL_PROCESS_MODULE_INFORMATION
 
typedef struct _RTL_PROCESS_MODULES RTL_PROCESS_MODULES
 
typedef struct _RTL_PROCESS_MODULESPRTL_PROCESS_MODULES
 
typedef enum _SYSTEM_INFORMATION_CLASS2 SYSTEM_INFORMATION_CLASS2
 

Enumerations

enum  _SYSTEM_INFORMATION_CLASS2 { SystemModuleInformation = 11 }
 

Functions

FORCEINLINE VOID InitializeListHead (_Out_ PLIST_ENTRY ListHead)
 
_Check_return_ FORCEINLINE BOOLEAN IsListEmpty (_In_ PLIST_ENTRY ListHead)
 
FORCEINLINE BOOLEAN RemoveEntryList (_In_ PLIST_ENTRY Entry)
 
FORCEINLINE PLIST_ENTRY RemoveHeadList (_Inout_ PLIST_ENTRY ListHead)
 
FORCEINLINE PLIST_ENTRY RemoveTailList (_Inout_ PLIST_ENTRY ListHead)
 
FORCEINLINE VOID InsertTailList (_Inout_ PLIST_ENTRY ListHead, _Inout_ PLIST_ENTRY Entry)
 
FORCEINLINE VOID InsertHeadList (_Inout_ PLIST_ENTRY ListHead, _Inout_ PLIST_ENTRY Entry)
 
FORCEINLINE VOID AppendTailList (_Inout_ PLIST_ENTRY ListHead, _Inout_ PLIST_ENTRY ListToAppend)
 
FORCEINLINE PSINGLE_LIST_ENTRY PopEntryList (_Inout_ PSINGLE_LIST_ENTRY ListHead)
 
FORCEINLINE VOID PushEntryList (_Inout_ PSINGLE_LIST_ENTRY ListHead, _Inout_ PSINGLE_LIST_ENTRY Entry)
 

Detailed Description

Windows specific headers.

Author
Sina Karvandi (sina@.nosp@m.hype.nosp@m.rdbg..nosp@m.org)
Version
1.0
Date
2024-06-24

Macro Definition Documentation

◆ STATUS_UNSUCCESSFUL

#define STATUS_UNSUCCESSFUL   ((NTSTATUS)0xC0000001L)

Typedef Documentation

◆ PRTL_PROCESS_MODULE_INFORMATION

◆ PRTL_PROCESS_MODULES

◆ RTL_PROCESS_MODULE_INFORMATION

◆ RTL_PROCESS_MODULES

◆ SYSTEM_INFORMATION_CLASS2

Enumeration Type Documentation

◆ _SYSTEM_INFORMATION_CLASS2

Enumerator
SystemModuleInformation 
175{
176 SystemModuleInformation = 11 // q: RTL_PROCESS_MODULES
177
@ SystemModuleInformation
Definition Windows.h:176
enum _SYSTEM_INFORMATION_CLASS2 SYSTEM_INFORMATION_CLASS2

Function Documentation

◆ AppendTailList()

FORCEINLINE VOID AppendTailList ( _Inout_ PLIST_ENTRY ListHead,
_Inout_ PLIST_ENTRY ListToAppend )
132{
133 PLIST_ENTRY ListEnd = ListHead->Blink;
134
135 ListHead->Blink->Flink = ListToAppend;
136 ListHead->Blink = ListToAppend->Blink;
137 ListToAppend->Blink->Flink = ListHead;
138 ListToAppend->Blink = ListEnd;
139}

◆ InitializeListHead()

FORCEINLINE VOID InitializeListHead ( _Out_ PLIST_ENTRY ListHead)
43{
44 ListHead->Flink = ListHead->Blink = ListHead;
45}

◆ InsertHeadList()

FORCEINLINE VOID InsertHeadList ( _Inout_ PLIST_ENTRY ListHead,
_Inout_ PLIST_ENTRY Entry )
118{
119 PLIST_ENTRY Flink;
120
121 Flink = ListHead->Flink;
122 Entry->Flink = Flink;
123 Entry->Blink = ListHead;
124 Flink->Blink = Entry;
125 ListHead->Flink = Entry;
126}

◆ InsertTailList()

FORCEINLINE VOID InsertTailList ( _Inout_ PLIST_ENTRY ListHead,
_Inout_ PLIST_ENTRY Entry )
104{
105 PLIST_ENTRY Blink;
106
107 Blink = ListHead->Blink;
108 Entry->Flink = ListHead;
109 Entry->Blink = Blink;
110 Blink->Flink = Entry;
111 ListHead->Blink = Entry;
112}

◆ IsListEmpty()

_Check_return_ FORCEINLINE BOOLEAN IsListEmpty ( _In_ PLIST_ENTRY ListHead)
51{
52 return ListHead->Flink == ListHead;
53}

◆ PopEntryList()

FORCEINLINE PSINGLE_LIST_ENTRY PopEntryList ( _Inout_ PSINGLE_LIST_ENTRY ListHead)
144{
145 PSINGLE_LIST_ENTRY FirstEntry;
146
147 FirstEntry = ListHead->Next;
148
149 if (FirstEntry)
150 ListHead->Next = FirstEntry->Next;
151
152 return FirstEntry;
153}

◆ PushEntryList()

FORCEINLINE VOID PushEntryList ( _Inout_ PSINGLE_LIST_ENTRY ListHead,
_Inout_ PSINGLE_LIST_ENTRY Entry )
159{
160 Entry->Next = ListHead->Next;
161 ListHead->Next = Entry;
162}

◆ RemoveEntryList()

FORCEINLINE BOOLEAN RemoveEntryList ( _In_ PLIST_ENTRY Entry)
58{
59 PLIST_ENTRY Blink;
60 PLIST_ENTRY Flink;
61
62 Flink = Entry->Flink;
63 Blink = Entry->Blink;
64 Blink->Flink = Flink;
65 Flink->Blink = Blink;
66
67 return Flink == Blink;
68}

◆ RemoveHeadList()

FORCEINLINE PLIST_ENTRY RemoveHeadList ( _Inout_ PLIST_ENTRY ListHead)
73{
74 PLIST_ENTRY Flink;
75 PLIST_ENTRY Entry;
76
77 Entry = ListHead->Flink;
78 Flink = Entry->Flink;
79 ListHead->Flink = Flink;
80 Flink->Blink = ListHead;
81
82 return Entry;
83}

◆ RemoveTailList()

FORCEINLINE PLIST_ENTRY RemoveTailList ( _Inout_ PLIST_ENTRY ListHead)
88{
89 PLIST_ENTRY Blink;
90 PLIST_ENTRY Entry;
91
92 Entry = ListHead->Blink;
93 Blink = Entry->Blink;
94 ListHead->Blink = Blink;
95 Blink->Flink = ListHead;
96
97 return Entry;
98}