I got a project from the web. The "solution" and the "projects" files were coded for VS2010 but I changed the version numbers and I could load them in my VS2005. I tried to build the solution and I get errors like:
'WOW64_CONTEXT': undeclared identifier
'wow64Context': undeclared identifier
'Wow64GetThreadContext': is not a member of 'global namespace'
etc...
I know from the doc that WOW64_CONTEXT must be declared inside winnt.h. On my system, it is not. What is going on? I'm new to WoW but I understand the concept. I just never used it.
Here is my setup (NOTE: I have Intel CC 9 installed but I don't use it for this project. I use the MS compiler):
Microsoft Visual Studio 2005 Version 8.0.50727.867 (vsvista.050727-8600) Microsoft .NET Framework Version 2.0.50727 SP2
Installed Edition: Professional Microsoft Visual C# 2005 77626-009-2220332-41593 Microsoft Visual C++ 2005 77626-009-2220332-41593 Microsoft Visual Studio 2005 Tools for Applications 77626-009-2220332-41593 Microsoft Web Application Projects 2005 77626-009-2220332-41593 Version 8.0.50727.867 Hotfix for Microsoft Visual Studio 2005 Professional Edition - ENU (KB932372)
Intel(R) C++ Compiler Integration for Microsoft Visual Studio 2005, Version 9.1.632.2005 , Copyright (C) 2002-2007 Intel Corporation.
Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack 1 (KB926601)
Security Update for Microsoft Visual Studio 2005 Professional Edition - ENU (KB2251481)
Security Update for Microsoft Visual Studio 2005 Professional Edition - ENU (KB2465367)
Security Update for Microsoft Visual Studio 2005 Professional Edition - ENU (KB2538218)
Security Update for Microsoft Visual Studio 2005 Professional Edition - ENU (KB971023)
Security Update for Microsoft Visual Studio 2005 Professional Edition - ENU (KB971090)
Security Update for Microsoft Visual Studio 2005 Professional Edition - ENU (KB973673)
Update for Microsoft Visual Studio 2005 Professional Edition - ENU (KB932232)
Can somebody help me?
In the docs, see that "Minimum supported client: Vista" section.
You'll need a recent version of the Windows SDK that covers Vista, and also need to define the WINVER
and _WIN32_WINNT
macros to 0x600 or higher to enable Vista functions. The documentation is here and Raymond Chen gives some history on his blog.