🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
5 messages
5 total messages Started by Boguslaw Fries Thu, 13 Mar 2003 14:32
I need to know my own process handle
#17518
Author: Boguslaw Fries
Date: Thu, 13 Mar 2003 14:32
5 lines
1057 bytes
I start my program. How to obtain Handle to my process?
Consequently I would compare it with the result of          OpenProcess
function

Boguslaw Fries
Re: I need to know my own process handle
#17525
Author: Remy Lebeau (TeamB)
Date: Thu, 13 Mar 2003 18:40
9 lines
1131 bytes
"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?

GetCurrentProcess()


Gambit
Re: I need to know my own process handle
#17530
Author: Boguslaw Fries
Date: Thu, 13 Mar 2003 19:59
16 lines
1383 bytes
U�ytkownik "Remy Lebeau (TeamB)" <gambit47@yahoo.com> napisa� w wiadomo�ci
news:3e70ce7e$1@newsgroups.borland.com...
>
> "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?
>
> GetCurrentProcess()
>
>
> Gambit
>
>

Thank you:)
Re: I need to know my own process handle
#17535
Author: Remy Lebeau (TeamB)
Date: Fri, 14 Mar 2003 00:12
13 lines
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
Re: I need to know my own process handle
#17553
Author: Boguslaw Fries
Date: Fri, 14 Mar 2003 07:37
3 lines
1032 bytes
Super!!!!! it is done!

Boguslaw Fries
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads