c# - How to find caller assembly name in unmanaged c++ dll -


I have an unmanaged C ++ DLL I have unmanaged this from C # (pure 3.5) Calling the external methods of DLL

I'm calling Witch C # assembly is my unmanaged C + DLL C ++ DLL (at least, assembly name )

And of course, I do not want to give any additional parameters to the methods .

Thanks in advance

This requires stack walk in managed code as well As code works, the code access protection applies as well. Do not work so well when there are native stack frames to run, you can try StackWalk64 () in your original code. There is no possibility of working expensive and well, especially. Be careful with the optimization options in 4.0 where the CLR does not mimic the module too many to reduce the frame indicator.

Do not do that, I will say. It is so easy to solve this by giving an additional argument to the managed code.

Comments