Solved

List Handles for current Process

Posted on 1997-07-14
1
259 Views
Last Modified: 2013-12-03
I have a program that I am trying to develop and intermittently it loses a handle. I have a good idea of what handles are being created in my process but I can't track down what the problem is.

If I can find a way to list all of the handles before and then after the offending function call then I should be able to spot where I'm failing to free up the handle.

Is there an API or some source that would allow me to dump all of the current handles, their type and any information that might be relevent (Event handle names) for my process at any point?
0
Comment
Question by:cuthbert
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
pcs071997 earned 100 total points
ID: 1400872
you can develop that program using two-way method.one is win32 sdk's pview95 sample.the other Toolhelp32.dll function.(see the MSJ 95.9, Matt Pietrek)
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question