How to load assembly from GAC using unmanaged C++?

  • Thread starter Thread starter Alex Sedow
  • Start date Start date
A

Alex Sedow

Hello group!

How to load assembly from GAC using unmanaged C++? I want load assembly into
memory or get path to file on disk.

Alex.
 
Alex,
Hello group!

How to load assembly from GAC using unmanaged C++? I want load assembly into
memory or get path to file on disk.

I've never tried it, but perhaps using the Fusion API [1] you could use
IAssemblyCache::QueryAssemblyInfo() to get the path to the actual dll and
then load that using LoadLibrary? (I'm presumming you want it for
inspection, you're not actually trying to load and execute managed code on
it, because it would be an entirely different thing)

[1] http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q317540
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top