diff options
author | Valentin Popov <valentin@popov.link> | 2024-01-08 00:21:28 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-01-08 00:21:28 +0300 |
commit | 1b6a04ca5504955c571d1c97504fb45ea0befee4 (patch) | |
tree | 7579f518b23313e8a9748a88ab6173d5e030b227 /vendor/windows-sys-0.45.0/src/Windows/Win32/System/Services | |
parent | 5ecd8cf2cba827454317368b68571df0d13d7842 (diff) | |
download | fparkan-1b6a04ca5504955c571d1c97504fb45ea0befee4.tar.xz fparkan-1b6a04ca5504955c571d1c97504fb45ea0befee4.zip |
Initial vendor packages
Signed-off-by: Valentin Popov <valentin@popov.link>
Diffstat (limited to 'vendor/windows-sys-0.45.0/src/Windows/Win32/System/Services')
-rw-r--r-- | vendor/windows-sys-0.45.0/src/Windows/Win32/System/Services/mod.rs | 1117 |
1 files changed, 1117 insertions, 0 deletions
diff --git a/vendor/windows-sys-0.45.0/src/Windows/Win32/System/Services/mod.rs b/vendor/windows-sys-0.45.0/src/Windows/Win32/System/Services/mod.rs new file mode 100644 index 0000000..8905551 --- /dev/null +++ b/vendor/windows-sys-0.45.0/src/Windows/Win32/System/Services/mod.rs @@ -0,0 +1,1117 @@ +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn ChangeServiceConfig2A ( hservice : super::super::Security:: SC_HANDLE , dwinfolevel : SERVICE_CONFIG , lpinfo : *const ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn ChangeServiceConfig2W ( hservice : super::super::Security:: SC_HANDLE , dwinfolevel : SERVICE_CONFIG , lpinfo : *const ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn ChangeServiceConfigA ( hservice : super::super::Security:: SC_HANDLE , dwservicetype : u32 , dwstarttype : SERVICE_START_TYPE , dwerrorcontrol : SERVICE_ERROR , lpbinarypathname : :: windows_sys::core::PCSTR , lploadordergroup : :: windows_sys::core::PCSTR , lpdwtagid : *mut u32 , lpdependencies : :: windows_sys::core::PCSTR , lpservicestartname : :: windows_sys::core::PCSTR , lppassword : :: windows_sys::core::PCSTR , lpdisplayname : :: windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn ChangeServiceConfigW ( hservice : super::super::Security:: SC_HANDLE , dwservicetype : u32 , dwstarttype : SERVICE_START_TYPE , dwerrorcontrol : SERVICE_ERROR , lpbinarypathname : :: windows_sys::core::PCWSTR , lploadordergroup : :: windows_sys::core::PCWSTR , lpdwtagid : *mut u32 , lpdependencies : :: windows_sys::core::PCWSTR , lpservicestartname : :: windows_sys::core::PCWSTR , lppassword : :: windows_sys::core::PCWSTR , lpdisplayname : :: windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn CloseServiceHandle ( hscobject : super::super::Security:: SC_HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn ControlService ( hservice : super::super::Security:: SC_HANDLE , dwcontrol : u32 , lpservicestatus : *mut SERVICE_STATUS ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn ControlServiceExA ( hservice : super::super::Security:: SC_HANDLE , dwcontrol : u32 , dwinfolevel : u32 , pcontrolparams : *mut ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn ControlServiceExW ( hservice : super::super::Security:: SC_HANDLE , dwcontrol : u32 , dwinfolevel : u32 , pcontrolparams : *mut ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Security")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Security\"`*"] fn CreateServiceA ( hscmanager : super::super::Security:: SC_HANDLE , lpservicename : :: windows_sys::core::PCSTR , lpdisplayname : :: windows_sys::core::PCSTR , dwdesiredaccess : u32 , dwservicetype : ENUM_SERVICE_TYPE , dwstarttype : SERVICE_START_TYPE , dwerrorcontrol : SERVICE_ERROR , lpbinarypathname : :: windows_sys::core::PCSTR , lploadordergroup : :: windows_sys::core::PCSTR , lpdwtagid : *mut u32 , lpdependencies : :: windows_sys::core::PCSTR , lpservicestartname : :: windows_sys::core::PCSTR , lppassword : :: windows_sys::core::PCSTR ) -> super::super::Security:: SC_HANDLE ); +#[cfg(feature = "Win32_Security")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Security\"`*"] fn CreateServiceW ( hscmanager : super::super::Security:: SC_HANDLE , lpservicename : :: windows_sys::core::PCWSTR , lpdisplayname : :: windows_sys::core::PCWSTR , dwdesiredaccess : u32 , dwservicetype : ENUM_SERVICE_TYPE , dwstarttype : SERVICE_START_TYPE , dwerrorcontrol : SERVICE_ERROR , lpbinarypathname : :: windows_sys::core::PCWSTR , lploadordergroup : :: windows_sys::core::PCWSTR , lpdwtagid : *mut u32 , lpdependencies : :: windows_sys::core::PCWSTR , lpservicestartname : :: windows_sys::core::PCWSTR , lppassword : :: windows_sys::core::PCWSTR ) -> super::super::Security:: SC_HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn DeleteService ( hservice : super::super::Security:: SC_HANDLE ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn EnumDependentServicesA ( hservice : super::super::Security:: SC_HANDLE , dwservicestate : ENUM_SERVICE_STATE , lpservices : *mut ENUM_SERVICE_STATUSA , cbbufsize : u32 , pcbbytesneeded : *mut u32 , lpservicesreturned : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn EnumDependentServicesW ( hservice : super::super::Security:: SC_HANDLE , dwservicestate : ENUM_SERVICE_STATE , lpservices : *mut ENUM_SERVICE_STATUSW , cbbufsize : u32 , pcbbytesneeded : *mut u32 , lpservicesreturned : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn EnumServicesStatusA ( hscmanager : super::super::Security:: SC_HANDLE , dwservicetype : ENUM_SERVICE_TYPE , dwservicestate : ENUM_SERVICE_STATE , lpservices : *mut ENUM_SERVICE_STATUSA , cbbufsize : u32 , pcbbytesneeded : *mut u32 , lpservicesreturned : *mut u32 , lpresumehandle : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn EnumServicesStatusExA ( hscmanager : super::super::Security:: SC_HANDLE , infolevel : SC_ENUM_TYPE , dwservicetype : ENUM_SERVICE_TYPE , dwservicestate : ENUM_SERVICE_STATE , lpservices : *mut u8 , cbbufsize : u32 , pcbbytesneeded : *mut u32 , lpservicesreturned : *mut u32 , lpresumehandle : *mut u32 , pszgroupname : :: windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn EnumServicesStatusExW ( hscmanager : super::super::Security:: SC_HANDLE , infolevel : SC_ENUM_TYPE , dwservicetype : ENUM_SERVICE_TYPE , dwservicestate : ENUM_SERVICE_STATE , lpservices : *mut u8 , cbbufsize : u32 , pcbbytesneeded : *mut u32 , lpservicesreturned : *mut u32 , lpresumehandle : *mut u32 , pszgroupname : :: windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn EnumServicesStatusW ( hscmanager : super::super::Security:: SC_HANDLE , dwservicetype : ENUM_SERVICE_TYPE , dwservicestate : ENUM_SERVICE_STATE , lpservices : *mut ENUM_SERVICE_STATUSW , cbbufsize : u32 , pcbbytesneeded : *mut u32 , lpservicesreturned : *mut u32 , lpresumehandle : *mut u32 ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "api-ms-win-service-core-l1-1-4.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`*"] fn GetServiceDirectory ( hservicestatus : SERVICE_STATUS_HANDLE , edirectorytype : SERVICE_DIRECTORY_TYPE , lppathbuffer : :: windows_sys::core::PWSTR , cchpathbufferlength : u32 , lpcchrequiredbufferlength : *mut u32 ) -> u32 ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn GetServiceDisplayNameA ( hscmanager : super::super::Security:: SC_HANDLE , lpservicename : :: windows_sys::core::PCSTR , lpdisplayname : :: windows_sys::core::PSTR , lpcchbuffer : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn GetServiceDisplayNameW ( hscmanager : super::super::Security:: SC_HANDLE , lpservicename : :: windows_sys::core::PCWSTR , lpdisplayname : :: windows_sys::core::PWSTR , lpcchbuffer : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn GetServiceKeyNameA ( hscmanager : super::super::Security:: SC_HANDLE , lpdisplayname : :: windows_sys::core::PCSTR , lpservicename : :: windows_sys::core::PSTR , lpcchbuffer : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn GetServiceKeyNameW ( hscmanager : super::super::Security:: SC_HANDLE , lpdisplayname : :: windows_sys::core::PCWSTR , lpservicename : :: windows_sys::core::PWSTR , lpcchbuffer : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_System_Registry")] +::windows_sys::core::link ! ( "api-ms-win-service-core-l1-1-3.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_System_Registry\"`*"] fn GetServiceRegistryStateKey ( servicestatushandle : SERVICE_STATUS_HANDLE , statetype : SERVICE_REGISTRY_STATE_TYPE , accessmask : u32 , servicestatekey : *mut super::Registry:: HKEY ) -> u32 ); +#[cfg(feature = "Win32_Security")] +::windows_sys::core::link ! ( "api-ms-win-service-core-l1-1-5.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Security\"`*"] fn GetSharedServiceDirectory ( servicehandle : super::super::Security:: SC_HANDLE , directorytype : SERVICE_SHARED_DIRECTORY_TYPE , pathbuffer : :: windows_sys::core::PWSTR , pathbufferlength : u32 , requiredbufferlength : *mut u32 ) -> u32 ); +#[cfg(all(feature = "Win32_Security", feature = "Win32_System_Registry"))] +::windows_sys::core::link ! ( "api-ms-win-service-core-l1-1-5.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Security\"`, `\"Win32_System_Registry\"`*"] fn GetSharedServiceRegistryStateKey ( servicehandle : super::super::Security:: SC_HANDLE , statetype : SERVICE_SHARED_REGISTRY_STATE_TYPE , accessmask : u32 , servicestatekey : *mut super::Registry:: HKEY ) -> u32 ); +#[cfg(feature = "Win32_Security")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Security\"`*"] fn LockServiceDatabase ( hscmanager : super::super::Security:: SC_HANDLE ) -> *mut ::core::ffi::c_void ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`*"] fn NotifyBootConfigStatus ( bootacceptable : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Security")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Security\"`*"] fn NotifyServiceStatusChangeA ( hservice : super::super::Security:: SC_HANDLE , dwnotifymask : SERVICE_NOTIFY , pnotifybuffer : *const SERVICE_NOTIFY_2A ) -> u32 ); +#[cfg(feature = "Win32_Security")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Security\"`*"] fn NotifyServiceStatusChangeW ( hservice : super::super::Security:: SC_HANDLE , dwnotifymask : SERVICE_NOTIFY , pnotifybuffer : *const SERVICE_NOTIFY_2W ) -> u32 ); +#[cfg(feature = "Win32_Security")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Security\"`*"] fn OpenSCManagerA ( lpmachinename : :: windows_sys::core::PCSTR , lpdatabasename : :: windows_sys::core::PCSTR , dwdesiredaccess : u32 ) -> super::super::Security:: SC_HANDLE ); +#[cfg(feature = "Win32_Security")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Security\"`*"] fn OpenSCManagerW ( lpmachinename : :: windows_sys::core::PCWSTR , lpdatabasename : :: windows_sys::core::PCWSTR , dwdesiredaccess : u32 ) -> super::super::Security:: SC_HANDLE ); +#[cfg(feature = "Win32_Security")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Security\"`*"] fn OpenServiceA ( hscmanager : super::super::Security:: SC_HANDLE , lpservicename : :: windows_sys::core::PCSTR , dwdesiredaccess : u32 ) -> super::super::Security:: SC_HANDLE ); +#[cfg(feature = "Win32_Security")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Security\"`*"] fn OpenServiceW ( hscmanager : super::super::Security:: SC_HANDLE , lpservicename : :: windows_sys::core::PCWSTR , dwdesiredaccess : u32 ) -> super::super::Security:: SC_HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn QueryServiceConfig2A ( hservice : super::super::Security:: SC_HANDLE , dwinfolevel : SERVICE_CONFIG , lpbuffer : *mut u8 , cbbufsize : u32 , pcbbytesneeded : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn QueryServiceConfig2W ( hservice : super::super::Security:: SC_HANDLE , dwinfolevel : SERVICE_CONFIG , lpbuffer : *mut u8 , cbbufsize : u32 , pcbbytesneeded : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn QueryServiceConfigA ( hservice : super::super::Security:: SC_HANDLE , lpserviceconfig : *mut QUERY_SERVICE_CONFIGA , cbbufsize : u32 , pcbbytesneeded : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn QueryServiceConfigW ( hservice : super::super::Security:: SC_HANDLE , lpserviceconfig : *mut QUERY_SERVICE_CONFIGW , cbbufsize : u32 , pcbbytesneeded : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`*"] fn QueryServiceDynamicInformation ( hservicestatus : SERVICE_STATUS_HANDLE , dwinfolevel : u32 , ppdynamicinfo : *mut *mut ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn QueryServiceLockStatusA ( hscmanager : super::super::Security:: SC_HANDLE , lplockstatus : *mut QUERY_SERVICE_LOCK_STATUSA , cbbufsize : u32 , pcbbytesneeded : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn QueryServiceLockStatusW ( hscmanager : super::super::Security:: SC_HANDLE , lplockstatus : *mut QUERY_SERVICE_LOCK_STATUSW , cbbufsize : u32 , pcbbytesneeded : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn QueryServiceObjectSecurity ( hservice : super::super::Security:: SC_HANDLE , dwsecurityinformation : u32 , lpsecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR , cbbufsize : u32 , pcbbytesneeded : *mut u32 ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn QueryServiceStatus ( hservice : super::super::Security:: SC_HANDLE , lpservicestatus : *mut SERVICE_STATUS ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn QueryServiceStatusEx ( hservice : super::super::Security:: SC_HANDLE , infolevel : SC_STATUS_TYPE , lpbuffer : *mut u8 , cbbufsize : u32 , pcbbytesneeded : *mut u32 ) -> super::super::Foundation:: BOOL ); +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`*"] fn RegisterServiceCtrlHandlerA ( lpservicename : :: windows_sys::core::PCSTR , lphandlerproc : LPHANDLER_FUNCTION ) -> SERVICE_STATUS_HANDLE ); +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`*"] fn RegisterServiceCtrlHandlerExA ( lpservicename : :: windows_sys::core::PCSTR , lphandlerproc : LPHANDLER_FUNCTION_EX , lpcontext : *const ::core::ffi::c_void ) -> SERVICE_STATUS_HANDLE ); +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`*"] fn RegisterServiceCtrlHandlerExW ( lpservicename : :: windows_sys::core::PCWSTR , lphandlerproc : LPHANDLER_FUNCTION_EX , lpcontext : *const ::core::ffi::c_void ) -> SERVICE_STATUS_HANDLE ); +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`*"] fn RegisterServiceCtrlHandlerW ( lpservicename : :: windows_sys::core::PCWSTR , lphandlerproc : LPHANDLER_FUNCTION ) -> SERVICE_STATUS_HANDLE ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`*"] fn SetServiceBits ( hservicestatus : SERVICE_STATUS_HANDLE , dwservicebits : u32 , bsetbitson : super::super::Foundation:: BOOL , bupdateimmediately : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn SetServiceObjectSecurity ( hservice : super::super::Security:: SC_HANDLE , dwsecurityinformation : super::super::Security:: OBJECT_SECURITY_INFORMATION , lpsecuritydescriptor : super::super::Security:: PSECURITY_DESCRIPTOR ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`*"] fn SetServiceStatus ( hservicestatus : SERVICE_STATUS_HANDLE , lpservicestatus : *const SERVICE_STATUS ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn StartServiceA ( hservice : super::super::Security:: SC_HANDLE , dwnumserviceargs : u32 , lpserviceargvectors : *const :: windows_sys::core::PCSTR ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`*"] fn StartServiceCtrlDispatcherA ( lpservicestarttable : *const SERVICE_TABLE_ENTRYA ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`*"] fn StartServiceCtrlDispatcherW ( lpservicestarttable : *const SERVICE_TABLE_ENTRYW ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn StartServiceW ( hservice : super::super::Security:: SC_HANDLE , dwnumserviceargs : u32 , lpserviceargvectors : *const :: windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`*"] fn UnlockServiceDatabase ( sclock : *const ::core::ffi::c_void ) -> super::super::Foundation:: BOOL ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] +::windows_sys::core::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"] fn WaitServiceState ( hservice : super::super::Security:: SC_HANDLE , dwnotify : u32 , dwtimeout : u32 , hcancelevent : super::super::Foundation:: HANDLE ) -> u32 ); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const CUSTOM_SYSTEM_STATE_CHANGE_EVENT_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2d7a2816_0c5e_45fc_9ce7_570e5ecde9c9); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const DOMAIN_JOIN_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1ce20aba_9851_4421_9430_1ddeb766e809); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const DOMAIN_LEAVE_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xddaf516e_58c2_4866_9574_c3b615d42ea1); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const FIREWALL_PORT_CLOSE_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa144ed38_8e12_4de4_9d96_e64740b1a524); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const FIREWALL_PORT_OPEN_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb7569e07_8421_4ee0_ad10_86915afdad09); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const MACHINE_POLICY_PRESENT_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x659fcae6_5bdb_4da9_b1ff_ca2a178d46e0); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const NAMED_PIPE_EVENT_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1f81d131_3fac_4537_9e0c_7e7b0c2f4b55); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const NETWORK_MANAGER_FIRST_IP_ADDRESS_ARRIVAL_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4f27f2de_14e2_430b_a549_7cd48cbc8245); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const NETWORK_MANAGER_LAST_IP_ADDRESS_REMOVAL_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xcc4ba62a_162e_4648_847a_b6bdf993e335); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const RPC_INTERFACE_EVENT_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xbc90d167_9470_4139_a9ba_be0bbbf5b74d); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SC_AGGREGATE_STORAGE_KEY: ::windows_sys::core::PCWSTR = ::windows_sys::w!("System\\CurrentControlSet\\Control\\ServiceAggregatedEvents"); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SC_MANAGER_ALL_ACCESS: u32 = 983103u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SC_MANAGER_CONNECT: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SC_MANAGER_CREATE_SERVICE: u32 = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SC_MANAGER_ENUMERATE_SERVICE: u32 = 4u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SC_MANAGER_LOCK: u32 = 8u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SC_MANAGER_MODIFY_BOOT_CONFIG: u32 = 32u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SC_MANAGER_QUERY_LOCK_STATUS: u32 = 16u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICES_ACTIVE_DATABASE: ::windows_sys::core::PCWSTR = ::windows_sys::w!("ServicesActive"); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICES_ACTIVE_DATABASEA: ::windows_sys::core::PCSTR = ::windows_sys::s!("ServicesActive"); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICES_ACTIVE_DATABASEW: ::windows_sys::core::PCWSTR = ::windows_sys::w!("ServicesActive"); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICES_FAILED_DATABASE: ::windows_sys::core::PCWSTR = ::windows_sys::w!("ServicesFailed"); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICES_FAILED_DATABASEA: ::windows_sys::core::PCSTR = ::windows_sys::s!("ServicesFailed"); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICES_FAILED_DATABASEW: ::windows_sys::core::PCWSTR = ::windows_sys::w!("ServicesFailed"); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ACCEPT_HARDWAREPROFILECHANGE: u32 = 32u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ACCEPT_LOWRESOURCES: u32 = 8192u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ACCEPT_NETBINDCHANGE: u32 = 16u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ACCEPT_PARAMCHANGE: u32 = 8u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ACCEPT_PAUSE_CONTINUE: u32 = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ACCEPT_POWEREVENT: u32 = 64u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ACCEPT_PRESHUTDOWN: u32 = 256u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ACCEPT_SESSIONCHANGE: u32 = 128u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ACCEPT_SHUTDOWN: u32 = 4u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ACCEPT_STOP: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ACCEPT_SYSTEMLOWRESOURCES: u32 = 16384u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ACCEPT_TIMECHANGE: u32 = 512u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ACCEPT_TRIGGEREVENT: u32 = 1024u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ACCEPT_USER_LOGOFF: u32 = 2048u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ALL_ACCESS: u32 = 983551u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CHANGE_CONFIG: u32 = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_CONTINUE: u32 = 3u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_DEVICEEVENT: u32 = 11u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_HARDWAREPROFILECHANGE: u32 = 12u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_INTERROGATE: u32 = 4u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_LOWRESOURCES: u32 = 96u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_NETBINDADD: u32 = 7u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_NETBINDDISABLE: u32 = 10u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_NETBINDENABLE: u32 = 9u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_NETBINDREMOVE: u32 = 8u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_PARAMCHANGE: u32 = 6u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_PAUSE: u32 = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_POWEREVENT: u32 = 13u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_PRESHUTDOWN: u32 = 15u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_SESSIONCHANGE: u32 = 14u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_SHUTDOWN: u32 = 5u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_STATUS_REASON_INFO: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_STOP: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_SYSTEMLOWRESOURCES: u32 = 97u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_TIMECHANGE: u32 = 16u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTROL_TRIGGEREVENT: u32 = 32u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_DYNAMIC_INFORMATION_LEVEL_START_REASON: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ENUMERATE_DEPENDENTS: u32 = 8u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_INTERROGATE: u32 = 128u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_LAUNCH_PROTECTED_ANTIMALWARE_LIGHT: u32 = 3u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_LAUNCH_PROTECTED_NONE: u32 = 0u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_LAUNCH_PROTECTED_WINDOWS: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_LAUNCH_PROTECTED_WINDOWS_LIGHT: u32 = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_NOTIFY_STATUS_CHANGE: u32 = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_NOTIFY_STATUS_CHANGE_1: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_NOTIFY_STATUS_CHANGE_2: u32 = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_NO_CHANGE: u32 = 4294967295u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_PAUSE_CONTINUE: u32 = 64u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_QUERY_CONFIG: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_QUERY_STATUS: u32 = 4u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_SID_TYPE_NONE: u32 = 0u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_SID_TYPE_UNRESTRICTED: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_START: u32 = 16u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_START_REASON_AUTO: u32 = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_START_REASON_DELAYEDAUTO: u32 = 16u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_START_REASON_DEMAND: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_START_REASON_RESTART_ON_FAILURE: u32 = 8u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_START_REASON_TRIGGER: u32 = 4u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP: u32 = 32u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_FLAG_CUSTOM: u32 = 536870912u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_FLAG_MAX: u32 = 2147483648u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_FLAG_MIN: u32 = 0u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_FLAG_PLANNED: u32 = 1073741824u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_FLAG_UNPLANNED: u32 = 268435456u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MAJOR_APPLICATION: u32 = 327680u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MAJOR_HARDWARE: u32 = 131072u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MAJOR_MAX: u32 = 458752u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MAJOR_MAX_CUSTOM: u32 = 16711680u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MAJOR_MIN: u32 = 0u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MAJOR_MIN_CUSTOM: u32 = 4194304u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MAJOR_NONE: u32 = 393216u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MAJOR_OPERATINGSYSTEM: u32 = 196608u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MAJOR_OTHER: u32 = 65536u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MAJOR_SOFTWARE: u32 = 262144u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_DISK: u32 = 8u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_ENVIRONMENT: u32 = 10u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_HARDWARE_DRIVER: u32 = 11u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_HUNG: u32 = 6u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_INSTALLATION: u32 = 3u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_MAINTENANCE: u32 = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_MAX: u32 = 25u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_MAX_CUSTOM: u32 = 65535u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_MEMOTYLIMIT: u32 = 24u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_MIN: u32 = 0u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_MIN_CUSTOM: u32 = 256u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_MMC: u32 = 22u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_NETWORKCARD: u32 = 9u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_NETWORK_CONNECTIVITY: u32 = 17u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_NONE: u32 = 23u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_OTHER: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_OTHERDRIVER: u32 = 12u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_RECONFIG: u32 = 5u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_SECURITY: u32 = 16u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_SECURITYFIX: u32 = 15u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_SECURITYFIX_UNINSTALL: u32 = 21u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_SERVICEPACK: u32 = 13u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_SERVICEPACK_UNINSTALL: u32 = 19u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_SOFTWARE_UPDATE: u32 = 14u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_SOFTWARE_UPDATE_UNINSTALL: u32 = 20u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_UNSTABLE: u32 = 7u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_UPGRADE: u32 = 4u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_REASON_MINOR_WMI: u32 = 18u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_TRIGGER_STARTED_ARGUMENT: ::windows_sys::core::PCWSTR = ::windows_sys::w!("TriggerStarted"); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_TRIGGER_TYPE_AGGREGATE: u32 = 30u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_TRIGGER_TYPE_CUSTOM_SYSTEM_STATE_CHANGE: u32 = 7u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_USER_DEFINED_CONTROL: u32 = 256u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const USER_POLICY_PRESENT_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x54fb46c8_f089_464c_b1fd_59d1b62c3b50); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type ENUM_SERVICE_STATE = u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ACTIVE: ENUM_SERVICE_STATE = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_INACTIVE: ENUM_SERVICE_STATE = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STATE_ALL: ENUM_SERVICE_STATE = 3u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type ENUM_SERVICE_TYPE = u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_DRIVER: ENUM_SERVICE_TYPE = 11u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_KERNEL_DRIVER: ENUM_SERVICE_TYPE = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_WIN32: ENUM_SERVICE_TYPE = 48u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_WIN32_SHARE_PROCESS: ENUM_SERVICE_TYPE = 32u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ADAPTER: ENUM_SERVICE_TYPE = 4u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_FILE_SYSTEM_DRIVER: ENUM_SERVICE_TYPE = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_RECOGNIZER_DRIVER: ENUM_SERVICE_TYPE = 8u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_WIN32_OWN_PROCESS: ENUM_SERVICE_TYPE = 16u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_USER_OWN_PROCESS: ENUM_SERVICE_TYPE = 80u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_USER_SHARE_PROCESS: ENUM_SERVICE_TYPE = 96u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SC_ACTION_TYPE = i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SC_ACTION_NONE: SC_ACTION_TYPE = 0i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SC_ACTION_RESTART: SC_ACTION_TYPE = 1i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SC_ACTION_REBOOT: SC_ACTION_TYPE = 2i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SC_ACTION_RUN_COMMAND: SC_ACTION_TYPE = 3i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SC_ACTION_OWN_RESTART: SC_ACTION_TYPE = 4i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SC_ENUM_TYPE = i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SC_ENUM_PROCESS_INFO: SC_ENUM_TYPE = 0i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SC_EVENT_TYPE = i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SC_EVENT_DATABASE_CHANGE: SC_EVENT_TYPE = 0i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SC_EVENT_PROPERTY_CHANGE: SC_EVENT_TYPE = 1i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SC_EVENT_STATUS_CHANGE: SC_EVENT_TYPE = 2i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SC_STATUS_TYPE = i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SC_STATUS_PROCESS_INFO: SC_STATUS_TYPE = 0i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SERVICE_CONFIG = u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONFIG_DELAYED_AUTO_START_INFO: SERVICE_CONFIG = 3u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONFIG_DESCRIPTION: SERVICE_CONFIG = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONFIG_FAILURE_ACTIONS: SERVICE_CONFIG = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONFIG_FAILURE_ACTIONS_FLAG: SERVICE_CONFIG = 4u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONFIG_PREFERRED_NODE: SERVICE_CONFIG = 9u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONFIG_PRESHUTDOWN_INFO: SERVICE_CONFIG = 7u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO: SERVICE_CONFIG = 6u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONFIG_SERVICE_SID_INFO: SERVICE_CONFIG = 5u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONFIG_TRIGGER_INFO: SERVICE_CONFIG = 8u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONFIG_LAUNCH_PROTECTED: SERVICE_CONFIG = 12u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SERVICE_DIRECTORY_TYPE = i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const ServiceDirectoryPersistentState: SERVICE_DIRECTORY_TYPE = 0i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const ServiceDirectoryTypeMax: SERVICE_DIRECTORY_TYPE = 1i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SERVICE_ERROR = u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ERROR_CRITICAL: SERVICE_ERROR = 3u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ERROR_IGNORE: SERVICE_ERROR = 0u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ERROR_NORMAL: SERVICE_ERROR = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_ERROR_SEVERE: SERVICE_ERROR = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SERVICE_NOTIFY = u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_NOTIFY_CREATED: SERVICE_NOTIFY = 128u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_NOTIFY_CONTINUE_PENDING: SERVICE_NOTIFY = 16u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_NOTIFY_DELETE_PENDING: SERVICE_NOTIFY = 512u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_NOTIFY_DELETED: SERVICE_NOTIFY = 256u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_NOTIFY_PAUSE_PENDING: SERVICE_NOTIFY = 32u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_NOTIFY_PAUSED: SERVICE_NOTIFY = 64u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_NOTIFY_RUNNING: SERVICE_NOTIFY = 8u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_NOTIFY_START_PENDING: SERVICE_NOTIFY = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_NOTIFY_STOP_PENDING: SERVICE_NOTIFY = 4u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_NOTIFY_STOPPED: SERVICE_NOTIFY = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SERVICE_REGISTRY_STATE_TYPE = i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const ServiceRegistryStateParameters: SERVICE_REGISTRY_STATE_TYPE = 0i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const ServiceRegistryStatePersistent: SERVICE_REGISTRY_STATE_TYPE = 1i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const MaxServiceRegistryStateType: SERVICE_REGISTRY_STATE_TYPE = 2i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SERVICE_RUNS_IN_PROCESS = u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_RUNS_IN_NON_SYSTEM_OR_NOT_RUNNING: SERVICE_RUNS_IN_PROCESS = 0u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_RUNS_IN_SYSTEM_PROCESS: SERVICE_RUNS_IN_PROCESS = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SERVICE_SHARED_DIRECTORY_TYPE = i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const ServiceSharedDirectoryPersistentState: SERVICE_SHARED_DIRECTORY_TYPE = 0i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SERVICE_SHARED_REGISTRY_STATE_TYPE = i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const ServiceSharedRegistryPersistentState: SERVICE_SHARED_REGISTRY_STATE_TYPE = 0i32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SERVICE_START_TYPE = u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_AUTO_START: SERVICE_START_TYPE = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_BOOT_START: SERVICE_START_TYPE = 0u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_DEMAND_START: SERVICE_START_TYPE = 3u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_DISABLED: SERVICE_START_TYPE = 4u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_SYSTEM_START: SERVICE_START_TYPE = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SERVICE_STATUS_CURRENT_STATE = u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_CONTINUE_PENDING: SERVICE_STATUS_CURRENT_STATE = 5u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_PAUSE_PENDING: SERVICE_STATUS_CURRENT_STATE = 6u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_PAUSED: SERVICE_STATUS_CURRENT_STATE = 7u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_RUNNING: SERVICE_STATUS_CURRENT_STATE = 4u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_START_PENDING: SERVICE_STATUS_CURRENT_STATE = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOP_PENDING: SERVICE_STATUS_CURRENT_STATE = 3u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_STOPPED: SERVICE_STATUS_CURRENT_STATE = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SERVICE_TRIGGER_ACTION = u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_TRIGGER_ACTION_SERVICE_START: SERVICE_TRIGGER_ACTION = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_TRIGGER_ACTION_SERVICE_STOP: SERVICE_TRIGGER_ACTION = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE = u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_TRIGGER_DATA_TYPE_BINARY: SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_TRIGGER_DATA_TYPE_STRING: SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_TRIGGER_DATA_TYPE_LEVEL: SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE = 3u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_TRIGGER_DATA_TYPE_KEYWORD_ANY: SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE = 4u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_TRIGGER_DATA_TYPE_KEYWORD_ALL: SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE = 5u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SERVICE_TRIGGER_TYPE = u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_TRIGGER_TYPE_CUSTOM: SERVICE_TRIGGER_TYPE = 20u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_TRIGGER_TYPE_DEVICE_INTERFACE_ARRIVAL: SERVICE_TRIGGER_TYPE = 1u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_TRIGGER_TYPE_DOMAIN_JOIN: SERVICE_TRIGGER_TYPE = 3u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_TRIGGER_TYPE_FIREWALL_PORT_EVENT: SERVICE_TRIGGER_TYPE = 4u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_TRIGGER_TYPE_GROUP_POLICY: SERVICE_TRIGGER_TYPE = 5u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_TRIGGER_TYPE_IP_ADDRESS_AVAILABILITY: SERVICE_TRIGGER_TYPE = 2u32; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub const SERVICE_TRIGGER_TYPE_NETWORK_ENDPOINT: SERVICE_TRIGGER_TYPE = 6u32; +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct ENUM_SERVICE_STATUSA { + pub lpServiceName: ::windows_sys::core::PSTR, + pub lpDisplayName: ::windows_sys::core::PSTR, + pub ServiceStatus: SERVICE_STATUS, +} +impl ::core::marker::Copy for ENUM_SERVICE_STATUSA {} +impl ::core::clone::Clone for ENUM_SERVICE_STATUSA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct ENUM_SERVICE_STATUSW { + pub lpServiceName: ::windows_sys::core::PWSTR, + pub lpDisplayName: ::windows_sys::core::PWSTR, + pub ServiceStatus: SERVICE_STATUS, +} +impl ::core::marker::Copy for ENUM_SERVICE_STATUSW {} +impl ::core::clone::Clone for ENUM_SERVICE_STATUSW { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct ENUM_SERVICE_STATUS_PROCESSA { + pub lpServiceName: ::windows_sys::core::PSTR, + pub lpDisplayName: ::windows_sys::core::PSTR, + pub ServiceStatusProcess: SERVICE_STATUS_PROCESS, +} +impl ::core::marker::Copy for ENUM_SERVICE_STATUS_PROCESSA {} +impl ::core::clone::Clone for ENUM_SERVICE_STATUS_PROCESSA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct ENUM_SERVICE_STATUS_PROCESSW { + pub lpServiceName: ::windows_sys::core::PWSTR, + pub lpDisplayName: ::windows_sys::core::PWSTR, + pub ServiceStatusProcess: SERVICE_STATUS_PROCESS, +} +impl ::core::marker::Copy for ENUM_SERVICE_STATUS_PROCESSW {} +impl ::core::clone::Clone for ENUM_SERVICE_STATUS_PROCESSW { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct QUERY_SERVICE_CONFIGA { + pub dwServiceType: ENUM_SERVICE_TYPE, + pub dwStartType: SERVICE_START_TYPE, + pub dwErrorControl: SERVICE_ERROR, + pub lpBinaryPathName: ::windows_sys::core::PSTR, + pub lpLoadOrderGroup: ::windows_sys::core::PSTR, + pub dwTagId: u32, + pub lpDependencies: ::windows_sys::core::PSTR, + pub lpServiceStartName: ::windows_sys::core::PSTR, + pub lpDisplayName: ::windows_sys::core::PSTR, +} +impl ::core::marker::Copy for QUERY_SERVICE_CONFIGA {} +impl ::core::clone::Clone for QUERY_SERVICE_CONFIGA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct QUERY_SERVICE_CONFIGW { + pub dwServiceType: ENUM_SERVICE_TYPE, + pub dwStartType: SERVICE_START_TYPE, + pub dwErrorControl: SERVICE_ERROR, + pub lpBinaryPathName: ::windows_sys::core::PWSTR, + pub lpLoadOrderGroup: ::windows_sys::core::PWSTR, + pub dwTagId: u32, + pub lpDependencies: ::windows_sys::core::PWSTR, + pub lpServiceStartName: ::windows_sys::core::PWSTR, + pub lpDisplayName: ::windows_sys::core::PWSTR, +} +impl ::core::marker::Copy for QUERY_SERVICE_CONFIGW {} +impl ::core::clone::Clone for QUERY_SERVICE_CONFIGW { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct QUERY_SERVICE_LOCK_STATUSA { + pub fIsLocked: u32, + pub lpLockOwner: ::windows_sys::core::PSTR, + pub dwLockDuration: u32, +} +impl ::core::marker::Copy for QUERY_SERVICE_LOCK_STATUSA {} +impl ::core::clone::Clone for QUERY_SERVICE_LOCK_STATUSA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct QUERY_SERVICE_LOCK_STATUSW { + pub fIsLocked: u32, + pub lpLockOwner: ::windows_sys::core::PWSTR, + pub dwLockDuration: u32, +} +impl ::core::marker::Copy for QUERY_SERVICE_LOCK_STATUSW {} +impl ::core::clone::Clone for QUERY_SERVICE_LOCK_STATUSW { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SC_ACTION { + pub Type: SC_ACTION_TYPE, + pub Delay: u32, +} +impl ::core::marker::Copy for SC_ACTION {} +impl ::core::clone::Clone for SC_ACTION { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_CONTROL_STATUS_REASON_PARAMSA { + pub dwReason: u32, + pub pszComment: ::windows_sys::core::PSTR, + pub ServiceStatus: SERVICE_STATUS_PROCESS, +} +impl ::core::marker::Copy for SERVICE_CONTROL_STATUS_REASON_PARAMSA {} +impl ::core::clone::Clone for SERVICE_CONTROL_STATUS_REASON_PARAMSA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_CONTROL_STATUS_REASON_PARAMSW { + pub dwReason: u32, + pub pszComment: ::windows_sys::core::PWSTR, + pub ServiceStatus: SERVICE_STATUS_PROCESS, +} +impl ::core::marker::Copy for SERVICE_CONTROL_STATUS_REASON_PARAMSW {} +impl ::core::clone::Clone for SERVICE_CONTROL_STATUS_REASON_PARAMSW { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM { + pub u: SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0, +} +impl ::core::marker::Copy for SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM {} +impl ::core::clone::Clone for SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub union SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0 { + pub CustomStateId: SERVICE_TRIGGER_CUSTOM_STATE_ID, + pub s: SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0_0, +} +impl ::core::marker::Copy for SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0 {} +impl ::core::clone::Clone for SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0_0 { + pub DataOffset: u32, + pub Data: [u8; 1], +} +impl ::core::marker::Copy for SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0_0 {} +impl ::core::clone::Clone for SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0_0 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct SERVICE_DELAYED_AUTO_START_INFO { + pub fDelayedAutostart: super::super::Foundation::BOOL, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for SERVICE_DELAYED_AUTO_START_INFO {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for SERVICE_DELAYED_AUTO_START_INFO { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_DESCRIPTIONA { + pub lpDescription: ::windows_sys::core::PSTR, +} +impl ::core::marker::Copy for SERVICE_DESCRIPTIONA {} +impl ::core::clone::Clone for SERVICE_DESCRIPTIONA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_DESCRIPTIONW { + pub lpDescription: ::windows_sys::core::PWSTR, +} +impl ::core::marker::Copy for SERVICE_DESCRIPTIONW {} +impl ::core::clone::Clone for SERVICE_DESCRIPTIONW { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_FAILURE_ACTIONSA { + pub dwResetPeriod: u32, + pub lpRebootMsg: ::windows_sys::core::PSTR, + pub lpCommand: ::windows_sys::core::PSTR, + pub cActions: u32, + pub lpsaActions: *mut SC_ACTION, +} +impl ::core::marker::Copy for SERVICE_FAILURE_ACTIONSA {} +impl ::core::clone::Clone for SERVICE_FAILURE_ACTIONSA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_FAILURE_ACTIONSW { + pub dwResetPeriod: u32, + pub lpRebootMsg: ::windows_sys::core::PWSTR, + pub lpCommand: ::windows_sys::core::PWSTR, + pub cActions: u32, + pub lpsaActions: *mut SC_ACTION, +} +impl ::core::marker::Copy for SERVICE_FAILURE_ACTIONSW {} +impl ::core::clone::Clone for SERVICE_FAILURE_ACTIONSW { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct SERVICE_FAILURE_ACTIONS_FLAG { + pub fFailureActionsOnNonCrashFailures: super::super::Foundation::BOOL, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for SERVICE_FAILURE_ACTIONS_FLAG {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for SERVICE_FAILURE_ACTIONS_FLAG { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_LAUNCH_PROTECTED_INFO { + pub dwLaunchProtected: u32, +} +impl ::core::marker::Copy for SERVICE_LAUNCH_PROTECTED_INFO {} +impl ::core::clone::Clone for SERVICE_LAUNCH_PROTECTED_INFO { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_NOTIFY_1 { + pub dwVersion: u32, + pub pfnNotifyCallback: PFN_SC_NOTIFY_CALLBACK, + pub pContext: *mut ::core::ffi::c_void, + pub dwNotificationStatus: u32, + pub ServiceStatus: SERVICE_STATUS_PROCESS, +} +impl ::core::marker::Copy for SERVICE_NOTIFY_1 {} +impl ::core::clone::Clone for SERVICE_NOTIFY_1 { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_NOTIFY_2A { + pub dwVersion: u32, + pub pfnNotifyCallback: PFN_SC_NOTIFY_CALLBACK, + pub pContext: *mut ::core::ffi::c_void, + pub dwNotificationStatus: u32, + pub ServiceStatus: SERVICE_STATUS_PROCESS, + pub dwNotificationTriggered: u32, + pub pszServiceNames: ::windows_sys::core::PSTR, +} +impl ::core::marker::Copy for SERVICE_NOTIFY_2A {} +impl ::core::clone::Clone for SERVICE_NOTIFY_2A { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_NOTIFY_2W { + pub dwVersion: u32, + pub pfnNotifyCallback: PFN_SC_NOTIFY_CALLBACK, + pub pContext: *mut ::core::ffi::c_void, + pub dwNotificationStatus: u32, + pub ServiceStatus: SERVICE_STATUS_PROCESS, + pub dwNotificationTriggered: u32, + pub pszServiceNames: ::windows_sys::core::PWSTR, +} +impl ::core::marker::Copy for SERVICE_NOTIFY_2W {} +impl ::core::clone::Clone for SERVICE_NOTIFY_2W { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct SERVICE_PREFERRED_NODE_INFO { + pub usPreferredNode: u16, + pub fDelete: super::super::Foundation::BOOLEAN, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for SERVICE_PREFERRED_NODE_INFO {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for SERVICE_PREFERRED_NODE_INFO { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_PRESHUTDOWN_INFO { + pub dwPreshutdownTimeout: u32, +} +impl ::core::marker::Copy for SERVICE_PRESHUTDOWN_INFO {} +impl ::core::clone::Clone for SERVICE_PRESHUTDOWN_INFO { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_REQUIRED_PRIVILEGES_INFOA { + pub pmszRequiredPrivileges: ::windows_sys::core::PSTR, +} +impl ::core::marker::Copy for SERVICE_REQUIRED_PRIVILEGES_INFOA {} +impl ::core::clone::Clone for SERVICE_REQUIRED_PRIVILEGES_INFOA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_REQUIRED_PRIVILEGES_INFOW { + pub pmszRequiredPrivileges: ::windows_sys::core::PWSTR, +} +impl ::core::marker::Copy for SERVICE_REQUIRED_PRIVILEGES_INFOW {} +impl ::core::clone::Clone for SERVICE_REQUIRED_PRIVILEGES_INFOW { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_SID_INFO { + pub dwServiceSidType: u32, +} +impl ::core::marker::Copy for SERVICE_SID_INFO {} +impl ::core::clone::Clone for SERVICE_SID_INFO { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_START_REASON { + pub dwReason: u32, +} +impl ::core::marker::Copy for SERVICE_START_REASON {} +impl ::core::clone::Clone for SERVICE_START_REASON { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_STATUS { + pub dwServiceType: ENUM_SERVICE_TYPE, + pub dwCurrentState: SERVICE_STATUS_CURRENT_STATE, + pub dwControlsAccepted: u32, + pub dwWin32ExitCode: u32, + pub dwServiceSpecificExitCode: u32, + pub dwCheckPoint: u32, + pub dwWaitHint: u32, +} +impl ::core::marker::Copy for SERVICE_STATUS {} +impl ::core::clone::Clone for SERVICE_STATUS { + fn clone(&self) -> Self { + *self + } +} +pub type SERVICE_STATUS_HANDLE = isize; +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_STATUS_PROCESS { + pub dwServiceType: ENUM_SERVICE_TYPE, + pub dwCurrentState: SERVICE_STATUS_CURRENT_STATE, + pub dwControlsAccepted: u32, + pub dwWin32ExitCode: u32, + pub dwServiceSpecificExitCode: u32, + pub dwCheckPoint: u32, + pub dwWaitHint: u32, + pub dwProcessId: u32, + pub dwServiceFlags: SERVICE_RUNS_IN_PROCESS, +} +impl ::core::marker::Copy for SERVICE_STATUS_PROCESS {} +impl ::core::clone::Clone for SERVICE_STATUS_PROCESS { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_TABLE_ENTRYA { + pub lpServiceName: ::windows_sys::core::PSTR, + pub lpServiceProc: LPSERVICE_MAIN_FUNCTIONA, +} +impl ::core::marker::Copy for SERVICE_TABLE_ENTRYA {} +impl ::core::clone::Clone for SERVICE_TABLE_ENTRYA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_TABLE_ENTRYW { + pub lpServiceName: ::windows_sys::core::PWSTR, + pub lpServiceProc: LPSERVICE_MAIN_FUNCTIONW, +} +impl ::core::marker::Copy for SERVICE_TABLE_ENTRYW {} +impl ::core::clone::Clone for SERVICE_TABLE_ENTRYW { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_TIMECHANGE_INFO { + pub liNewTime: i64, + pub liOldTime: i64, +} +impl ::core::marker::Copy for SERVICE_TIMECHANGE_INFO {} +impl ::core::clone::Clone for SERVICE_TIMECHANGE_INFO { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_TRIGGER { + pub dwTriggerType: SERVICE_TRIGGER_TYPE, + pub dwAction: SERVICE_TRIGGER_ACTION, + pub pTriggerSubtype: *mut ::windows_sys::core::GUID, + pub cDataItems: u32, + pub pDataItems: *mut SERVICE_TRIGGER_SPECIFIC_DATA_ITEM, +} +impl ::core::marker::Copy for SERVICE_TRIGGER {} +impl ::core::clone::Clone for SERVICE_TRIGGER { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_TRIGGER_CUSTOM_STATE_ID { + pub Data: [u32; 2], +} +impl ::core::marker::Copy for SERVICE_TRIGGER_CUSTOM_STATE_ID {} +impl ::core::clone::Clone for SERVICE_TRIGGER_CUSTOM_STATE_ID { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_TRIGGER_INFO { + pub cTriggers: u32, + pub pTriggers: *mut SERVICE_TRIGGER, + pub pReserved: *mut u8, +} +impl ::core::marker::Copy for SERVICE_TRIGGER_INFO {} +impl ::core::clone::Clone for SERVICE_TRIGGER_INFO { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub struct SERVICE_TRIGGER_SPECIFIC_DATA_ITEM { + pub dwDataType: SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE, + pub cbData: u32, + pub pData: *mut u8, +} +impl ::core::marker::Copy for SERVICE_TRIGGER_SPECIFIC_DATA_ITEM {} +impl ::core::clone::Clone for SERVICE_TRIGGER_SPECIFIC_DATA_ITEM { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct _SC_NOTIFICATION_REGISTRATION(pub u8); +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type HANDLER_FUNCTION = ::core::option::Option<unsafe extern "system" fn(dwcontrol: u32) -> ()>; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type HANDLER_FUNCTION_EX = ::core::option::Option<unsafe extern "system" fn(dwcontrol: u32, dweventtype: u32, lpeventdata: *mut ::core::ffi::c_void, lpcontext: *mut ::core::ffi::c_void) -> u32>; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type LPHANDLER_FUNCTION = ::core::option::Option<unsafe extern "system" fn(dwcontrol: u32) -> ()>; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type LPHANDLER_FUNCTION_EX = ::core::option::Option<unsafe extern "system" fn(dwcontrol: u32, dweventtype: u32, lpeventdata: *mut ::core::ffi::c_void, lpcontext: *mut ::core::ffi::c_void) -> u32>; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type LPSERVICE_MAIN_FUNCTIONA = ::core::option::Option<unsafe extern "system" fn(dwnumservicesargs: u32, lpserviceargvectors: *mut ::windows_sys::core::PSTR) -> ()>; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type LPSERVICE_MAIN_FUNCTIONW = ::core::option::Option<unsafe extern "system" fn(dwnumservicesargs: u32, lpserviceargvectors: *mut ::windows_sys::core::PWSTR) -> ()>; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type PFN_SC_NOTIFY_CALLBACK = ::core::option::Option<unsafe extern "system" fn(pparameter: *const ::core::ffi::c_void) -> ()>; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type PSC_NOTIFICATION_CALLBACK = ::core::option::Option<unsafe extern "system" fn(dwnotify: u32, pcallbackcontext: *const ::core::ffi::c_void) -> ()>; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SERVICE_MAIN_FUNCTIONA = ::core::option::Option<unsafe extern "system" fn(dwnumservicesargs: u32, lpserviceargvectors: *mut *mut i8) -> ()>; +#[doc = "*Required features: `\"Win32_System_Services\"`*"] +pub type SERVICE_MAIN_FUNCTIONW = ::core::option::Option<unsafe extern "system" fn(dwnumservicesargs: u32, lpserviceargvectors: *mut ::windows_sys::core::PWSTR) -> ()>; |