Capture a Windows 10, 11 window and save it to a file.
Java code for the blog post https://analyticgarden.blogspot.com/2022/08/getting-window-from-windows.html
Requires MS Windows 10, 11. Requires jna-5.12.1.jar, jna-platform-5.12.1.jar from https://github.com/java-native-access/jna.
See the post for details.