Solved

List Handles for current Process

Posted on 1997-07-14
1
255 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

914 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now