Article View: borland.public.cppbuilder.nativeapi
Article #17535Re: I need to know my own process handle
From: Remy Lebeau (TeamB)
Date: Fri, 14 Mar 2003 00:12
Date: Fri, 14 Mar 2003 00:12
13 lines
1481 bytes
1481 bytes
It should be noted that comparing the process handles is not a good way to do the comparison. Since you need to know a process ID in order to call OpenProcess() to begin with, you could use GetCurrentProcessId() instead of GetCurrentProcess() and just compare the IDs instead of the handles. Gambit "Boguslaw Fries" <B.Fries@luca-online.de> wrote in message news:3e70987f@newsgroups.borland.com... > I start my program. How to obtain Handle to my process? > Consequently I would compare it with the result of > OpenProcess function
Technical Details
Message-ID:
<3e711c46@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e70987f@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,4306ae5b672257d0 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-13 16:09:00 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e70987f@newsgroups.borland.com> Subject: Re: I need to know my own process handle Date: Thu, 13 Mar 2003 16:12:33 -0800 Lines: 15 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3e711c46@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1047600198 207.175.226.26 (13 Mar 2003 16:03:18 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail