Maybe I am not reading this correctly, but isn't this already your answer?
I know that from PROCESS_A, I can get the PID of the PROCESS_B through
"lpProcessInformation", which is also the identifier of the new process
group.
If the PROCESS GROUP ID is the same as the PROCESS ID for your ProcessB, then from within the ProcessB, just call GetProcessID() and that should match the process group identifier. Doesn't your statement above imply the new process group id is the same as the processB process identifier :confused: MSND says same thing:
"The process identifier of the new process group is the same as the process identifier, which is returned in the lpProcessInformation parameter."