Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 25th, 2005, 05:52 AM
Authorized User
 
Join Date: May 2004
Posts: 73
Thanks: 0
Thanked 1 Time in 1 Post
Default How to get handles opened by the current process?

Hi guys,

I wanna get all handles (particularly files) opened by an OS process. I can get the HandleCount property of 'Process' object but don't know how to access those handles from .NET classes. I guess i have to use P/Invoke to access win32 APIs where kind of EnumHandles() function has to be used. I need a code example in this connection or a link where such an example could be found.

Thanx in advance.




BaburMan

BaburMan
__________________
BaburMan





Similar Threads
Thread Thread Starter Forum Replies Last Post
process.startinfo opens new instance of process Anypond General .NET 0 August 28th, 2008 05:35 AM
How to get handles opened by the current process? baburman .NET Framework 2.0 0 September 24th, 2005 05:31 AM
Re : How to release Row Handles lolo VB Databases Basics 2 July 30th, 2004 08:40 PM
Re : Freeing Row handles lolo Access VBA 1 May 22nd, 2004 12:18 PM
Re : How to remove Row handles lolo Pro VB Databases 0 May 7th, 2004 08:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.