// // Created by EmsiaetKadosh on 25-1-14. // #pragma once #include #include #include #include #include using wchar = wchar_t; using QWORD = unsigned long long int; using String = std::wstring; template, typename Alloc = std::allocator>> using Map = std::map; template> using List = std::list; template using Function = std::function; #define Success() { return 0; } #define Failed() { return 1; } #define Error() { return -1; } #if false #ifdef _MSC_VER #define __FUNCSIGW__ L"" __FUNCSIG__ #elif defined(__GNUC__) || defined(__clang__) #define __FUNCSIGW__ L"" __PRETTY_FUNCTION__ #else #define __FUNCSIGW__ L"" __func__ #endif #endif #define _WINSOCKAPI_ /* 防止winsock.h被引入。winsock.h和winsock2.h冲突。 */ #if false #include #endif #define NOMINMAX #include #include #include #include #include #include #include #include #include #pragma comment(lib, "ws2_32.lib") #pragma comment(lib, "dwmapi.lib") #pragma comment(lib, "Uxtheme.lib") #pragma comment(lib, "winmm.lib")