mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
Add svcctl_MgrAccessMask and svcctl_ServiceAccessMask.
Guenther (This used to be commit eeb7c7d9d0c9f7ac171641bc8cafe20db704fdc4)
This commit is contained in:
parent
a8d7febc7a
commit
975a7447f0
@ -226,19 +226,40 @@
|
||||
|
||||
/*****************/
|
||||
/* Function 0x0f */
|
||||
typedef [bitmap32bit] bitmap {
|
||||
SC_RIGHT_MGR_CONNECT = 0x0001,
|
||||
SC_RIGHT_MGR_CREATE_SERVICE = 0x0002,
|
||||
SC_RIGHT_MGR_ENUMERATE_SERVICE = 0x0004,
|
||||
SC_RIGHT_MGR_LOCK = 0x0008,
|
||||
SC_RIGHT_MGR_QUERY_LOCK_STATUS = 0x0010,
|
||||
SC_RIGHT_MGR_MODIFY_BOOT_CONFIG = 0x0020
|
||||
} svcctl_MgrAccessMask;
|
||||
|
||||
WERROR svcctl_OpenSCManagerW(
|
||||
[in,unique] [string,charset(UTF16)] uint16 *MachineName,
|
||||
[in,unique] [string,charset(UTF16)] uint16 *DatabaseName,
|
||||
[in] uint32 access_mask,
|
||||
[in] svcctl_MgrAccessMask access_mask,
|
||||
[out,ref] policy_handle *handle
|
||||
);
|
||||
|
||||
/*****************/
|
||||
/* Function 0x10 */
|
||||
typedef [bitmap32bit] bitmap {
|
||||
SC_RIGHT_SVC_QUERY_CONFIG = 0x0001,
|
||||
SC_RIGHT_SVC_CHANGE_CONFIG = 0x0002,
|
||||
SC_RIGHT_SVC_QUERY_STATUS = 0x0004,
|
||||
SC_RIGHT_SVC_ENUMERATE_DEPENDENTS = 0x0008,
|
||||
SC_RIGHT_SVC_START = 0x0010,
|
||||
SC_RIGHT_SVC_STOP = 0x0020,
|
||||
SC_RIGHT_SVC_PAUSE_CONTINUE = 0x0040,
|
||||
SC_RIGHT_SVC_INTERROGATE = 0x0080,
|
||||
SC_RIGHT_SVC_USER_DEFINED_CONTROL = 0x0100
|
||||
} svcctl_ServiceAccessMask;
|
||||
|
||||
WERROR svcctl_OpenServiceW(
|
||||
[in,ref] policy_handle *scmanager_handle,
|
||||
[in] [string,charset(UTF16)] uint16 ServiceName[],
|
||||
[in] uint32 access_mask,
|
||||
[in] svcctl_ServiceAccessMask access_mask,
|
||||
[out,ref] policy_handle *handle
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user