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
 
Back
Top