[SDK:NT] Another list helper & more status values

Added STATUS_INSUFFICIENT_NVRAM_RESOURCES
Added InitializeListHead()
This commit is contained in:
Quinn Stephens 2024-08-26 19:51:36 -04:00
parent ef1ac515dd
commit b63d80d5c9
2 changed files with 62 additions and 34 deletions

View File

@ -233,6 +233,33 @@ typedef struct _LIST_ENTRY {
struct _LIST_ENTRY *Blink;
} LIST_ENTRY, *PLIST_ENTRY;
FORCEINLINE
VOID
InitializeListHead (
IN PLIST_ENTRY Head
)
/*++
Routine Description:
Initializes a list head.
Arguments:
Head - the list head.
Return Value:
None.
--*/
{
Head->Blink = Head;
Head->Flink = Head;
}
FORCEINLINE
BOOLEAN
RemoveEntryList (

View File

@ -55,5 +55,6 @@ Abstract:
#define STATUS_REQUEST_ABORTED ((NTSTATUS) 0xC0000240L)
#define STATUS_DRIVER_UNABLE_TO_LOAD ((NTSTATUS) 0xC000026CL)
#define STATUS_NO_MATCH ((NTSTATUS) 0xC0000272L)
#define STATUS_INSUFFICIENT_NVRAM_RESOURCES ((NTSTATUS) 0xC0000454L)
#endif /* !_NTSTATUS_H */