// cancellation requests to unblock the thread.
VOID CALLBACK dummy_cb(ULONG_PTR dwParam) { (void)dwParam; }
-// CancelSynchronousIo is not in Windows XP
-#if _WIN32_WINNT >= 0x0600
static void wake_up_thread(HANDLE thread) {
if (!CancelSynchronousIo(thread)) {
DWORD err = GetLastError();
}
}
}
-#else
-static void wake_up_thread(HANDLE thread) { (void)thread; }
-#endif
static BOOL WINAPI ctrl_handler(DWORD dwCtrlType) {
switch (dwCtrlType) {
#include <wchar.h>
#endif
-#if _WIN32_WINNT != 0x0600
-#undef _WIN32_WINNT
-#define _WIN32_WINNT 0x0501 // For AddVectoredExceptionHandler, WinXP support
-//#define _WIN32_WINNT 0x0600 // For CancelSynchronousIo
-#endif
-
#ifndef UNICODE
#define UNICODE
#endif