Docs.rs
windows-sys-0.59.0
windows-sys 0.59.0
Permalink
Docs.rs crate page
MIT OR Apache-2.0
Links
Repository
crates.io
Source
Owners
kennykerr
Dependencies
windows-targets ^0.52.6
normal
Versions
100%
of the crate is documented
Platform
x86_64-pc-windows-msvc
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
windows_sys
0.59.0
Module Services
Structs
Constants
Functions
Type Aliases
Unions
In windows_sys::Win32::System
Module
windows_sys
::
Win32
::
System
::
Services
Copy item path
[
−
]
Structs
§
ENUM_SERVICE_STATUSA
ENUM_SERVICE_STATUSW
ENUM_SERVICE_STATUS_PROCESSA
ENUM_SERVICE_STATUS_PROCESSW
QUERY_SERVICE_CONFIGA
QUERY_SERVICE_CONFIGW
QUERY_SERVICE_LOCK_STATUSA
QUERY_SERVICE_LOCK_STATUSW
SC_ACTION
SERVICE_CONTROL_STATUS_REASON_PARAMSA
SERVICE_CONTROL_STATUS_REASON_PARAMSW
SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM
SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0_0
SERVICE_DELAYED_AUTO_START_INFO
SERVICE_DESCRIPTIONA
SERVICE_DESCRIPTIONW
SERVICE_FAILURE_ACTIONSA
SERVICE_FAILURE_ACTIONSW
SERVICE_FAILURE_ACTIONS_FLAG
SERVICE_LAUNCH_PROTECTED_INFO
SERVICE_NOTIFY_1
SERVICE_NOTIFY_2A
SERVICE_NOTIFY_2W
SERVICE_PREFERRED_NODE_INFO
SERVICE_PRESHUTDOWN_INFO
SERVICE_REQUIRED_PRIVILEGES_INFOA
SERVICE_REQUIRED_PRIVILEGES_INFOW
SERVICE_SID_INFO
SERVICE_START_REASON
SERVICE_STATUS
SERVICE_STATUS_PROCESS
SERVICE_TABLE_ENTRYA
SERVICE_TABLE_ENTRYW
SERVICE_TIMECHANGE_INFO
SERVICE_TRIGGER
SERVICE_TRIGGER_CUSTOM_STATE_ID
SERVICE_TRIGGER_INFO
SERVICE_TRIGGER_SPECIFIC_DATA_ITEM
Constants
§
CUSTOM_SYSTEM_STATE_CHANGE_EVENT_GUID
DOMAIN_JOIN_GUID
DOMAIN_LEAVE_GUID
FIREWALL_PORT_CLOSE_GUID
FIREWALL_PORT_OPEN_GUID
MACHINE_POLICY_PRESENT_GUID
MaxServiceRegistryStateType
NAMED_PIPE_EVENT_GUID
NETWORK_MANAGER_FIRST_IP_ADDRESS_ARRIVAL_GUID
NETWORK_MANAGER_LAST_IP_ADDRESS_REMOVAL_GUID
RPC_INTERFACE_EVENT_GUID
SC_ACTION_NONE
SC_ACTION_OWN_RESTART
SC_ACTION_REBOOT
SC_ACTION_RESTART
SC_ACTION_RUN_COMMAND
SC_AGGREGATE_STORAGE_KEY
SC_ENUM_PROCESS_INFO
SC_EVENT_DATABASE_CHANGE
SC_EVENT_PROPERTY_CHANGE
SC_EVENT_STATUS_CHANGE
SC_MANAGER_ALL_ACCESS
SC_MANAGER_CONNECT
SC_MANAGER_CREATE_SERVICE
SC_MANAGER_ENUMERATE_SERVICE
SC_MANAGER_LOCK
SC_MANAGER_MODIFY_BOOT_CONFIG
SC_MANAGER_QUERY_LOCK_STATUS
SC_STATUS_PROCESS_INFO
SERVICES_ACTIVE_DATABASE
SERVICES_ACTIVE_DATABASEA
SERVICES_ACTIVE_DATABASEW
SERVICES_FAILED_DATABASE
SERVICES_FAILED_DATABASEA
SERVICES_FAILED_DATABASEW
SERVICE_ACCEPT_HARDWAREPROFILECHANGE
SERVICE_ACCEPT_LOWRESOURCES
SERVICE_ACCEPT_NETBINDCHANGE
SERVICE_ACCEPT_PARAMCHANGE
SERVICE_ACCEPT_PAUSE_CONTINUE
SERVICE_ACCEPT_POWEREVENT
SERVICE_ACCEPT_PRESHUTDOWN
SERVICE_ACCEPT_SESSIONCHANGE
SERVICE_ACCEPT_SHUTDOWN
SERVICE_ACCEPT_STOP
SERVICE_ACCEPT_SYSTEMLOWRESOURCES
SERVICE_ACCEPT_TIMECHANGE
SERVICE_ACCEPT_TRIGGEREVENT
SERVICE_ACCEPT_USER_LOGOFF
SERVICE_ACTIVE
SERVICE_ADAPTER
SERVICE_ALL_ACCESS
SERVICE_AUTO_START
SERVICE_BOOT_START
SERVICE_CHANGE_CONFIG
SERVICE_CONFIG_DELAYED_AUTO_START_INFO
SERVICE_CONFIG_DESCRIPTION
SERVICE_CONFIG_FAILURE_ACTIONS
SERVICE_CONFIG_FAILURE_ACTIONS_FLAG
SERVICE_CONFIG_LAUNCH_PROTECTED
SERVICE_CONFIG_PREFERRED_NODE
SERVICE_CONFIG_PRESHUTDOWN_INFO
SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO
SERVICE_CONFIG_SERVICE_SID_INFO
SERVICE_CONFIG_TRIGGER_INFO
SERVICE_CONTINUE_PENDING
SERVICE_CONTROL_CONTINUE
SERVICE_CONTROL_DEVICEEVENT
SERVICE_CONTROL_HARDWAREPROFILECHANGE
SERVICE_CONTROL_INTERROGATE
SERVICE_CONTROL_LOWRESOURCES
SERVICE_CONTROL_NETBINDADD
SERVICE_CONTROL_NETBINDDISABLE
SERVICE_CONTROL_NETBINDENABLE
SERVICE_CONTROL_NETBINDREMOVE
SERVICE_CONTROL_PARAMCHANGE
SERVICE_CONTROL_PAUSE
SERVICE_CONTROL_POWEREVENT
SERVICE_CONTROL_PRESHUTDOWN
SERVICE_CONTROL_SESSIONCHANGE
SERVICE_CONTROL_SHUTDOWN
SERVICE_CONTROL_STATUS_REASON_INFO
SERVICE_CONTROL_STOP
SERVICE_CONTROL_SYSTEMLOWRESOURCES
SERVICE_CONTROL_TIMECHANGE
SERVICE_CONTROL_TRIGGEREVENT
SERVICE_DEMAND_START
SERVICE_DISABLED
SERVICE_DRIVER
SERVICE_DYNAMIC_INFORMATION_LEVEL_START_REASON
SERVICE_ENUMERATE_DEPENDENTS
SERVICE_ERROR_CRITICAL
SERVICE_ERROR_IGNORE
SERVICE_ERROR_NORMAL
SERVICE_ERROR_SEVERE
SERVICE_FILE_SYSTEM_DRIVER
SERVICE_INACTIVE
SERVICE_INTERROGATE
SERVICE_KERNEL_DRIVER
SERVICE_LAUNCH_PROTECTED_ANTIMALWARE_LIGHT
SERVICE_LAUNCH_PROTECTED_NONE
SERVICE_LAUNCH_PROTECTED_WINDOWS
SERVICE_LAUNCH_PROTECTED_WINDOWS_LIGHT
SERVICE_NOTIFY_CONTINUE_PENDING
SERVICE_NOTIFY_CREATED
SERVICE_NOTIFY_DELETED
SERVICE_NOTIFY_DELETE_PENDING
SERVICE_NOTIFY_PAUSED
SERVICE_NOTIFY_PAUSE_PENDING
SERVICE_NOTIFY_RUNNING
SERVICE_NOTIFY_START_PENDING
SERVICE_NOTIFY_STATUS_CHANGE
SERVICE_NOTIFY_STATUS_CHANGE_1
SERVICE_NOTIFY_STATUS_CHANGE_2
SERVICE_NOTIFY_STOPPED
SERVICE_NOTIFY_STOP_PENDING
SERVICE_NO_CHANGE
SERVICE_PAUSED
SERVICE_PAUSE_CONTINUE
SERVICE_PAUSE_PENDING
SERVICE_QUERY_CONFIG
SERVICE_QUERY_STATUS
SERVICE_RECOGNIZER_DRIVER
SERVICE_RUNNING
SERVICE_RUNS_IN_NON_SYSTEM_OR_NOT_RUNNING
SERVICE_RUNS_IN_SYSTEM_PROCESS
SERVICE_SID_TYPE_NONE
SERVICE_SID_TYPE_UNRESTRICTED
SERVICE_START
SERVICE_START_PENDING
SERVICE_START_REASON_AUTO
SERVICE_START_REASON_DELAYEDAUTO
SERVICE_START_REASON_DEMAND
SERVICE_START_REASON_RESTART_ON_FAILURE
SERVICE_START_REASON_TRIGGER
SERVICE_STATE_ALL
SERVICE_STOP
SERVICE_STOPPED
SERVICE_STOP_PENDING
SERVICE_STOP_REASON_FLAG_CUSTOM
SERVICE_STOP_REASON_FLAG_MAX
SERVICE_STOP_REASON_FLAG_MIN
SERVICE_STOP_REASON_FLAG_PLANNED
SERVICE_STOP_REASON_FLAG_UNPLANNED
SERVICE_STOP_REASON_MAJOR_APPLICATION
SERVICE_STOP_REASON_MAJOR_HARDWARE
SERVICE_STOP_REASON_MAJOR_MAX
SERVICE_STOP_REASON_MAJOR_MAX_CUSTOM
SERVICE_STOP_REASON_MAJOR_MIN
SERVICE_STOP_REASON_MAJOR_MIN_CUSTOM
SERVICE_STOP_REASON_MAJOR_NONE
SERVICE_STOP_REASON_MAJOR_OPERATINGSYSTEM
SERVICE_STOP_REASON_MAJOR_OTHER
SERVICE_STOP_REASON_MAJOR_SOFTWARE
SERVICE_STOP_REASON_MINOR_DISK
SERVICE_STOP_REASON_MINOR_ENVIRONMENT
SERVICE_STOP_REASON_MINOR_HARDWARE_DRIVER
SERVICE_STOP_REASON_MINOR_HUNG
SERVICE_STOP_REASON_MINOR_INSTALLATION
SERVICE_STOP_REASON_MINOR_MAINTENANCE
SERVICE_STOP_REASON_MINOR_MAX
SERVICE_STOP_REASON_MINOR_MAX_CUSTOM
SERVICE_STOP_REASON_MINOR_MEMOTYLIMIT
SERVICE_STOP_REASON_MINOR_MIN
SERVICE_STOP_REASON_MINOR_MIN_CUSTOM
SERVICE_STOP_REASON_MINOR_MMC
SERVICE_STOP_REASON_MINOR_NETWORKCARD
SERVICE_STOP_REASON_MINOR_NETWORK_CONNECTIVITY
SERVICE_STOP_REASON_MINOR_NONE
SERVICE_STOP_REASON_MINOR_OTHER
SERVICE_STOP_REASON_MINOR_OTHERDRIVER
SERVICE_STOP_REASON_MINOR_RECONFIG
SERVICE_STOP_REASON_MINOR_SECURITY
SERVICE_STOP_REASON_MINOR_SECURITYFIX
SERVICE_STOP_REASON_MINOR_SECURITYFIX_UNINSTALL
SERVICE_STOP_REASON_MINOR_SERVICEPACK
SERVICE_STOP_REASON_MINOR_SERVICEPACK_UNINSTALL
SERVICE_STOP_REASON_MINOR_SOFTWARE_UPDATE
SERVICE_STOP_REASON_MINOR_SOFTWARE_UPDATE_UNINSTALL
SERVICE_STOP_REASON_MINOR_UNSTABLE
SERVICE_STOP_REASON_MINOR_UPGRADE
SERVICE_STOP_REASON_MINOR_WMI
SERVICE_SYSTEM_START
SERVICE_TRIGGER_ACTION_SERVICE_START
SERVICE_TRIGGER_ACTION_SERVICE_STOP
SERVICE_TRIGGER_DATA_TYPE_BINARY
SERVICE_TRIGGER_DATA_TYPE_KEYWORD_ALL
SERVICE_TRIGGER_DATA_TYPE_KEYWORD_ANY
SERVICE_TRIGGER_DATA_TYPE_LEVEL
SERVICE_TRIGGER_DATA_TYPE_STRING
SERVICE_TRIGGER_STARTED_ARGUMENT
SERVICE_TRIGGER_TYPE_AGGREGATE
SERVICE_TRIGGER_TYPE_CUSTOM
SERVICE_TRIGGER_TYPE_CUSTOM_SYSTEM_STATE_CHANGE
SERVICE_TRIGGER_TYPE_DEVICE_INTERFACE_ARRIVAL
SERVICE_TRIGGER_TYPE_DOMAIN_JOIN
SERVICE_TRIGGER_TYPE_FIREWALL_PORT_EVENT
SERVICE_TRIGGER_TYPE_GROUP_POLICY
SERVICE_TRIGGER_TYPE_IP_ADDRESS_AVAILABILITY
SERVICE_TRIGGER_TYPE_NETWORK_ENDPOINT
SERVICE_USER_DEFINED_CONTROL
SERVICE_USER_OWN_PROCESS
SERVICE_USER_SHARE_PROCESS
SERVICE_WIN32
SERVICE_WIN32_OWN_PROCESS
SERVICE_WIN32_SHARE_PROCESS
ServiceDirectoryPersistentState
ServiceDirectoryTypeMax
ServiceRegistryStateParameters
ServiceRegistryStatePersistent
ServiceSharedDirectoryPersistentState
ServiceSharedRegistryPersistentState
USER_POLICY_PRESENT_GUID
Functions
§
ChangeServiceConfig2A
⚠
ChangeServiceConfig2W
⚠
ChangeServiceConfigA
⚠
ChangeServiceConfigW
⚠
CloseServiceHandle
⚠
ControlService
⚠
ControlServiceExA
⚠
ControlServiceExW
⚠
CreateServiceA
⚠
CreateServiceW
⚠
DeleteService
⚠
EnumDependentServicesA
⚠
EnumDependentServicesW
⚠
EnumServicesStatusA
⚠
EnumServicesStatusExA
⚠
EnumServicesStatusExW
⚠
EnumServicesStatusW
⚠
GetServiceDirectory
⚠
GetServiceDisplayNameA
⚠
GetServiceDisplayNameW
⚠
GetServiceKeyNameA
⚠
GetServiceKeyNameW
⚠
GetServiceRegistryStateKey
⚠
GetSharedServiceDirectory
⚠
GetSharedServiceRegistryStateKey
⚠
LockServiceDatabase
⚠
NotifyBootConfigStatus
⚠
NotifyServiceStatusChangeA
⚠
NotifyServiceStatusChangeW
⚠
OpenSCManagerA
⚠
OpenSCManagerW
⚠
OpenServiceA
⚠
OpenServiceW
⚠
QueryServiceConfig2A
⚠
QueryServiceConfig2W
⚠
QueryServiceConfigA
⚠
QueryServiceConfigW
⚠
QueryServiceDynamicInformation
⚠
QueryServiceLockStatusA
⚠
QueryServiceLockStatusW
⚠
QueryServiceObjectSecurity
⚠
QueryServiceStatus
⚠
QueryServiceStatusEx
⚠
RegisterServiceCtrlHandlerA
⚠
RegisterServiceCtrlHandlerExA
⚠
RegisterServiceCtrlHandlerExW
⚠
RegisterServiceCtrlHandlerW
⚠
SetServiceBits
⚠
SetServiceObjectSecurity
⚠
SetServiceStatus
⚠
StartServiceA
⚠
StartServiceCtrlDispatcherA
⚠
StartServiceCtrlDispatcherW
⚠
StartServiceW
⚠
SubscribeServiceChangeNotifications
⚠
UnlockServiceDatabase
⚠
UnsubscribeServiceChangeNotifications
⚠
WaitServiceState
⚠
Type Aliases
§
ENUM_SERVICE_STATE
ENUM_SERVICE_TYPE
HANDLER_FUNCTION
HANDLER_FUNCTION_EX
LPHANDLER_FUNCTION
LPHANDLER_FUNCTION_EX
LPSERVICE_MAIN_FUNCTIONA
LPSERVICE_MAIN_FUNCTIONW
PFN_SC_NOTIFY_CALLBACK
PSC_NOTIFICATION_CALLBACK
PSC_NOTIFICATION_REGISTRATION
SC_ACTION_TYPE
SC_ENUM_TYPE
SC_EVENT_TYPE
SC_HANDLE
SC_STATUS_TYPE
SERVICE_CONFIG
SERVICE_DIRECTORY_TYPE
SERVICE_ERROR
SERVICE_MAIN_FUNCTIONA
SERVICE_MAIN_FUNCTIONW
SERVICE_NOTIFY
SERVICE_REGISTRY_STATE_TYPE
SERVICE_RUNS_IN_PROCESS
SERVICE_SHARED_DIRECTORY_TYPE
SERVICE_SHARED_REGISTRY_STATE_TYPE
SERVICE_START_TYPE
SERVICE_STATUS_CURRENT_STATE
SERVICE_STATUS_HANDLE
SERVICE_TRIGGER_ACTION
SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE
SERVICE_TRIGGER_TYPE
Unions
§
SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0