I cannot create a library that needs the WOW64 Api
I am fixing a Windows Vista 64-bit application bug with a 64-bit application, when I try to use the Wow64DisableWow64FsRedirection (...) function, the compiler says "undeclared identifier ...".
I include the Windows.h header file and set _WIN32_WINNT to 0x0501.
Any ideas?
Thanks.
EDIT: we are using MS Visual Studio 2003
a source to share
Your platform SDK files are probably too old to have this feature. This feature first appeared in the SDK with the 64-bit XP platform. You can get the latest SDK here: http://www.microsoft.com/downloads/details.aspx?FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc&displaylang=en
Although he says this is the "Windows SDK for Windows Server® 2008", it is just the latest SDK and will have all backward compatible files.
After installing it, depending on your compiler, you may have to point the include directory to it.
a source to share
If your application needs to run on 32-bit or Windows 2000 Windows XP, you should use LoadLibrary()
and GetProcAddress()
as Canopus suggested, because Wow64DisableWow64FsRedirection()
both Wow64RevertWow64FsRedirection()
weren't added until Windows XP 64-bit and Server 2003 SP1 (according to the documentation ).
a source to share