Launching a process (exe) using the same process id as the launcher

F

franckspike

Launching a process (exe) using the same process id as the launcher,
how is it possible ?

I want my VCStudio to launch my executable (which is not in
developpement) and this exe will launch the exe module I am currently
developping with the correct arguments, I want to debug it not the
wrapper that launched it

VCStudio starts as debug --> A which starts --> B which loads -->
C.dll which I want to debug

How can B have the same process id as A ??
or
How can I make VCStudio attach to B without doing it manualy ?

thanx
 
B

Boris

Launching a process (exe) using the same process id as the launcher,
how is it possible ?

I want my VCStudio to launch my executable (which is not in
developpement) and this exe will launch the exe module I am currently
developping with the correct arguments, I want to debug it not the
wrapper that launched it

VCStudio starts as debug --> A which starts --> B which loads -->
C.dll which I want to debug

How can B have the same process id as A ??
or
How can I make VCStudio attach to B without doing it manualy ?

If you put __debugbreak() into the module which you want to debug you can
attach VC++ to the newly started process rather easily (see
http://msdn.microsoft.com/en-us/library/f408b4et.aspx). And please ask in
a VC++ newsgroup next time if you have a VC++-related question.

Boris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top