summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-06-14 15:40:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:14 -0500
commit2265f5c9d7a829a835d6b58be2abe0604ee0b367 (patch)
tree8c1889c25194524a692b3243be109a4ea8ed10c0 /source3/include
parentd559edcce23ada96c4a788c3dbeb66c2890db054 (diff)
downloadsamba-2265f5c9d7a829a835d6b58be2abe0604ee0b367.tar.gz
samba-2265f5c9d7a829a835d6b58be2abe0604ee0b367.tar.bz2
samba-2265f5c9d7a829a835d6b58be2abe0604ee0b367.zip
r7573: you can't make an omlette without break a few eggs....start reworking the svcctl code
(This used to be commit 24b369d12f8d5dbfdc317e5f088b8ae2583f4483)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/rpc_svcctl.h25
1 files changed, 23 insertions, 2 deletions
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 */
/**************************/