winrt::resume_foreground returns a bool on failure, which is very prone to misuse. wil::resume_foreground should be used instead. See https://github.com/microsoft/cppwinrt/issues/1244.
winrt::resume_foreground returns a bool on failure, which is very prone to misuse. wil::resume_foreground should be used instead.
See microsoft#1244.