https://learn.microsoft.com/en-us/windows/win32/api/debugapi/nf-debugapi-debugactiveprocess?redirectedfrom=MSDN
DebugActiveProcess function (debugapi.h) - Win32 apps | Microsoft Learn
Enables a debugger to attach to an active process and debug it.
functionhappsmicrosoftlearn