This commit is contained in:
vxunderground
2022-09-10 13:20:38 -05:00
parent 8f5eca39d2
commit 86ca3658a5
143 changed files with 2396 additions and 1398 deletions
@@ -0,0 +1,19 @@
#include "Win32Helper.h"
BOOL AdfIsCreateProcessDebugEventCodeSet(VOID)
{
WCHAR FilePath[MAX_PATH * sizeof(WCHAR)] = { 0 };
HANDLE hHandle = INVALID_HANDLE_VALUE;
if (GetProcessPathFromProcessParametersW((MAX_PATH * sizeof(WCHAR)), FilePath) == 0)
return FALSE;
hHandle = CreateFileW(FilePath, GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, 0);
if (hHandle == INVALID_HANDLE_VALUE)
return TRUE;
if (hHandle)
CloseHandle(hHandle);
return FALSE;
}