Has anyone ever seen a way to get the DLL version number of a Windows API file without using LoadLibrary. I am having a problem when I make multiple calls, I keep getting an exception that my exception handler does not handle as it is in the API file. Currently I am using the DllGetVersion function that is available to the Windows API but I would prefer to either not load the DLL at all or load it as a data file. This is the routine I am using now (left out the exception handler proc because it is tested and working)
Exception number: c0000005 (access violation)
*----> System Information <----*
Computer Name: DEVLAPTOP
User Name: Administrator
Number of Processors: 1
Processor Type: x86 Family 6 Model 8 Stepping 3
Windows 2000 Version: 5.0
Current Build: 2195
Service Pack: 4
Current Type: Uniprocessor Free
Registered Organization:
Registered Owner: Donkey
State Dump for Thread Id 0x398
eax=00000000 ebx=00000000 ecx=0012fa20 edx=00000000 esi=77fcc7d3 edi=00000000
eip=77f8f9c5 esp=0012f9b8 ebp=0012fa50 iopl=0 nv up ei ng nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00200282
function: ZwCreateFile
77f8f9ba b820000000 mov eax,0x20
77f8f9bf 8d542404 lea edx,[esp+0x4] ss:00ba989f=????????
77f8f9c3 cd2e int 2e
77f8f9c5 c22c00 ret 0x2c
Hi donkey,
I saw article in c++ on how to get version information from dll's without using API
it might help http://www.codeproject.com/file/VersionInfo.asp
I saw article in c++ on how to get version information from dll's without using API
it might help http://www.codeproject.com/file/VersionInfo.asp
Thanks Mikky,
I thought that was only to use on open modules, I will try it on a lib that is not open.
I thought that was only to use on open modules, I will try it on a lib that is not open.
Hi, donkey :)
I used to do that to get the WinAsm version in my old addins, I'll post some code if you still need it. I used the same approach as in the article in Mikky's post.
I used to do that to get the WinAsm version in my old addins, I'll post some code if you still need it. I used the same approach as in the article in Mikky's post.
Hi QvasiModo,
Thanks but it was more just a brain block thing. I have had source on my site written by me to do it for some time but just couldn't think straight or something. The problem is resolved and the source is in the GatherAPI application.
Thanks but it was more just a brain block thing. I have had source on my site written by me to do it for some time but just couldn't think straight or something. The problem is resolved and the source is in the GatherAPI application.
Donkey you've got to stop losing your sources :)
Donkey you've got to stop losing your sources :)
That's the real kicker, I didn't lose the source and I knew it could be done that way. But after a week of struggling with the PE file format and reading through endless white-papers on it from MS, I geuss I was just looking for the most complicated way because I was getting used to it. Sometimes the brain just refuses to reboot and you end up asking a question like that one, no harm though.