s3-svcctl: remove some more redundant headers.
[Samba.git] / source3 / include / rpc_svcctl.h
blob2b30bfbfb148ecd881a50b5190faed50c2772d85
1 /*
2 Unix SMB/CIFS implementation.
3 SMB parameters and setup
4 Copyright (C) Andrew Tridgell 1992-1997,
5 Copyright (C) Gerald (Jerry) Carter 2005
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef _RPC_SVCCTL_H /* _RPC_SVCCTL_H */
22 #define _RPC_SVCCTL_H
24 /* svcctl pipe */
26 #define SVCCTL_CLOSE_SERVICE 0x00
27 #define SVCCTL_CONTROL_SERVICE 0x01
28 #define SVCCTL_LOCK_SERVICE_DB 0x03
29 #define SVCCTL_QUERY_SERVICE_SEC 0x04
30 #define SVCCTL_SET_SERVICE_SEC 0x05
31 #define SVCCTL_QUERY_STATUS 0x06
32 #define SVCCTL_UNLOCK_SERVICE_DB 0x08
33 #define SVCCTL_ENUM_DEPENDENT_SERVICES_W 0x0d
34 #define SVCCTL_ENUM_SERVICES_STATUS_W 0x0e
35 #define SVCCTL_OPEN_SCMANAGER_W 0x0f
36 #define SVCCTL_OPEN_SERVICE_W 0x10
37 #define SVCCTL_QUERY_SERVICE_CONFIG_W 0x11
38 #define SVCCTL_START_SERVICE_W 0x13
39 #define SVCCTL_GET_DISPLAY_NAME 0x14
40 #define SVCCTL_QUERY_SERVICE_CONFIG2_W 0x27
41 #define SVCCTL_QUERY_SERVICE_STATUSEX_W 0x28
43 /* ANSI versions not implemented currently
44 #define SVCCTL_ENUM_SERVICES_STATUS_A 0x0e
45 #define SVCCTL_OPEN_SCMANAGER_A 0x1b
48 /* utility structures for RPCs */
51 * "struct SERVICE_STATUS" comes from librpc/gen_ndr/svcctl.h
54 typedef struct SERVICE_STATUS SERVICE_STATUS;
56 typedef struct {
57 UNISTR servicename;
58 UNISTR displayname;
59 SERVICE_STATUS status;
60 } ENUM_SERVICES_STATUS;
62 /* rpc structures */
64 /**************************/
66 typedef struct {
67 POLICY_HND handle;
68 uint32 type;
69 uint32 state;
70 uint32 buffer_size;
71 uint32 *resume;
72 } SVCCTL_Q_ENUM_SERVICES_STATUS;
74 typedef struct {
75 RPC_BUFFER buffer;
76 uint32 needed;
77 uint32 returned;
78 uint32 *resume;
79 WERROR status;
80 } SVCCTL_R_ENUM_SERVICES_STATUS;
82 #endif /* _RPC_SVCCTL_H */