diff options
author | Gerald Carter <jerry@samba.org> | 2005-12-11 04:21:34 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:05:47 -0500 |
commit | a48955306705ac7f045e3726d7097900550bebe3 (patch) | |
tree | 75e4c9f289256f9553f947c76602aba9f1dd7553 /source3/include | |
parent | 1e0684678eb1851735c9a3321837ad19ea4aba68 (diff) | |
download | samba-a48955306705ac7f045e3726d7097900550bebe3.tar.gz samba-a48955306705ac7f045e3726d7097900550bebe3.tar.bz2 samba-a48955306705ac7f045e3726d7097900550bebe3.zip |
r12173: doing some service control work
* Add a few new error codes for disabled services
* dump some more details about service status in 'net rpc service'
* disable the WINS and NetLogon services if not configured in smb.conf
Still trying to figure out how to disable the start button
on the NetLogon and WINS services.
(This used to be commit c0f54eeebc84ec9fab63c5b105511762bcc136be)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/doserr.h | 2 | ||||
-rw-r--r-- | source3/include/rpc_svcctl.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source3/include/doserr.h b/source3/include/doserr.h index 60c450c819..62c1e4fa22 100644 --- a/source3/include/doserr.h +++ b/source3/include/doserr.h @@ -196,6 +196,8 @@ #define WERR_REG_FILE_INVALID W_ERROR(1017) #define WERR_NO_SUCH_SERVICE W_ERROR(1060) #define WERR_INVALID_SERVICE_CONTROL W_ERROR(1052) +#define WERR_SERVICE_DISABLED W_ERROR(1058) +#define WERR_SERVICE_NEVER_STARTED W_ERROR(1077) #define WERR_MACHINE_LOCKED W_ERROR(1271) #define WERR_INVALID_SECURITY_DESCRIPTOR W_ERROR(1338) #define WERR_EVENTLOG_FILE_CORRUPT W_ERROR(1500) diff --git a/source3/include/rpc_svcctl.h b/source3/include/rpc_svcctl.h index f5ad2afa1c..4a058999a3 100644 --- a/source3/include/rpc_svcctl.h +++ b/source3/include/rpc_svcctl.h @@ -69,6 +69,7 @@ /* SERVER_STATUS - ControlAccepted */ +#define SVCCTL_ACCEPT_NONE 0x00000000 #define SVCCTL_ACCEPT_STOP 0x00000001 #define SVCCTL_ACCEPT_PAUSE_CONTINUE 0x00000002 #define SVCCTL_ACCEPT_SHUTDOWN 0x00000004 @@ -126,7 +127,7 @@ typedef struct { uint32 type; uint32 state; uint32 controls_accepted; - uint32 win32_exit_code; + WERROR win32_exit_code; uint32 service_exit_code; uint32 check_point; uint32 wait_hint; |