While trying to answer this question I decided I need to step through the marshalling process by hand, in the debugger view.
Unfortunately, Visual Studio seems to jump right over all this interesting code. Here's the P/Invoke call to GetProfilesDirectory
(a WinAPI function):
but after stepping into this call (F11), I don't find myself at FFF9BFD8
; rather, I land right in the GetProfilesDirectory
code:
There's also the [Managed to Native Transition]
entry on the stack, hinting at the fact that Visual Studio had just jumped over a whole bunch of code.
How can I step through this transition?