- EXE '
A
' is written in C#. 'A
' calls DLL 'B
', also written in C#. - DLL '
B
' callsCreateProcess
to launch a second EXE 'C
'. 'C
' is written in native C++, Win32. - '
C
' needs to be able to call a function in DLL 'B
' because 'B
' knows of a handle with which it can obtain info from 'A
'. The handle will be stored as a global variable withinB
.
I know how to call a managed C# DLL from a Native C++ EXE.
My question is: how can we make C
call back into B
? How does C
find B
?