Search code examples
c++visual-c++winapi64-bitwinlogon

Credential manager for Vista/Windows 7


I have Credential manager implemented in VC++ which captures credentials during login process. It works well in XP/Vista/Windows 7 32 bit env. But is not working in 64 bit. Any idea ? Thanks in advance for any help


Solution

  • If you want your DLL to be loaded by a 64-bit process, your DLL has to be compiled for 64 bits.

    If you want your DLL to be loaded by a 32-bit process, your DLL has to be compiled for 32 bits. This is true on both 64-bit Windows systems and 32-bit Windows systems.

    John gave you a useful link, even though John's wording is wrong. An application (exe) which is built for 32 bits will run in 64 bit Windows, but it can only load 32-bit DLLs.