mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
75 lines
1.4 KiB
C++
75 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include "targetver.h"
|
|
|
|
// 从 Windows 头文件中排除极少使用的内容
|
|
#define WIN32_LEAN_AND_MEAN
|
|
// 使用标准库的 min 和 max 而不是宏
|
|
#define NOMINMAX
|
|
// 排除不需要的 API
|
|
#define NOGDICAPMASKS
|
|
#define NOMENUS
|
|
#define NOICONS
|
|
#define NOKEYSTATES
|
|
#define NOSYSCOMMANDS
|
|
#define NOATOM
|
|
#define NOCLIPBOARD
|
|
#define NOCOLOR
|
|
#define NODRAWTEXT
|
|
#define NOMB
|
|
#define NOMEMMGR
|
|
#define NOMETAFILE
|
|
#define NOOPENFILE
|
|
#define NOSCROLL
|
|
#define NOSERVICE
|
|
#define NOSOUND
|
|
#define NOTEXTMETRIC
|
|
#define NOWH
|
|
#define NOCOMM
|
|
#define NOKANJI
|
|
#define NOHELP
|
|
#define NOPROFILER
|
|
#define NODEFERWINDOWPOS
|
|
#define NOMCX
|
|
|
|
|
|
// Windows 头文件
|
|
#include <windows.h>
|
|
#include <windowsx.h>
|
|
#include <magnification.h>
|
|
#include <d3d11.h>
|
|
#include <d3d11_1.h>
|
|
#include <d3dcompiler.h>
|
|
#include <dxgi1_5.h>
|
|
#include <dxgi1_6.h>
|
|
#include <wrl/client.h>
|
|
#include <dwmapi.h>
|
|
#include <profileapi.h>
|
|
|
|
// C++ 运行时头文件
|
|
#include <string>
|
|
#include <memory>
|
|
#include <cstdlib>
|
|
#include <functional>
|
|
#include <algorithm>
|
|
#include <string_view>
|
|
|
|
// C++/WinRT 头文件
|
|
#include <winrt/base.h>
|
|
#include <winrt/Windows.Foundation.h>
|
|
|
|
// fmt
|
|
#include <fmt/format.h>
|
|
#include <fmt/xchar.h>
|
|
#include <fmt/printf.h>
|
|
|
|
// spdlog
|
|
#include <spdlog/spdlog.h>
|
|
#include <spdlog/sinks/rotating_file_sink.h>
|
|
|
|
|
|
|
|
#pragma comment(lib, "Magnification.lib")
|
|
#pragma comment(lib, "d3d11.lib")
|
|
#pragma comment(lib, "windowsapp")
|
|
#pragma comment(lib, "dwmapi.lib")
|