Skip to content

Instantly share code, notes, and snippets.

View jjYBdx4IL's full-sized avatar

jjYBdx4IL jjYBdx4IL

View GitHub Profile
@jjYBdx4IL
jjYBdx4IL / PurgeStandbyList.cpp
Created December 2, 2020 17:53 — forked from bitshifter/PurgeStandbyList.cpp
Command line utility for purging Window's standby list. Requires /MANIFESTUAC:"level='highestAvailable'.
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
#define NT_SUCCESS(Status) (((NTSTATUS)(Status)) >= 0)
#define STATUS_PRIVILEGE_NOT_HELD ((NTSTATUS)0xC0000061L)
typedef enum _SYSTEM_INFORMATION_CLASS {
SystemMemoryListInformation = 80, // 80, q: SYSTEM_MEMORY_LIST_INFORMATION; s: SYSTEM_MEMORY_LIST_COMMAND (requires SeProfileSingleProcessPrivilege)
} SYSTEM_INFORMATION_CLASS;