Hi,
I want to suspend a process creation for few seconds, should I use NtSuspendProcess?
here's my code sample
when I'm trying to compile it, compiler isn't familiar with this API
Thanks
** EDIT **
Solved that.
Had to get the address of PsSuspendProcess first..
I want to suspend a process creation for few seconds, should I use NtSuspendProcess?
here's my code sample
Code: Select all
If I am suppose to use NtSuspendProcess, how would I use it?void
CreateProcessCallback(
__in HANDLE ParentId,
__in HANDLE ProcessId,
__in BOOLEAN Create
)
{
NTSTATUS status;
PEPROCESS Process;
HANDLE hProcess;
if(Create)
{
// suspend the process for 5 seconds, then create.
}
}
when I'm trying to compile it, compiler isn't familiar with this API
Thanks
** EDIT **
Solved that.
Had to get the address of PsSuspendProcess first..