Skip to content

Instantly share code, notes, and snippets.

View RedGreenBlue09's full-sized avatar
🙃
Working from home

RedGreenBlue09 RedGreenBlue09

🙃
Working from home
View GitHub Profile
@RedGreenBlue09
RedGreenBlue09 / elevate.c
Last active May 14, 2023 10:14
Tiny Windows API program to elevate app as Administrator.
#include <Windows.h>
void __stdcall start() {
WCHAR* sCmd = GetCommandLineW();
/* Skip this program name */
if (*sCmd == L'\"') {