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