mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 09:46:54 +02:00
PCH: remove headers which are actually could be changed (#950)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#pragma once
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <common/common.h>
|
||||
#include <ProjectTelemetry.h>
|
||||
@@ -7,6 +7,10 @@
|
||||
#include <lib/ZoneSet.h>
|
||||
#include <lib/RegistryHelpers.h>
|
||||
|
||||
#include <lib/trace.h>
|
||||
#include <lib/Settings.h>
|
||||
#include <lib/FancyZones.h>
|
||||
|
||||
extern "C" IMAGE_DOS_HEADER __ImageBase;
|
||||
|
||||
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
|
||||
|
||||
@@ -8,9 +8,6 @@
|
||||
#include <wil\common.h>
|
||||
#include <wil\result.h>
|
||||
|
||||
#include "lib\trace.h"
|
||||
#include "lib\FancyZones.h"
|
||||
#include "lib\Settings.h"
|
||||
|
||||
namespace winrt
|
||||
{
|
||||
|
||||
@@ -2,7 +2,14 @@
|
||||
#include "common/dpi_aware.h"
|
||||
#include "common/on_thread_executor.h"
|
||||
|
||||
#include "FancyZones.h"
|
||||
#include "lib/Settings.h"
|
||||
#include "lib/ZoneWindow.h"
|
||||
#include "lib/RegistryHelpers.h"
|
||||
#include "trace.h"
|
||||
|
||||
#include <functional>
|
||||
#include <common/common.h>
|
||||
|
||||
namespace std
|
||||
{
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#include "pch.h"
|
||||
#include <common/settings_objects.h>
|
||||
#include "lib/Settings.h"
|
||||
#include "lib/FancyZones.h"
|
||||
#include "trace.h"
|
||||
|
||||
struct FancyZonesSettings : winrt::implements<FancyZonesSettings, IFancyZonesSettings>
|
||||
{
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#include "pch.h"
|
||||
|
||||
#include "Zone.h"
|
||||
#include "Settings.h"
|
||||
|
||||
struct Zone : winrt::implements<Zone, IZone>
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#include "pch.h"
|
||||
|
||||
#include "lib/ZoneSet.h"
|
||||
#include "lib/RegistryHelpers.h"
|
||||
|
||||
struct ZoneSet : winrt::implements<ZoneSet, IZoneSet>
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
#include "pch.h"
|
||||
|
||||
#include <common/common.h>
|
||||
#include <common/dpi_aware.h>
|
||||
|
||||
#include "ZoneWindow.h"
|
||||
#include "trace.h"
|
||||
#include "util.h"
|
||||
#include "RegistryHelpers.h"
|
||||
|
||||
#include <ShellScalingApi.h>
|
||||
|
||||
struct ZoneWindow : public winrt::implements<ZoneWindow, IZoneWindow>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
#include "FancyZones.h"
|
||||
#include "lib/ZoneSet.h"
|
||||
|
||||
interface __declspec(uuid("{7F017528-8110-4FB3-BE41-F472969C2560}")) IZoneWindow : public IUnknown
|
||||
{
|
||||
|
||||
@@ -16,16 +16,6 @@
|
||||
#include <windows.foundation.h>
|
||||
#include <psapi.h>
|
||||
|
||||
#include "trace.h"
|
||||
#include "Settings.h"
|
||||
#include "FancyZones.h"
|
||||
#include "ZoneWindow.h"
|
||||
#include "ZoneSet.h"
|
||||
#include "Zone.h"
|
||||
#include "util.h"
|
||||
#include "common/common.h"
|
||||
#include "RegistryHelpers.h"
|
||||
|
||||
#pragma comment(lib, "windowsapp")
|
||||
|
||||
namespace winrt
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "trace.h"
|
||||
#include "lib/ZoneSet.h"
|
||||
#include "lib/Settings.h"
|
||||
|
||||
TRACELOGGING_DEFINE_PROVIDER(
|
||||
g_hProvider,
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#include "pch.h"
|
||||
#include "lib\Zone.h"
|
||||
|
||||
#include "Util.h"
|
||||
|
||||
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
||||
|
||||
namespace FancyZonesUnitTests
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#include "pch.h"
|
||||
#include "lib\ZoneSet.h"
|
||||
|
||||
#include "Util.h"
|
||||
|
||||
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
||||
|
||||
namespace FancyZonesUnitTests
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
#include "pch.h"
|
||||
#include "lib\ZoneSet.h"
|
||||
|
||||
#include <lib/util.h>
|
||||
#include <lib/ZoneSet.h>
|
||||
#include <lib/ZoneWindow.h>
|
||||
#include "Util.h"
|
||||
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
||||
|
||||
namespace FancyZonesUnitTests
|
||||
|
||||
@@ -13,6 +13,5 @@
|
||||
|
||||
#include "lib\pch.h"
|
||||
#include "CppUnitTest.h"
|
||||
#include "Util.h"
|
||||
|
||||
#endif //PCH_H
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
#include <atlbase.h>
|
||||
#include <Shobjidl.h>
|
||||
#include <Shlobj.h>
|
||||
#include "common/common.h"
|
||||
|
||||
void DllAddRef();
|
||||
void DllRelease();
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <common.h>
|
||||
#include <lib/PowerRenameInterfaces.h>
|
||||
|
||||
HRESULT EnumerateDataObject(_In_ IDataObject* pdo, _In_ IPowerRenameManager* psrm);
|
||||
HRESULT GetIconIndexFromPath(_In_ PCWSTR path, _Out_ int* index);
|
||||
HBITMAP CreateBitmapFromIcon(_In_ HICON hIcon, _In_opt_ UINT width = 0, _In_opt_ UINT height = 0);
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
#include <map>
|
||||
#include "srwlock.h"
|
||||
|
||||
#include <lib/PowerRenameManager.h>
|
||||
#include <lib/PowerRenameInterfaces.h>
|
||||
|
||||
class CPowerRenameManager :
|
||||
public IPowerRenameManager,
|
||||
public IPowerRenameRegExEvents
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
#include <string>
|
||||
#include "srwlock.h"
|
||||
|
||||
#include "PowerRenameInterfaces.h"
|
||||
|
||||
#define DEFAULT_FLAGS MatchAllOccurences
|
||||
|
||||
class CPowerRenameRegEx : public IPowerRenameRegEx
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include "stdafx.h"
|
||||
#include <commctrl.h>
|
||||
#include "Settings.h"
|
||||
#include "PowerRenameInterfaces.h"
|
||||
|
||||
const wchar_t c_rootRegPath[] = L"Software\\Microsoft\\PowerRename";
|
||||
const wchar_t c_mruSearchRegPath[] = L"SearchMRU";
|
||||
|
||||
@@ -19,5 +19,3 @@
|
||||
#include <shlwapi.h>
|
||||
|
||||
#include <ProjectTelemetry.h>
|
||||
|
||||
#include "PowerRenameInterfaces.h"
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <vector>
|
||||
#include "srwlock.h"
|
||||
|
||||
#include "PowerRenameInterfaces.h"
|
||||
class CMockPowerRenameRegExEvents :
|
||||
public IPowerRenameRegExEvents
|
||||
{
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "keyboard_state.h"
|
||||
#include "shortcut_guide.h"
|
||||
#include "trace.h"
|
||||
#include <common/common.h>
|
||||
|
||||
D2DOverlaySVG& D2DOverlaySVG::load(const std::wstring& filename, ID2D1DeviceContext5* d2d_dc)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#pragma once
|
||||
#include "resource.h"
|
||||
#include <winrt/base.h>
|
||||
#include <Windows.h>
|
||||
#include <dxgi1_3.h>
|
||||
@@ -23,5 +22,4 @@
|
||||
#include <tuple>
|
||||
#include <unordered_set>
|
||||
#include <string>
|
||||
#include <common/common.h>
|
||||
#include <ProjectTelemetry.h>
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
#include "shortcut_guide.h"
|
||||
#include "target_state.h"
|
||||
#include "trace.h"
|
||||
|
||||
#include <common/common.h>
|
||||
#include <common/settings_objects.h>
|
||||
|
||||
extern "C" IMAGE_DOS_HEADER __ImageBase;
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
#include <interface/lowlevel_keyboard_event_data.h>
|
||||
#include "overlay_window.h"
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
// We support only one instance of the overlay
|
||||
extern class OverlayWindow* instance;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user