Determine if your app is in a Focus Assist profile's priority list

(updated: )

There's no public API for manipulating Focus Assist, so I reverse engineered IQuietHoursSettings and IQuietHoursProfile (from Windows 10 1903). The standard using-reverse-engineered-information disclaimer applies here.

C++ and C# examples: