🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3968

OpenProcess() returns different handles

#3968
From: Wiebe Vos
Date: Sun, 09 Apr 2006 20:36
14 lines
1248 bytes
BCB6 + WinXP(Pro)

//
PROCESS_INFORMATION  processInfo;
//
I sucessfully launch an app with CreateProcess(...)
However thereafter OpenProcess ( PROCESS_ALL_ACCESS,  true, 
processInfo.dwProcessId)
returns a handle that differs from processInfo.hProcess
(In fact it returns a different handle each time when called.)
Why?

Thanks in advance,
Wiebe 
Technical Details
Message-ID: <44397058@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8a9918c2e9877ca0,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Wiebe Vos" <wiebe@foxware.nl>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: OpenProcess() returns different handles
Date: Sun, 9 Apr 2006 22:36:37 +0200
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 62.131.171.202
Message-ID: <44397058@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1144615000 62.131.171.202 (9 Apr 2006 13:36:40 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail