Article View: borland.public.cppbuilder.nativeapi
Article #10768Re: Obtaining process id
From: Remy Lebeau (TeamB)
Date: Wed, 24 Mar 2004 18:21
Date: Wed, 24 Mar 2004 18:21
16 lines
1535 bytes
1535 bytes
"Chris ( Val )" <chrisval@bigpond.com.au> wrote in message news:40619ba9@newsgroups.borland.com... > My ultimate goal is to find out which application > is locking a particular file, and log the process id > and the offending application(exe) name into the > database for further analysis. What you ask for is not provided by the Win32 API at all. You have to drop down to a lower level and query the kernel directly, which is not a simple task. What you ask for is possible in genernal, though, as demonstrated by the "Process Explorer" and "Handle" utilities at http://www.sysinternals.com Gambit
Technical Details
Message-ID:
<4061cf64$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40619ba9@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,8f802efbcb83e75e X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-03-24 10:40:36 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40619ba9@newsgroups.borland.com> Subject: Re: Obtaining process id Date: Wed, 24 Mar 2004 10:21:22 -0800 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <4061cf64$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1080151908 67.22.138.253 (24 Mar 2004 10:11:48 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail