瀏覽代碼

Disable interactive checkbox when a user is set.

A service can only interact with the desktop when running as LOCALSYSTEM
so disable the checkbox for that option when a user account is set.
Iain Patterson 10 年之前
父節點
當前提交
8e2c124550
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      gui.cpp

+ 1 - 0
gui.cpp

@@ -81,6 +81,7 @@ static inline void set_timeout_enabled(unsigned long control, unsigned long depe
 }
 
 static inline void set_logon_enabled(unsigned char enabled) {
+  EnableWindow(GetDlgItem(tablist[NSSM_TAB_LOGON], IDC_INTERACT), ! enabled);
   EnableWindow(GetDlgItem(tablist[NSSM_TAB_LOGON], IDC_USERNAME), enabled);
   EnableWindow(GetDlgItem(tablist[NSSM_TAB_LOGON], IDC_PASSWORD1), enabled);
   EnableWindow(GetDlgItem(tablist[NSSM_TAB_LOGON], IDC_PASSWORD2), enabled);