Search code examples
c++winapiwow64

I can't build a library that needs WOW64 Api


I'm fixing a bug with Windows Vista 64 bits of a 32bit application, when I try to use the function Wow64DisableWow64FsRedirection(...) the compiler says 'undeclared identifier...'.

I'm including the Windows.h header file and set _WIN32_WINNT to 0x0501.

Any ideas?

Thanks.

EDIT: We're using MS Visual Studio 2003


Solution

  • Can you see this API in the header file? May be the Visual Studio you are using is not having updated header file, in which case you will need to do a LoadLibrary for Kernel32.dll and then GetProcAddress for the required function.