mirror of
https://github.com/wavestone-cdt/EDRSandblast.git
synced 2026-06-09 08:57:24 +00:00
15 lines
443 B
C
15 lines
443 B
C
#pragma once
|
|
#include <Windows.h>
|
|
#include <tchar.h>
|
|
|
|
#define ProcessImageFileName 27
|
|
|
|
DWORD SandGetProcessPID(HANDLE hProcess);
|
|
|
|
PUNICODE_STRING SandGetProcessImage(HANDLE hProcess);
|
|
|
|
DWORD SandGetProcessFilename(PUNICODE_STRING ProcessImageUnicodeStr, TCHAR* ImageFileName, DWORD nSize);
|
|
|
|
DWORD SandFindProcessPidByName(TCHAR* targetProcessName, DWORD* pPid);
|
|
|
|
BOOL SetPrivilege(HANDLE hToken, LPCTSTR lpszPrivilege, BOOL bEnablePrivilege); |