How to compile 32 bit app that uses Wow64DisableWow64FsRedirection with BDS 2006
Posted on 2009-05-19
Hello, I'm trying to compile my 32 bit application written with the C plus plus builder personality of BDS 2006.
The problem is that I need to use the API function Wow64DisableWow64FsRedirection. MSDN states that _WIN32_WINNT must be defined to 0x0501 or higher, but if I do such definition, the compiler gives me the following error:
[C++ Error] Windows.hpp(2435): E2040 Declaration terminated incorrectly
This error is related to this definition:
static const Shortint WTS_CONSOLE_CONNECT = 0x1;
Many errors like this follows the first. I cannot understand why the compiler gives me the error. If I avoid to redefine _WIN32_WINNT everything compiles except the point where I use the needed function.
Thanks in advance.