mirror of
https://github.com/hasherezade/pe_to_shellcode
synced 2026-06-08 14:35:13 +00:00
[FEATURE][tests] Make DPC test display its own PID
This commit is contained in:
@@ -6,7 +6,7 @@ int main()
|
||||
PROCESS_MITIGATION_DYNAMIC_CODE_POLICY dcp = {};
|
||||
dcp.ProhibitDynamicCode = 1;
|
||||
SetProcessMitigationPolicy(ProcessDynamicCodePolicy, &dcp, sizeof(dcp));
|
||||
|
||||
std::cout << "PID: " << std::dec << GetCurrentProcessId() << "\n";
|
||||
std::cout << "PROCESS_MITIGATION_DYNAMIC_CODE_POLICY enabled...\n";
|
||||
while (true)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user