if (KeGetCurrentIrql() == PASSIVE_LEVEL)
{
ntStatus = PsSetCreateProcessNotifyRoutineEx(MyCallback, TRUE);
if (ntStatus == STATUS_SUCCESS)
{
Dbgprint(“success”);
} else {
Dbgprint(“failed with 0x%08x”, ntStatus);
}
}
code runs on 64bits-vista sp1, got 0xc000007a (STATUS_PROCEDURE_NOT_FOUND)