https://github.com/microsoft/Windows.UI.Composition-Win32-Samples has various examples, the one I am interested in is ScreenCapture by specify an HWND handle. However it is not working when I update to .net 8. new Compositor() throws security exception (but picker works). Anyone know if MS has plans to update the samples to .net 8 (currently it is .net 4.7)
Thanks!
Tried update to .net 8, mostly remove the contracts.sdk dll and update framework to .net 8 (and latest windows target). It should work as is, but it is not.
Gang Zhang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.