[FancyZones] Bypass restriction on SetForegroundWindow (#14383)

Co-authored-by: float4 <float4-unspecified-mail>
This commit is contained in:
FLOAT4
2021-11-18 11:16:04 +02:00
committed by GitHub
parent 5a4822f89e
commit 5a9f52fb11
3 changed files with 22 additions and 6 deletions

View File

@@ -195,6 +195,8 @@ namespace FancyZonesUtils
// Parameter rect must be in screen coordinates (e.g. obtained from GetWindowRect)
void SizeWindowToRect(HWND window, RECT rect) noexcept;
void SwitchToWindow(HWND window) noexcept;
bool HasNoVisibleOwner(HWND window) noexcept;
bool IsStandardWindow(HWND window);
bool IsCandidateForLastKnownZone(HWND window, const std::vector<std::wstring>& excludedApps) noexcept;