A Win32 C++ GUI Program That Cannot Be Screen Captured

A very simple Win32 C++ program that displays a window that cannot be captured (the captured part will turn black). The core is the Win32 API <span>SetWindowDisplayAffinity</span>, and the other part is just a Hello World. Compilation method: Use MinGW-w64 (MSYS2) to compile, the command is<span>g++ -municode -mwindows -O2 protected.cpp -o protected.exe</span> The source code … Read more