I have an unmanaged c++ dll. I am calling external methods of this unmanaged dll from c# (.net 3.5)
I am looking for a way to find witch c# assembly is calling my unmanaged c++ dll (into my c++ dll) (at least, name of assembly)
And sure, I don’t want to pass any additional parameter to methods.
Thanks in advance
Finally I found the solution.
I was looking for a way to restrict not allowed access to my unmanaged dll. So I crawled the stack trace for my caller assembly location.
Finally I decided to check public key token of caller assembly (found this way) and validate it.
Thanks from you time and answers…