Skip to content

Commit 24d8c45

Browse files
authored
Update mainWindow.cpp
1 parent 77a96fc commit 24d8c45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

System提权工具/mainWindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ INT_PTR CALLBACK mainwindow(HWND hwnddlg, UINT umsg, WPARAM wparam, LPARAM lpara
124124
int WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPSTR lpCmdLine, _In_ int nShowCmd) {
125125

126126
BOOL btn = EnablePrivilege(SE_DEBUG_NAME, TRUE);
127-
127+
SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE);
128128
DialogBox(hInstance, MAKEINTRESOURCE(IDD_DIALOG1), NULL, mainwindow);
129129
return 0;
130-
}
130+
}

0 commit comments

Comments
 (0)