Determine Dll Types Programatically
How can you programmatically determin if a dll is an assembly, win32 or activex?
How can you programmatically determin if a dll is an assembly, win32 or activex?
That is helpful. My goal is to programatically determine if a given DLL is one of the following:
The AssemblyName.getAssemblyName helps, though I would prefer it to be a handled function rather than determining that it isn't an assembly because it threw an exception.
I have read that there is a PE header and it has some logic to it but I am unfamiliar with the header to make any use of it.
Any ideas are appreciated.
Thanks
I feel Microsoft needs to add a API or methods to the .NET Framework to address this need.
Regards,
Vikram
I double checked with our team and there is no API call in .NET that can give you this information. You would need to write custom code to crack open the DLLs and see what they are.
I've passed this on to the product team for consideration in future versions. If you have the time and interest, I suggest you file a suggestion on the product feedback center and reply with the ID number.
Thanks again.
Paul Yuknewicz