Anti-screenshot.

This commit is contained in:
BeneficialCode
2025-11-21 23:28:46 +08:00
parent 1a9eb48947
commit bfd29ca7e7
+2 -1
View File
@@ -168,8 +168,9 @@ int Run(LPTSTR lpstrCmdLine = nullptr, int nCmdShow = SW_SHOWDEFAULT) {
cmdLine.Trim(L" \"");
if(!cmdLine.IsEmpty()&&cmdLine.Right(11).CompareNoCase(L"regedit.exe")!=0)*/
// CreateEx²Å»á¼ÓÔØ IDR_MAINFRAMEÏà¹ØµÄ×ÊÔ´
// CreateEx will load IDR_MAINFRAME
_hMainWnd = wndMain.CreateEx(NULL);
SetWindowDisplayAffinity(_hMainWnd, WDA_MONITOR);
if (_hMainWnd == NULL) {
ATLTRACE(_T("Main dialog creation failed!\n"));
return 0;