Groups | Blog | Home
all groups > dotnet faqs > december 2004 >

dotnet faqs : How to obtain assembly name in unmanaged call?


Gnanaprakash Rathinam
12/22/2004 2:33:02 PM
Hi Expert,

Is there a way to obtain assembly name in an unmanaged call? During Interop
call between managed to unmanaged, I would like to know in unmanaged code
about the caller of assembly file name?

Thanks,
GP.

Alan
12/22/2004 8:45:03 PM
Hello GP,
Perhaps you may get the assebmly name on the managed side, then pass it by
one public method to the unmanaged side.

"Gnanaprakash Rathinam" <gnanaprakash.rathinam@oracle.com> дÈëÏûÏ¢ÐÂÎÅ
:8Xayd.3$Tg5.67@news.oracle.com...
[quoted text, click to view]

Gnanaprakash Rathinam
12/23/2004 11:29:23 AM
Thanks for your reply,

But the problem here is different, due to some valid reason I can't modify
the signature of unmanaged call, In my appdomain there may be more than one
or more assemblies loaded and each may try to call unmanaged function
concurrently and based on the caller of the assembly I need to perform some
operation in my unmanaged function. I know that using managed & unmanaged
call stack trace I can retrieve the assembly name, but this is very lengthy
procedure. I looking for more easy way to do the same!!!

-GP


[quoted text, click to view]

AddThis Social Bookmark Button