PsRemoveCreateThreadNotifyRoutine function (ntddk.h)
The PsRemoveCreateThreadNotifyRoutine routine removes a callback routine that was registered by the PsSetCreateThreadNotifyRoutine routine.
NTSTATUS PsRemoveCreateThreadNotifyRoutine( [in] PCREATE_THREAD_NOTIFY_ROUTINE NotifyRoutine );
Pointer to the callback routine that the driver has previously registered through PsSetCreateThreadNotifyRoutine.
PsRemoveCreateThreadNotifyRoutine returns STATUS_SUCCESS if it successfully removes the callback routine, or STATUS_PROCEDURE_NOT_FOUND if the value of NotifyRoutine does not match any registered callback routine.
If the driver's callback routine is currently running, PsRemoveCreateThreadNotifyRoutine waits until the callback routine exits before removing it. Therefore, the callback routine itself must not call PsRemoveCreateThreadNotifyRoutine.
|Header||ntddk.h (include Ntddk.h)|
Submit and view feedback for