Browse Source

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 years ago
parent
commit
8e2c124550
1 changed files with 1 additions and 0 deletions
  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);