ich versuche NtQueryInformationProcess zu hooken und mal auszulesen mit welchen Parametern diese funktion im verlauf eines Programms aufgerufen wird. Nun kommt es zu meinem Problem.
So funktioniert es:
Code:
ULONG WINAPI hNtQueryInformationProcess(HANDLE a,UINT b,PVOID c,ULONG d,PULONG e)
{
DWORD ret = oNtQueryInformationProcess(a,b,c,d,e);
return ret;
}
Code:
ULONG WINAPI hNtQueryInformationProcess(HANDLE a,UINT b,PVOID c,ULONG d,PULONG e)
{
DWORD ret = oNtQueryInformationProcess(a,b,c,d,e);
fprintf(myfile,"%d\n",b);
return ret;
}
Könnt ihr mir sagen wieso das crashed ?






