| 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected