MCPcopy Create free account
hub / github.com/Maplespe/DWMBlurGlass / IsSystemBackdropApplied

Method IsSystemBackdropApplied

DWMBlurGlassExt/Common/DWMStruct.cpp:963–985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

961 }
962
963 bool CTopLevelWindow::IsSystemBackdropApplied()
964 {
965 bool systemBackdropApplied{ false };
966
967 if (os::buildNumber < os::w11_21h2)
968 {
969 systemBackdropApplied = false;
970 }
971 else if (os::buildNumber < os::w11_23h2)
972 {
973 systemBackdropApplied = *reinterpret_cast<DWORD*>(reinterpret_cast<ULONG_PTR>(GetData()) + 204);
974 }
975 else if (os::buildNumber < os::w11_24h2)
976 {
977 systemBackdropApplied = (reinterpret_cast<DWORD const*>(this)[210] <= 3);
978 }
979 else
980 {
981 systemBackdropApplied = (reinterpret_cast<DWORD const*>(this)[200] <= 3);
982 }
983
984 return systemBackdropApplied;
985 }
986
987 HRESULT CTopLevelWindow::UpdateNCAreaButton(int index, int height, int top, DWORD* right)
988 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected