From 1f86a8a1c5392aea91c230e832f0c544e9cb4218 Mon Sep 17 00:00:00 2001 From: hakril Date: Wed, 8 Jan 2025 19:09:43 +0100 Subject: [PATCH] Fix broken ctypes generation : duplicate define --- .../definitions/defines/services.txt | 33 ++----------------- 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/ctypes_generation/definitions/defines/services.txt b/ctypes_generation/definitions/defines/services.txt index c5788c0..e5ba991 100644 --- a/ctypes_generation/definitions/defines/services.txt +++ b/ctypes_generation/definitions/defines/services.txt @@ -1,3 +1,5 @@ +/* Specific Access Rights are in */ + // // Service trigger types // @@ -19,8 +21,6 @@ #define SERVICE_TRIGGER_DATA_TYPE_KEYWORD_ANY 4 #define SERVICE_TRIGGER_DATA_TYPE_KEYWORD_ALL 5 -// Specific Access Rights are in - #define SERVICE_RUNS_IN_SYSTEM_PROCESS 0x00000001 @@ -61,9 +61,6 @@ SERVICE_WIN32_OWN_PROCESS) /* Make a value for the new SERVICE_TYPE_ALL ? */ - - - #define SERVICE_BOOT_START 0x00000000 #define SERVICE_SYSTEM_START 0x00000001 #define SERVICE_AUTO_START 0x00000002 @@ -116,28 +113,4 @@ SERVICE_WIN32_OWN_PROCESS) #define SERVICE_ACCEPT_SESSIONCHANGE 0x00000080 #define SERVICE_ACCEPT_PRESHUTDOWN 0x00000100 #define SERVICE_ACCEPT_TIMECHANGE 0x00000200 -#define SERVICE_ACCEPT_TRIGGEREVENT 0x00000400 - -// -// Service object specific access type -// -#define SERVICE_QUERY_CONFIG 0x0001 -#define SERVICE_CHANGE_CONFIG 0x0002 -#define SERVICE_QUERY_STATUS 0x0004 -#define SERVICE_ENUMERATE_DEPENDENTS 0x0008 -#define SERVICE_START 0x0010 -#define SERVICE_STOP 0x0020 -#define SERVICE_PAUSE_CONTINUE 0x0040 -#define SERVICE_INTERROGATE 0x0080 -#define SERVICE_USER_DEFINED_CONTROL 0x0100 - -#define SERVICE_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | \ - SERVICE_QUERY_CONFIG | \ - SERVICE_CHANGE_CONFIG | \ - SERVICE_QUERY_STATUS | \ - SERVICE_ENUMERATE_DEPENDENTS | \ - SERVICE_START | \ - SERVICE_STOP | \ - SERVICE_PAUSE_CONTINUE | \ - SERVICE_INTERROGATE | \ - SERVICE_USER_DEFINED_CONTROL) \ No newline at end of file +#define SERVICE_ACCEPT_TRIGGEREVENT 0x00000400 \ No newline at end of file