summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/include/rpc_svcctl.h13
-rw-r--r--source3/rpc_server/srv_svcctl_nt.c2
-rw-r--r--source3/services/services_db.c2
-rw-r--r--source3/utils/net_rpc_service.c2
4 files changed, 3 insertions, 16 deletions
diff --git a/source3/include/rpc_svcctl.h b/source3/include/rpc_svcctl.h
index 06218b6239..2b30bfbfb1 100644
--- a/source3/include/rpc_svcctl.h
+++ b/source3/include/rpc_svcctl.h
@@ -45,19 +45,6 @@
#define SVCCTL_OPEN_SCMANAGER_A 0x1b
*/
-/* SERVER_STATUS - type */
-
-#define SVCCTL_TYPE_WIN32 0x00000030
-#define SVCCTL_TYPE_DRIVER 0x0000000f
-
-/* Service Config - values for ServiceType field*/
-
-#define SVCCTL_KERNEL_DRVR 0x00000001 /* doubtful we'll have these */
-#define SVCCTL_FILE_SYSTEM_DRVR 0x00000002
-#define SVCCTL_WIN32_OWN_PROC 0x00000010
-#define SVCCTL_WIN32_SHARED_PROC 0x00000020
-#define SVCCTL_WIN32_INTERACTIVE 0x00000100
-
/* utility structures for RPCs */
/*
diff --git a/source3/rpc_server/srv_svcctl_nt.c b/source3/rpc_server/srv_svcctl_nt.c
index 457e44a2df..1b9c9b84e4 100644
--- a/source3/rpc_server/srv_svcctl_nt.c
+++ b/source3/rpc_server/srv_svcctl_nt.c
@@ -650,7 +650,7 @@ static WERROR fill_svc_config( TALLOC_CTX *ctx, const char *name,
/* loadordergroup and dependencies are empty */
config->tag_id = 0x00000000; /* unassigned loadorder group */
- config->service_type = SVCCTL_WIN32_OWN_PROC;
+ config->service_type = SERVICE_TYPE_WIN32_OWN_PROCESS;
config->error_control = SVCCTL_SVC_ERROR_NORMAL;
/* set the start type. NetLogon and WINS are disabled to prevent
diff --git a/source3/services/services_db.c b/source3/services/services_db.c
index dbd2da1c65..e41524851f 100644
--- a/source3/services/services_db.c
+++ b/source3/services/services_db.c
@@ -260,7 +260,7 @@ static void fill_service_values( const char *name, REGVAL_CTR *values )
dword = SVCCTL_AUTO_START;
regval_ctr_addvalue( values, "Start", REG_DWORD, (char*)&dword, sizeof(uint32));
- dword = SVCCTL_WIN32_OWN_PROC;
+ dword = SERVICE_TYPE_WIN32_OWN_PROCESS;
regval_ctr_addvalue( values, "Type", REG_DWORD, (char*)&dword, sizeof(uint32));
dword = SVCCTL_SVC_ERROR_NORMAL;
diff --git a/source3/utils/net_rpc_service.c b/source3/utils/net_rpc_service.c
index 7d1c4860aa..2c32537e80 100644
--- a/source3/utils/net_rpc_service.c
+++ b/source3/utils/net_rpc_service.c
@@ -224,7 +224,7 @@ static NTSTATUS rpc_service_list_internal(struct net_context *c,
return werror_to_ntstatus(result);
}
- result = rpccli_svcctl_enumerate_services(pipe_hnd, mem_ctx, &hSCM, SVCCTL_TYPE_WIN32,
+ result = rpccli_svcctl_enumerate_services(pipe_hnd, mem_ctx, &hSCM, SERVICE_TYPE_WIN32,
SVCCTL_STATE_ALL, &num_services, &services );
if ( !W_ERROR_IS_OK(result) ) {