Velocity Reviews

Velocity Reviews (
-   Windows 64bit (
-   -   Detecting 64-Bit DLLs (

Jim Henriksen 01-25-2007 01:29 PM

Detecting 64-Bit DLLs
What is the best way to determine that a DLL is 32- or 64-bit from a
running program? If I issue a LoadLibrary call that attempts to load a
32-bit DLL from my 64-bit application, the result is
ERROR_BAD_EXE_FORMAT. This information is uncomfortably vague. While
in most cases, the problem is that a 32-bit DLL has been used, the
possibility remains that the DLL could be an improperly formatted 64-bit

Holger 02-03-2007 01:17 AM

Re: Detecting 64-Bit DLLs
Hello Jim,
you can use GetBinaryType for your purpose:

Best regards,

All times are GMT. The time now is 01:35 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.