having a git of a time trying to load a particular call from version.dll
im hoping its just a typo, but im going blind looking for the problem.
im hoping its just a typo, but im going blind looking for the problem.
Code:
HINSTANCE hiVERSION = LoadLibrary("VERSION.DLL");
if( hiVERSION==NULL) return 0;
typedef DWORD (WINAPI *LPGETFILEVERSIONINFOSIZE)( LPTSTR , LPDWORD);
typedef BOOL (WINAPI *LPGETFILEVERSIONINFO)(LPTSTR,DWORD,DWORD,LPVOID);
typedef BOOL (WINAPI *LPVERQUERYVALUE)(const LPVOID,LPTSTR,LPVOID,PUINT );
LPGETFILEVERSIONINFOSIZE lpfGetFileVersionInfoSize=(LPGETFILEVERSIONINFOSIZE)GetProcAddress(hiVERSION,"GetFileVersionInfoSizeA");
LPGETFILEVERSIONINFO lpfGetFileVersionInfo = (LPGETFILEVERSIONINFO)GetProcAddress(hiVERSION,"GetFileVersionInfoA");
LPVERQUERYVALUE lpfVerQueryValue = (LPVERQUERYVALUE)GetProcAddress(hiVERSION,"VerQueryValA");[/quote]
GetFileVersionInfoSizeA
and
GetFileVersionInfoA
both return valid addresses, but
VerQueryValA returns 0x0.
any help appreciated.
If somethings hard to do, its not worth doing - Homer Simpson