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
+33
View File
@@ -0,0 +1,33 @@
#pragma once
#include <windows.h>
struct NewProcInfo
{
HANDLE hProcess;
HANDLE hThread;
DWORD processId;
NewProcInfo()
: hProcess(nullptr)
, hThread(nullptr)
, processId(0)
{
}
};
DWORD GetPidByName(const wchar_t* exeName);
bool ProcessExistsByName(const wchar_t* exeName);
bool StartProcessAsSystem(
HANDLE systemToken,
const wchar_t* exePath,
const wchar_t* args,
bool interactive);
bool CreateProcessSuspendedAsSystem(
HANDLE systemToken,
const wchar_t* exePath,
const wchar_t* args,
bool interactive,
NewProcInfo* out);