-
July 13th, 2006, 08:11 AM
#1
Get count of handles
Which Windows API will get you the number of handles in use by a process?
-
July 13th, 2006, 08:18 AM
#2
Re: Get count of handles
Originally Posted by kberson
Which Windows API will get you the number of handles in use by a process?
Use EnumWindows/EnumChildWindows
It takes seconds for rating…that actually compensates the minutes taken for giving answers
The biggest guru-mantra is: Never share your secrets with anybody. It will destroy you.
Regards, Be generous->Rate people
Jayender!!
-
July 13th, 2006, 08:26 AM
#3
Re: Get count of handles
what kind of handles -- all handles such as gdi objects, file handles, windows handles, etc. or just windows handles. jayender's suggestion only returns windows handles.
-
July 13th, 2006, 08:31 AM
#4
Re: Get count of handles
Regards,
Ramkrishna Pawar
-
July 13th, 2006, 09:06 AM
#5
Re: Get count of handles
Originally Posted by stober
what kind of handles -- all handles such as gdi objects, file handles, windows handles, etc. or just windows handles. jayender's suggestion only returns windows handles.
Good question! I'm looking for the value that the Task Manager displays when you check the handle count
-
July 13th, 2006, 09:29 AM
#6
Re: Get count of handles
Originally Posted by kberson
I'm looking for the value that the Task Manager displays when you check the handle count
Well, that count is for the whole system and not for a process.
However, to help starting let's open the list:
- GetGuiResources - the count of handles to graphical user interface (GUI) objects in use by the specified process.
- EnumProcessModules - retrieves a handle for each module in the specified process
NOTE: when the list will be completed, do not forget toa add the process (handle) itself.
-
July 13th, 2006, 09:34 AM
#7
Re: Get count of handles
Regards,
Ramkrishna Pawar
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|