开发者

Where will I find WOW64... defines on my setup (VS 2005 on Vista 64, C++)

开发者 https://www.devze.com 2023-03-19 11:37 出处:网络
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 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++ 20开发者_运维技巧05 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?


Maybe someone else will ask this question again, although it was already here even 4 years.

  1. Open your C disk. and serch for WinNT.H.
  2. Open WinNT.H and serch for CONTEXT_AMD64
  3. DECLSPEC_ALIGN(16) _CONTEXT will feed your need.
  4. For short: Open WinNT.H and goto line:3647. Ok, got it.


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.

  • Currently latest Windows SDK download
  • List of Windows SDKs on Wikipedia (check here for updated download links)
0

精彩评论

暂无评论...
验证码 换一张
取 消