views:

128

answers:

1

I am using the following macro codeto attach to the debugger:

 process.Attach()

Works, fine,

but for some reasons it always attaches to the "Managed Code" (sort of default mode I guess)

Is there any way to specify that I want to attach to a "Native code" too?

+1  A: 

You need to use the Process2 interface instead of Process. It has the Attach2 method which allows you to specify the types of engines you want to attach with.

Documentation

Example:

process2->Attach2("Managed/Native");
JaredPar
Thanks mate. Did the trick.
Steve