Detecting or restricting ScreenCaptureKit capture of a specific app's windows

Hi,

I'm exploring macOS options to protect the windows of selected apps from being screen-captured or recorded by other apps (enterprise Macs, managed via MDM).

Is there a supported API or Endpoint Security event that tells when a process starts a screen capture or recording (ScreenCaptureKit), and whether it captures a display or a single window?

Is there a supported way, for example via MDM, to prevent other apps from capturing a specific app's windows?

NSWindow.sharingType = .none no longer seems to exclude a window from ScreenCaptureKit on macOS 15 and later. Is this expected, and is there an alternative?

Tested on macOS 26.3.1 (Apple silicon).

Thanks.