{"id":658,"date":"2016-04-18T14:30:30","date_gmt":"2016-04-18T06:30:30","guid":{"rendered":"http:\/\/gnonstop.linkpc.net\/~gordon\/?p=658"},"modified":"2025-08-22T21:47:14","modified_gmt":"2025-08-22T13:47:14","slug":"winver-_win32_winnt-macro-values","status":"publish","type":"post","link":"https:\/\/guerilla.ddns.net\/wp\/?p=658","title":{"rendered":"WINVER &#038; _WIN32_WINNT macro values"},"content":{"rendered":"<p>Visual C++ no longer supports targeting Windows 95, Windows 98, Windows ME, Windows NT or Windows 2000. If your WINVER or _WIN32_WINNT macros are assigned to one of these versions of Windows, you must modify the macros. When you upgrade a project that was created by using an earlier version of Visual C++, you may see compilation errors related to the WINVER or _WIN32_WINNT macros if they are assigned to a version of Windows that is no longer supported.<\/p>\n<pre><code class=\"language-cpp\" data-line=\"\">\/\/\n\/\/ _WIN32_WINNT version constants\n\/\/\n#define _WIN32_WINNT_NT4           0x0400 \/\/ Windows NT 4.0\n#define _WIN32_WINNT_WIN2K         0x0500 \/\/ Windows 2000\n#define _WIN32_WINNT_WINXP         0x0501 \/\/ Windows XP\n#define _WIN32_WINNT_WS03          0x0502 \/\/ Windows Server 2003\n#define _WIN32_WINNT_WIN6          0x0600 \/\/ Windows Vista\n#define _WIN32_WINNT_VISTA         0x0600 \/\/ Windows Vista\n#define _WIN32_WINNT_WS08          0x0600 \/\/ Windows Server 2008\n#define _WIN32_WINNT_LONGHORN      0x0600 \/\/ Windows Vista\n#define _WIN32_WINNT_WIN7          0x0601 \/\/ Windows 7\n#define _WIN32_WINNT_WIN8          0x0602 \/\/ Windows 8\n#define _WIN32_WINNT_WINBLUE       0x0603 \/\/ Windows 8.1\n#define _WIN32_WINNT_WINTHRESHOLD  0x0A00 \/\/ Windows 10\n#define _WIN32_WINNT_WIN10         0x0A00 \/\/ Windows 10\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>ref: <a href=\"https:\/\/docs.microsoft.com\/en-us\/cpp\/porting\/modifying-winver-and-win32-winnt\" target=\"_blank\" rel=\"noopener\">Modifying WINVER and _WIN32_WINNT<\/a><\/p>\n<p>#cpp<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visual C++ no longer supports targeting Windows 95, Win [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[212],"tags":[85,27,69],"class_list":["post-658","post","type-post","status-publish","format-standard","hentry","category-coding","tag-c","tag-coding","tag-visual-studio"],"_links":{"self":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=658"}],"version-history":[{"count":5,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/658\/revisions"}],"predecessor-version":[{"id":3405,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/658\/revisions\/3405"}],"wp:attachment":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}