Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Wed, 28 May 2008 17:24:00 -0700,    group: microsoft.public.win32.programmer.wmi        back       


Enumerate process handlers   
Hello,

I wonder whether it is possible with WMI to enumerate file system handlers 
opened by processes. I suppose it will help me to create an application that 
shows which process locks the file or folder (like sysinternals' processxp).

-- 
http://www.alexatnet.com/ - consulting, my blog, articles, discussions about 
web development
date: Wed, 28 May 2008 17:24:00 -0700   author:   Alex Netkachov

Re: Enumerate process handlers   
Look here : http://msdn.microsoft.com/en-us/library/aa394372(VS.85).aspx

There is a property of the Win32_Process that will allow you to grab the 
process handle. Using ParentProcessID you can find all sub-processes and 
handles of a process in question.

Thanks,
Allan

"Alex Netkachov"  wrote in message 
news:E72232EF-5664-4C2A-878E-0509C6C94A90@microsoft.com...
> Hello,
>
> I wonder whether it is possible with WMI to enumerate file system handlers
> opened by processes. I suppose it will help me to create an application 
> that
> shows which process locks the file or folder (like sysinternals' 
> processxp).
>
> -- 
> http://www.alexatnet.com/ - consulting, my blog, articles, discussions 
> about
> web development
date: Thu, 29 May 2008 21:12:31 -0500   author:   Allan

Re: Enumerate process handlers   
Thank you, but I need to enumerate system resource handlers. E.g. the 
handlers related to HandleCount property.

-- 
http://www.alexatnet.com/ - consulting, my blog, articles, discussions about 
web development


"Allan" wrote:

> Look here : http://msdn.microsoft.com/en-us/library/aa394372(VS.85).aspx
> 
> There is a property of the Win32_Process that will allow you to grab the 
> process handle. Using ParentProcessID you can find all sub-processes and 
> handles of a process in question.
> 
> Thanks,
> Allan
> 
> "Alex Netkachov"  wrote in message 
> news:E72232EF-5664-4C2A-878E-0509C6C94A90@microsoft.com...
> > Hello,
> >
> > I wonder whether it is possible with WMI to enumerate file system handlers
> > opened by processes. I suppose it will help me to create an application 
> > that
> > shows which process locks the file or folder (like sysinternals' 
> > processxp).
> >
> > -- 
> > http://www.alexatnet.com/ - consulting, my blog, articles, discussions 
> > about
> > web development 
>
date: Fri, 30 May 2008 02:34:01 -0700   author:   Alex Netkachov

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us