Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > .NET Framework 2.0
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 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 24th, 2005, 05:31 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 a 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 tell me if it's possible using .NET framework classes directly.

Thanx


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 General .NET 0 September 25th, 2005 05:52 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.