From 152155ec38dd68f1a59880dd4f7b410756325eb0 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath <nathbap...@gmail.com> Date: Tue, 29 Jun 2021 15:41:41 +0530 Subject: [PATCH] headers: Add missing names in winsvc.h
Signed-off-by: Biswapriyo Nath <nathbap...@gmail.com> --- mingw-w64-headers/include/winsvc.h | 113 +++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) diff --git a/mingw-w64-headers/include/winsvc.h b/mingw-w64-headers/include/winsvc.h index 182db88..fb66e5b 100644 --- a/mingw-w64-headers/include/winsvc.h +++ b/mingw-w64-headers/include/winsvc.h @@ -48,6 +48,12 @@ extern "C" { #define SERVICE_CONTROL_HARDWAREPROFILECHANGE 0x0000000C #define SERVICE_CONTROL_POWEREVENT 0x0000000D #define SERVICE_CONTROL_SESSIONCHANGE 0x0000000E +#define SERVICE_CONTROL_PRESHUTDOWN 0x0000000F +#define SERVICE_CONTROL_TIMECHANGE 0x00000010 +#define SERVICE_CONTROL_USER_LOGOFF 0x00000011 +#define SERVICE_CONTROL_TRIGGEREVENT 0x00000020 +#define SERVICE_CONTROL_LOWRESOURCES 0x00000060 +#define SERVICE_CONTROL_SYSTEMLOWRESOURCES 0x00000061 #define SERVICE_STOPPED 0x00000001 #define SERVICE_START_PENDING 0x00000002 @@ -65,6 +71,12 @@ extern "C" { #define SERVICE_ACCEPT_HARDWAREPROFILECHANGE 0x00000020 #define SERVICE_ACCEPT_POWEREVENT 0x00000040 #define SERVICE_ACCEPT_SESSIONCHANGE 0x00000080 +#define SERVICE_ACCEPT_PRESHUTDOWN 0x00000100 +#define SERVICE_ACCEPT_TIMECHANGE 0x00000200 +#define SERVICE_ACCEPT_TRIGGEREVENT 0x00000400 +#define SERVICE_ACCEPT_USER_LOGOFF 0x00000800 +#define SERVICE_ACCEPT_LOWRESOURCES 0x00002000 +#define SERVICE_ACCEPT_SYSTEMLOWRESOURCES 0x00004000 #define SC_MANAGER_CONNECT 0x0001 #define SC_MANAGER_CREATE_SERVICE 0x0002 @@ -91,6 +103,107 @@ extern "C" { #define SERVICE_CONFIG_DESCRIPTION 1 #define SERVICE_CONFIG_FAILURE_ACTIONS 2 +#define SERVICE_CONFIG_DELAYED_AUTO_START_INFO 3 +#define SERVICE_CONFIG_FAILURE_ACTIONS_FLAG 4 +#define SERVICE_CONFIG_SERVICE_SID_INFO 5 +#define SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO 6 +#define SERVICE_CONFIG_PRESHUTDOWN_INFO 7 +#define SERVICE_CONFIG_TRIGGER_INFO 8 +#define SERVICE_CONFIG_PREFERRED_NODE 9 +#define SERVICE_CONFIG_LAUNCH_PROTECTED 12 + +#define SERVICE_NOTIFY_STATUS_CHANGE_1 1 +#define SERVICE_NOTIFY_STATUS_CHANGE_2 2 + +#define SERVICE_NOTIFY_STATUS_CHANGE SERVICE_NOTIFY_STATUS_CHANGE_2 + +#define SERVICE_NOTIFY_STOPPED 0x00000001 +#define SERVICE_NOTIFY_START_PENDING 0x00000002 +#define SERVICE_NOTIFY_STOP_PENDING 0x00000004 +#define SERVICE_NOTIFY_RUNNING 0x00000008 +#define SERVICE_NOTIFY_CONTINUE_PENDING 0x00000010 +#define SERVICE_NOTIFY_PAUSE_PENDING 0x00000020 +#define SERVICE_NOTIFY_PAUSED 0x00000040 +#define SERVICE_NOTIFY_CREATED 0x00000080 +#define SERVICE_NOTIFY_DELETED 0x00000100 +#define SERVICE_NOTIFY_DELETE_PENDING 0x00000200 + +#define SERVICE_STOP_REASON_FLAG_MIN 0x00000000 +#define SERVICE_STOP_REASON_FLAG_UNPLANNED 0x10000000 +#define SERVICE_STOP_REASON_FLAG_CUSTOM 0x20000000 +#define SERVICE_STOP_REASON_FLAG_PLANNED 0x40000000 +#define SERVICE_STOP_REASON_FLAG_MAX 0x80000000 + +#define SERVICE_STOP_REASON_MAJOR_MIN 0x00000000 +#define SERVICE_STOP_REASON_MAJOR_OTHER 0x00010000 +#define SERVICE_STOP_REASON_MAJOR_HARDWARE 0x00020000 +#define SERVICE_STOP_REASON_MAJOR_OPERATINGSYSTEM 0x00030000 +#define SERVICE_STOP_REASON_MAJOR_SOFTWARE 0x00040000 +#define SERVICE_STOP_REASON_MAJOR_APPLICATION 0x00050000 +#define SERVICE_STOP_REASON_MAJOR_NONE 0x00060000 +#define SERVICE_STOP_REASON_MAJOR_MAX 0x00070000 +#define SERVICE_STOP_REASON_MAJOR_MIN_CUSTOM 0x00400000 +#define SERVICE_STOP_REASON_MAJOR_MAX_CUSTOM 0x00ff0000 + +#define SERVICE_STOP_REASON_MINOR_MIN 0x00000000 +#define SERVICE_STOP_REASON_MINOR_OTHER 0x00000001 +#define SERVICE_STOP_REASON_MINOR_MAINTENANCE 0x00000002 +#define SERVICE_STOP_REASON_MINOR_INSTALLATION 0x00000003 +#define SERVICE_STOP_REASON_MINOR_UPGRADE 0x00000004 +#define SERVICE_STOP_REASON_MINOR_RECONFIG 0x00000005 +#define SERVICE_STOP_REASON_MINOR_HUNG 0x00000006 +#define SERVICE_STOP_REASON_MINOR_UNSTABLE 0x00000007 +#define SERVICE_STOP_REASON_MINOR_DISK 0x00000008 +#define SERVICE_STOP_REASON_MINOR_NETWORKCARD 0x00000009 +#define SERVICE_STOP_REASON_MINOR_ENVIRONMENT 0x0000000a +#define SERVICE_STOP_REASON_MINOR_HARDWARE_DRIVER 0x0000000b +#define SERVICE_STOP_REASON_MINOR_OTHERDRIVER 0x0000000c +#define SERVICE_STOP_REASON_MINOR_SERVICEPACK 0x0000000d +#define SERVICE_STOP_REASON_MINOR_SOFTWARE_UPDATE 0x0000000e +#define SERVICE_STOP_REASON_MINOR_SECURITYFIX 0x0000000f +#define SERVICE_STOP_REASON_MINOR_SECURITY 0x00000010 +#define SERVICE_STOP_REASON_MINOR_NETWORK_CONNECTIVITY 0x00000011 +#define SERVICE_STOP_REASON_MINOR_WMI 0x00000012 +#define SERVICE_STOP_REASON_MINOR_SERVICEPACK_UNINSTALL 0x00000013 +#define SERVICE_STOP_REASON_MINOR_SOFTWARE_UPDATE_UNINSTALL 0x00000014 +#define SERVICE_STOP_REASON_MINOR_SECURITYFIX_UNINSTALL 0x00000015 +#define SERVICE_STOP_REASON_MINOR_MMC 0x00000016 +#define SERVICE_STOP_REASON_MINOR_NONE 0x00000017 +#define SERVICE_STOP_REASON_MINOR_MEMOTYLIMIT 0x00000018 +#define SERVICE_STOP_REASON_MINOR_MAX 0x00000019 +#define SERVICE_STOP_REASON_MINOR_MIN_CUSTOM 0x00000100 +#define SERVICE_STOP_REASON_MINOR_MAX_CUSTOM 0x0000FFFF + +#define SERVICE_CONTROL_STATUS_REASON_INFO 1 + +#define SERVICE_TRIGGER_TYPE_DEVICE_INTERFACE_ARRIVAL 1 +#define SERVICE_TRIGGER_TYPE_IP_ADDRESS_AVAILABILITY 2 +#define SERVICE_TRIGGER_TYPE_DOMAIN_JOIN 3 +#define SERVICE_TRIGGER_TYPE_FIREWALL_PORT_EVENT 4 +#define SERVICE_TRIGGER_TYPE_GROUP_POLICY 5 +#define SERVICE_TRIGGER_TYPE_NETWORK_ENDPOINT 6 +#define SERVICE_TRIGGER_TYPE_CUSTOM_SYSTEM_STATE_CHANGE 7 +#define SERVICE_TRIGGER_TYPE_CUSTOM 20 +#define SERVICE_TRIGGER_TYPE_AGGREGATE 30 + +#define SERVICE_TRIGGER_DATA_TYPE_BINARY 1 +#define SERVICE_TRIGGER_DATA_TYPE_STRING 2 +#define SERVICE_TRIGGER_DATA_TYPE_LEVEL 3 +#define SERVICE_TRIGGER_DATA_TYPE_KEYWORD_ANY 4 +#define SERVICE_TRIGGER_DATA_TYPE_KEYWORD_ALL 5 + +#define SERVICE_START_REASON_DEMAND 0x00000001 +#define SERVICE_START_REASON_AUTO 0x00000002 +#define SERVICE_START_REASON_TRIGGER 0x00000004 +#define SERVICE_START_REASON_RESTART_ON_FAILURE 0x00000008 +#define SERVICE_START_REASON_DELAYEDAUTO 0x00000010 + +#define SERVICE_DYNAMIC_INFORMATION_LEVEL_START_REASON 1 + +#define SERVICE_LAUNCH_PROTECTED_NONE 0 +#define SERVICE_LAUNCH_PROTECTED_WINDOWS 1 +#define SERVICE_LAUNCH_PROTECTED_WINDOWS_LIGHT 2 +#define SERVICE_LAUNCH_PROTECTED_ANTIMALWARE_LIGHT 3 typedef struct _SERVICE_DESCRIPTIONA { LPSTR lpDescription; -- 2.32.0
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public