mirror of
https://github.com/BeneficialCode/WinArk.git
synced 2026-10-17 04:40:35 +08:00
Anti-screenshot.
This commit is contained in:
+2
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user