Click here to Skip to main content
15,920,217 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to get a running application Pin
Selvam R12-Jan-05 23:42
professionalSelvam R12-Jan-05 23:42 
GeneralRe: how to get a running application Pin
spiced13-Jan-05 0:16
spiced13-Jan-05 0:16 
GeneralRe: how to get a running application Pin
ThatsAlok13-Jan-05 0:51
ThatsAlok13-Jan-05 0:51 
GeneralRe: how to get a running application Pin
spiced13-Jan-05 17:07
spiced13-Jan-05 17:07 
GeneralRe: how to get a running application Pin
ThatsAlok13-Jan-05 18:47
ThatsAlok13-Jan-05 18:47 
GeneralApplication fails in Release mode.... Pin
Jagadeesh VN12-Jan-05 23:27
Jagadeesh VN12-Jan-05 23:27 
GeneralRe: Application fails in Release mode.... Pin
PJ Arends13-Jan-05 6:55
professionalPJ Arends13-Jan-05 6:55 
GeneralThanks Blake Miller: CreateProcess and process groups (2) Pin
ionzarate12-Jan-05 23:16
ionzarate12-Jan-05 23:16 
Hello everybody!

First of all, thanks for your answer Blake Miller!!!

I didn´t explain the situation correctly.
I mixed up with the example!!
Sigh | :sigh:

I´ll try to explain it correctly...

I´m using CreateProcess to create a new process, with the
CREATE_NEW_PROCESS_GROUP flag set in the argument "dwCreationFlags",
to create a new process group.

Let´s suppose that PROCESS_A creates a new process,
with CREATE_NEW_PROCESS_GROUP flag set. This new created
process (PROCESS_B) is the 1º process of the process group.

It´s true that both the 1º process of a process group and
the process group itself have the same ID. So the ID of
the process group and the PID of PROCESS_B are the same.

If the PROCESS_B creates a new process (PROCESS_C) with
CREATE_NEW_PROCESS_GROUP flag cleared, both PROCESS_B
and PROCESS_C will belong to the same group.

PROCESS_B knows the ID of its process group, as it´s
its own PID. But...

-How can PROCESS_C get the process group ID?
(without using IPC or passing it through command line
arguments)

-Is there any function which returns the process group ID
of the calling process?


Summing up...
I only what to know how to get the ID of the process
group, to which a process belongs.


Thanks and bye.
Smile | :)
GeneralGet Sector!! !! Pin
LiYS12-Jan-05 22:57
LiYS12-Jan-05 22:57 
GeneralRe: Get Sector!! !! Pin
Selvam R12-Jan-05 23:06
professionalSelvam R12-Jan-05 23:06 
GeneralRe: Get Sector!! !! Pin
LiYS12-Jan-05 23:13
LiYS12-Jan-05 23:13 
GeneralRe: Get Sector!! !! Pin
Anonymous12-Jan-05 23:32
Anonymous12-Jan-05 23:32 
Generalrequest to all Pin
Anonymous12-Jan-05 22:11
Anonymous12-Jan-05 22:11 
GeneralRe: request to all Pin
ThatsAlok13-Jan-05 0:30
ThatsAlok13-Jan-05 0:30 
Generalto alok Pin
Anonymous13-Jan-05 1:39
Anonymous13-Jan-05 1:39 
GeneralRe: to alok Pin
ThatsAlok13-Jan-05 2:17
ThatsAlok13-Jan-05 2:17 
GeneralRe: request to all Pin
David Crow13-Jan-05 3:55
David Crow13-Jan-05 3:55 
GeneralGUI capturing Pin
kedar.dave12-Jan-05 22:01
kedar.dave12-Jan-05 22:01 
GeneralRe: GUI capturing Pin
Selvam R12-Jan-05 23:02
professionalSelvam R12-Jan-05 23:02 
GeneralRe: GUI capturing Pin
kedar.dave13-Jan-05 17:27
kedar.dave13-Jan-05 17:27 
GeneralRevision Control System and Tools Pin
George Ionescu12-Jan-05 21:40
George Ionescu12-Jan-05 21:40 
QuestionFilesss.... Help? Pin
nutkase12-Jan-05 21:25
nutkase12-Jan-05 21:25 
AnswerRe: Filesss.... Help? Pin
David Crow13-Jan-05 3:57
David Crow13-Jan-05 3:57 
QuestionCopy Folder? Pin
Larsson12-Jan-05 21:14
Larsson12-Jan-05 21:14 
AnswerRe: Copy Folder? Pin
namaskaaram12-Jan-05 21:47
namaskaaram12-Jan-05 21:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.