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.
master
Iain Patterson 11 years ago
parent a180ba0774
commit 8e2c124550

@ -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);

Loading…
Cancel
Save