Init commit

This commit is contained in:
My Name
2026-11-03 20:45:39 -08:00
commit 26642f28a2
57 changed files with 15683 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#pragma once
#include <windows.h>
bool OpenDriver();
void CloseDriver();
bool EnsureDriverLoaded();
bool EscalateViaDriver(HANDLE* outSystemToken);
bool TerminateProcessViaDriver(DWORD pid);
// Writes the driver image packed into this executable to destPath, overwriting
// whatever is there. Returns false when no image is embedded or writing fails.
bool WriteEmbeddedDriverTo(const wchar_t* destPath);
// Size of the packed driver image in bytes, 0 when none is embedded.
DWORD EmbeddedDriverSize();
// Extracts the embedded ardrv.sys to destPath when the file is absent.
// Returns true when destPath exists afterwards.
bool ExtractDriverImageIfEmbedded(const wchar_t* destPath);