From 100b65f30d267e02374959293f8823cd87e71128 Mon Sep 17 00:00:00 2001 From: fishjam Date: Sat, 23 Jul 2022 10:21:24 +0800 Subject: [PATCH] fix build error for error C2065: 'GetThreadLocale': undeclared identifier --- samples/traceapi/trcapi.cpp | 2 +- samples/tracebld/trcbld.cpp | 2 +- samples/tracelnk/trclnk.cpp | 2 +- samples/tracemem/trcmem.cpp | 2 +- samples/tracereg/trcreg.cpp | 2 +- samples/traceser/trcser.cpp | 2 +- samples/tracessl/trcssl.cpp | 2 +- samples/tracetcp/trctcp.cpp | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/samples/traceapi/trcapi.cpp b/samples/traceapi/trcapi.cpp index e7b7240c..76c908b1 100644 --- a/samples/traceapi/trcapi.cpp +++ b/samples/traceapi/trcapi.cpp @@ -7,7 +7,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // #undef WIN32_LEAN_AND_MEAN -#define _WIN32_WINNT 0x400 +#define _WIN32_WINNT 0x0501 #define WIN32 #define NT #define _WINSOCK_DEPRECATED_NO_WARNINGS diff --git a/samples/tracebld/trcbld.cpp b/samples/tracebld/trcbld.cpp index 5392f904..b246da36 100644 --- a/samples/tracebld/trcbld.cpp +++ b/samples/tracebld/trcbld.cpp @@ -7,7 +7,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // -#define _WIN32_WINNT 0x0500 +#define _WIN32_WINNT 0x0501 #define WIN32 #define NT diff --git a/samples/tracelnk/trclnk.cpp b/samples/tracelnk/trclnk.cpp index 75cbfe2c..e7b3ed9f 100644 --- a/samples/tracelnk/trclnk.cpp +++ b/samples/tracelnk/trclnk.cpp @@ -6,7 +6,7 @@ // // Copyright (c) Microsoft Corporation. All rights reserved. // -#define _WIN32_WINNT 0x0400 +#define _WIN32_WINNT 0x0501 #define WIN32 #define NT diff --git a/samples/tracemem/trcmem.cpp b/samples/tracemem/trcmem.cpp index 85f72b98..3cf7f62d 100644 --- a/samples/tracemem/trcmem.cpp +++ b/samples/tracemem/trcmem.cpp @@ -6,7 +6,7 @@ // // Copyright (c) Microsoft Corporation. All rights reserved. // -#define _WIN32_WINNT 0x0400 +#define _WIN32_WINNT 0x0501 #define WIN32 #define NT diff --git a/samples/tracereg/trcreg.cpp b/samples/tracereg/trcreg.cpp index 7e1b7808..94327ce3 100644 --- a/samples/tracereg/trcreg.cpp +++ b/samples/tracereg/trcreg.cpp @@ -6,7 +6,7 @@ // // Copyright (c) Microsoft Corporation. All rights reserved. // -#define _WIN32_WINNT 0x0400 +#define _WIN32_WINNT 0x0501 #define WIN32 #define NT diff --git a/samples/traceser/trcser.cpp b/samples/traceser/trcser.cpp index b696fe6b..20adab39 100644 --- a/samples/traceser/trcser.cpp +++ b/samples/traceser/trcser.cpp @@ -6,7 +6,7 @@ // // Copyright (c) Microsoft Corporation. All rights reserved. // -#define _WIN32_WINNT 0x0400 +#define _WIN32_WINNT 0x0501 #define WIN32 #define NT diff --git a/samples/tracessl/trcssl.cpp b/samples/tracessl/trcssl.cpp index ffc44391..f27ce618 100644 --- a/samples/tracessl/trcssl.cpp +++ b/samples/tracessl/trcssl.cpp @@ -6,7 +6,7 @@ // // Copyright (c) Microsoft Corporation. All rights reserved. // -#define _WIN32_WINNT 0x0400 +#define _WIN32_WINNT 0x0501 #define WIN32 #define NT #define SECURITY_WIN32 diff --git a/samples/tracetcp/trctcp.cpp b/samples/tracetcp/trctcp.cpp index 9f2a879b..761049dc 100644 --- a/samples/tracetcp/trctcp.cpp +++ b/samples/tracetcp/trctcp.cpp @@ -6,7 +6,7 @@ // // Copyright (c) Microsoft Corporation. All rights reserved. // -#define _WIN32_WINNT 0x0400 +#define _WIN32_WINNT 0x0501 #define WIN32 #define NT #define _WINSOCK_DEPRECATED_NO_WARNINGS