Files
dwmblurglass/DWMBlurGlassExt/DefFunctionList.h
T
2024-01-15 00:35:09 +08:00

47 lines
1.9 KiB
C++

/**
* FileName: DefFunctionList.h
*
* Copyright (C) 2024 Maplespe
*
* This file is part of MToolBox and DWMBlurGlass.
* DWMBlurGlass is free software: you can redistribute it and/or modify it under the terms of the
* GNU Lesser General Public License as published by the Free Software Foundation, either version 3
* of the License, or any later version.
*
* DWMBlurGlass is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with Foobar.
* If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
*/
#pragma once
#include "framework.h"
#include "Common.h"
#include <array>
namespace MDWMBlurGlassExt
{
using namespace MDWMBlurGlass;
constexpr auto g_hookFunList = std::to_array<std::pair<MHostModuleType, LPCSTR>>
({
{ dwmcore, "CRenderData::DrawSolidColorRectangle" },
{ dwmcore, "CRenderingTechnique::ExecuteBlur" }, //Only Windows 11
{ dwmcore, "CD2DContext::FillEffect" }, //Only Windows 10
{ dwmcore, "CCustomBlur::BuildEffect" }, //Only Windows 10
{ dwmcore, "CCustomBlur::DetermineOutputScale" }, //Only Windows 10
{ udwm, "CDesktopManager::s_pDesktopManagerInstance" },
{ udwm, "CWindowList::GetExtendedFrameBounds" },
{ udwm, "CAccent::UpdateAccentPolicy" },
{ udwm, "CAccent::UpdateAccentBlurRect" },
{ udwm, "CTopLevelWindow::s_ChooseWindowFrameFromStyle" },
{ udwm, "CTopLevelWindow::OnAccentPolicyUpdated" },
{ udwm, "CTopLevelWindow::ValidateVisual" },
{ udwm, "CTopLevelWindow::UpdateWindowVisuals" },
{ udwm, "CGlassColorizationParameters::AdjustWindowColorization" },
{ udwm, "CTopLevelWindow::UpdateText" }, //Only Windows 11
{ udwm, "CText::SetColor" } //Only Windows 10
});
}