From 2265f5c9d7a829a835d6b58be2abe0604ee0b367 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Tue, 14 Jun 2005 15:40:51 +0000 Subject: r7573: you can't make an omlette without break a few eggs....start reworking the svcctl code (This used to be commit 24b369d12f8d5dbfdc317e5f088b8ae2583f4483) --- source3/include/rpc_svcctl.h | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'source3/include/rpc_svcctl.h') diff --git a/source3/include/rpc_svcctl.h b/source3/include/rpc_svcctl.h index b344804bcf..c49d536e49 100644 --- a/source3/include/rpc_svcctl.h +++ b/source3/include/rpc_svcctl.h @@ -106,8 +106,8 @@ #define SVCCTL_CONTROL_CONTINUE 0x00000003 #define SVCCTL_CONTROL_SHUTDOWN 0x00000004 -#define SVC_HANDLE_IS_SCM 0x0000001 -#define SVC_HANDLE_IS_SERVICE 0x0000002 +#define SVC_HANDLE_IS_SCM 0x0000001 +#define SVC_HANDLE_IS_SERVICE 0x0000002 #define SVC_STATUS_PROCESS_INFO 0x00000001 @@ -196,6 +196,27 @@ typedef struct Service_info_struct { pstring description; } Service_info; +/* + * dispatch table of functions to handle the =ServiceControl API + */ + +typedef struct { + /* functions for enumerating subkeys and values */ + WERROR (*stop_service)( void ); + WERROR (*start_service) ( void ); + BOOL (*service_status)( SERVICE_STATUS *status ); +} SERVICE_CONTROL_OPS; + +/* structure to store the service handle information */ + +typedef struct _ServiceInfo { + uint8 type; + char *name; + uint32 access_granted; + SERVICE_CONTROL_OPS *ops; +} SERVICE_INFO; + + /* rpc structures */ /**************************/ -- cgit