Checking for new handles in a process ?

delphi package - easy access to kernel objects etc.
Post Reply
darkside
Posts: 2
Joined: Tue Aug 10, 2004 9:07 am

Checking for new handles in a process ?

Post by darkside »

hi, i'm working on an application able to check if new handles have been added to another process.
I've use ItemCount of Handles but it seems it take lot of ressources.
There is another way to check it with event or something ?
i was thinking about the notify event but i don't really understand how it work

So, this is clearly what i want to do
@ my prog start i launch a process like notepad.
then, i check itemcount of handles in this process using process('notepad.exe').Handles.ItemCount
and using a timer, i check itemcount every x minutes.
If i can use notify, i make the itemcount check once and then wait for a notify event but is it possible ? and how ?
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Please do not post the same question on both the newsgroup and the forum, because that results in double work for me! I've already replied in the newsgroup.
darkside
Posts: 2
Joined: Tue Aug 10, 2004 9:07 am

Post by darkside »

sorry, i've discovered newsgroup after this forum :)
Post Reply