Re: PsSetCreateProcessNotifyRoutine



Hi mate

Don't forget that the number of process-creation callbacks that can be
registered with the system is limited to 8. Therefore, these is a good
chance that this quota has already been filled by some third-party
drivers

Anton Bassov

euacela@xxxxxxxxx wrote:
I am trying to make something similar to task manager but when I call
PsSetCreateProcessNotifyRoutine it returns this error: The specified
procedure could not be found.
It means that it's first parameter, the one which should have been the
pointer to a procedure for callback is not recognised.
I have my callback defined like this:
VOID ProcMgrGabi(IN HANDLE ParentId, IN HANDLE ProcessId,BOOL Create)
{

etc etc etc;
}
and I call the function like this:
rc=PsSetCreateProcessNotifyRoutine(ProcMgrGabi,FALSE);
and rc returns that error
what can it be

.



Relevant Pages

  • Re: Dynamic GUI, callbacks and static workspace
    ... GUIDE so there is a good chance I can help. ... I suspect your problem ... is with the callback itself and the function declaration. ...
    (comp.soft-sys.matlab)
  • BeginReceive Callback Preempted
    ... I'm having problems using asynchronous reads from a socket using ... data arrives, the callback is started, but before it ... gets a chance to EndReceive, more data arrives and another callback ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [PATCH] perf events: Remove unused struct perf_event::event_callback
    ... Any chance we can get all of that perf_callback_t ugly gone? ... We had callback and event_callback. ... event_callback is removed in this patch and overflow_handler will ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • [RFC][PATCH] ps command race fix take 4 [1/4] callback subroutine
    ... attach a callback for updating pointer from file descriptor to a task invoked ... *Bad* point is adding additonal lock and callback in exit path. ... * Freeing of the target object and add/remove callback pointer should be ... +static inline struct adaptive_pointer * ...
    (Linux-Kernel)
  • Re: Idea
    ... >> happily storing and calling callback functions long before OO ... method pointer with the context object set to nil, ... declare any classes to add an event handler method to, ...
    (comp.lang.pascal.delphi.misc)

Loading