Howto detect the calling program of a library

  • Thread starter Thread starter Richard Weigel
  • Start date Start date
R

Richard Weigel

Hello,

I have the problem, to protect a library against unauthorized usage.

For realizing this, I want to identify the calling program (path+filename)
to check if it has a digital signature. If it hasn't, the program don't get
access to specific parts of the library (The signature is neccesary, because
the library will handle a security critical area in our product, thats why
passwords etc. are not secure enough)

My question is:
How can my .net library detect, what program created the actual instance
(path and filename)

Thanks for all ideas and advices

Greetings
Richard Weigel
 
* "Richard Weigel said:
How can my .net library detect, what program created the actual instance
(path and filename)

See replies in the German language group. Please don't multipost.
 
HI,
You can use the Assembly.getcallingassembly from the System.Reflection
namespace to find out the name of the assembly that called your assembly.

I hope this helps.
Thanks

Anand Balasubramanian
Microsoft, Visual Basic .NET

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks
 
Back
Top