| 1 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 2 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 3 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 4 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 5 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 6 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security\"`"] fn ChangeServiceConfigA(hservice : super::super::Security:: SC_HANDLE, 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, lpdisplayname : ::windows_sys::core::PCSTR) -> super::super::Foundation:: BOOL); |
| 7 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 8 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security\"`"] fn ChangeServiceConfigW(hservice : super::super::Security:: SC_HANDLE, 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, lpdisplayname : ::windows_sys::core::PCWSTR) -> super::super::Foundation:: BOOL); |
| 9 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 10 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security\"`"] fn CloseServiceHandle(hscobject : super::super::Security:: SC_HANDLE) -> super::super::Foundation:: BOOL); |
| 11 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 12 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security\"`"] fn ControlService(hservice : super::super::Security:: SC_HANDLE, dwcontrol : u32, lpservicestatus : *mut SERVICE_STATUS) -> super::super::Foundation:: BOOL); |
| 13 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 14 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 15 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 16 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 17 |
#[cfg(feature = "Win32_Security")] |
| 18 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 19 |
#[cfg(feature = "Win32_Security")] |
| 20 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 21 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 22 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security\"`"] fn DeleteService(hservice : super::super::Security:: SC_HANDLE) -> super::super::Foundation:: BOOL); |
| 23 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 24 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 25 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 26 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 27 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 28 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 29 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 30 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 31 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 32 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 33 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 34 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 35 |
::windows_targets::link!("api-ms-win-service-core-l1-1-4.dll" "system" fn GetServiceDirectory(hservicestatus : SERVICE_STATUS_HANDLE, edirectorytype : SERVICE_DIRECTORY_TYPE, lppathbuffer : ::windows_sys::core::PWSTR, cchpathbufferlength : u32, lpcchrequiredbufferlength : *mut u32) -> u32); |
| 36 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 37 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 38 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 39 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 40 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 41 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 42 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 43 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 44 |
#[cfg(feature = "Win32_System_Registry")] |
| 45 |
::windows_targets::link!("api-ms-win-service-core-l1-1-3.dll" "system" #[doc = "Required features: `\"Win32_System_Registry\"`"] fn GetServiceRegistryStateKey(servicestatushandle : SERVICE_STATUS_HANDLE, statetype : SERVICE_REGISTRY_STATE_TYPE, accessmask : u32, servicestatekey : *mut super::Registry:: HKEY) -> u32); |
| 46 |
#[cfg(feature = "Win32_Security")] |
| 47 |
::windows_targets::link!("api-ms-win-service-core-l1-1-5.dll" "system" #[doc = "Required features: `\"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); |
| 48 |
#[cfg(all(feature = "Win32_Security", feature = "Win32_System_Registry"))] |
| 49 |
::windows_targets::link!("api-ms-win-service-core-l1-1-5.dll" "system" #[doc = "Required features: `\"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); |
| 50 |
#[cfg(feature = "Win32_Security")] |
| 51 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Security\"`"] fn LockServiceDatabase(hscmanager : super::super::Security:: SC_HANDLE) -> *mut ::core::ffi::c_void); |
| 52 |
#[cfg(feature = "Win32_Foundation")] |
| 53 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn NotifyBootConfigStatus(bootacceptable : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); |
| 54 |
#[cfg(feature = "Win32_Security")] |
| 55 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Security\"`"] fn NotifyServiceStatusChangeA(hservice : super::super::Security:: SC_HANDLE, dwnotifymask : SERVICE_NOTIFY, pnotifybuffer : *const SERVICE_NOTIFY_2A) -> u32); |
| 56 |
#[cfg(feature = "Win32_Security")] |
| 57 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Security\"`"] fn NotifyServiceStatusChangeW(hservice : super::super::Security:: SC_HANDLE, dwnotifymask : SERVICE_NOTIFY, pnotifybuffer : *const SERVICE_NOTIFY_2W) -> u32); |
| 58 |
#[cfg(feature = "Win32_Security")] |
| 59 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Security\"`"] fn OpenSCManagerA(lpmachinename : ::windows_sys::core::PCSTR, lpdatabasename : ::windows_sys::core::PCSTR, dwdesiredaccess : u32) -> super::super::Security:: SC_HANDLE); |
| 60 |
#[cfg(feature = "Win32_Security")] |
| 61 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Security\"`"] fn OpenSCManagerW(lpmachinename : ::windows_sys::core::PCWSTR, lpdatabasename : ::windows_sys::core::PCWSTR, dwdesiredaccess : u32) -> super::super::Security:: SC_HANDLE); |
| 62 |
#[cfg(feature = "Win32_Security")] |
| 63 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Security\"`"] fn OpenServiceA(hscmanager : super::super::Security:: SC_HANDLE, lpservicename : ::windows_sys::core::PCSTR, dwdesiredaccess : u32) -> super::super::Security:: SC_HANDLE); |
| 64 |
#[cfg(feature = "Win32_Security")] |
| 65 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Security\"`"] fn OpenServiceW(hscmanager : super::super::Security:: SC_HANDLE, lpservicename : ::windows_sys::core::PCWSTR, dwdesiredaccess : u32) -> super::super::Security:: SC_HANDLE); |
| 66 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 67 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 68 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 69 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 70 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 71 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 72 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 73 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 74 |
#[cfg(feature = "Win32_Foundation")] |
| 75 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn QueryServiceDynamicInformation(hservicestatus : SERVICE_STATUS_HANDLE, dwinfolevel : u32, ppdynamicinfo : *mut *mut ::core::ffi::c_void) -> super::super::Foundation:: BOOL); |
| 76 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 77 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 78 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 79 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 80 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 81 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 82 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 83 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security\"`"] fn QueryServiceStatus(hservice : super::super::Security:: SC_HANDLE, lpservicestatus : *mut SERVICE_STATUS) -> super::super::Foundation:: BOOL); |
| 84 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 85 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 86 |
::windows_targets::link!("advapi32.dll" "system" fn RegisterServiceCtrlHandlerA(lpservicename : ::windows_sys::core::PCSTR, lphandlerproc : LPHANDLER_FUNCTION) -> SERVICE_STATUS_HANDLE); |
| 87 |
::windows_targets::link!("advapi32.dll" "system" fn RegisterServiceCtrlHandlerExA(lpservicename : ::windows_sys::core::PCSTR, lphandlerproc : LPHANDLER_FUNCTION_EX, lpcontext : *const ::core::ffi::c_void) -> SERVICE_STATUS_HANDLE); |
| 88 |
::windows_targets::link!("advapi32.dll" "system" fn RegisterServiceCtrlHandlerExW(lpservicename : ::windows_sys::core::PCWSTR, lphandlerproc : LPHANDLER_FUNCTION_EX, lpcontext : *const ::core::ffi::c_void) -> SERVICE_STATUS_HANDLE); |
| 89 |
::windows_targets::link!("advapi32.dll" "system" fn RegisterServiceCtrlHandlerW(lpservicename : ::windows_sys::core::PCWSTR, lphandlerproc : LPHANDLER_FUNCTION) -> SERVICE_STATUS_HANDLE); |
| 90 |
#[cfg(feature = "Win32_Foundation")] |
| 91 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetServiceBits(hservicestatus : SERVICE_STATUS_HANDLE, dwservicebits : u32, bsetbitson : super::super::Foundation:: BOOL, bupdateimmediately : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL); |
| 92 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 93 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"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); |
| 94 |
#[cfg(feature = "Win32_Foundation")] |
| 95 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetServiceStatus(hservicestatus : SERVICE_STATUS_HANDLE, lpservicestatus : *const SERVICE_STATUS) -> super::super::Foundation:: BOOL); |
| 96 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 97 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security\"`"] fn StartServiceA(hservice : super::super::Security:: SC_HANDLE, dwnumserviceargs : u32, lpserviceargvectors : *const ::windows_sys::core::PCSTR) -> super::super::Foundation:: BOOL); |
| 98 |
#[cfg(feature = "Win32_Foundation")] |
| 99 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn StartServiceCtrlDispatcherA(lpservicestarttable : *const SERVICE_TABLE_ENTRYA) -> super::super::Foundation:: BOOL); |
| 100 |
#[cfg(feature = "Win32_Foundation")] |
| 101 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn StartServiceCtrlDispatcherW(lpservicestarttable : *const SERVICE_TABLE_ENTRYW) -> super::super::Foundation:: BOOL); |
| 102 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 103 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security\"`"] fn StartServiceW(hservice : super::super::Security:: SC_HANDLE, dwnumserviceargs : u32, lpserviceargvectors : *const ::windows_sys::core::PCWSTR) -> super::super::Foundation:: BOOL); |
| 104 |
#[cfg(feature = "Win32_Security")] |
| 105 |
::windows_targets::link!("sechost.dll" "system" #[doc = "Required features: `\"Win32_Security\"`"] fn SubscribeServiceChangeNotifications(hservice : super::super::Security:: SC_HANDLE, eeventtype : SC_EVENT_TYPE, pcallback : PSC_NOTIFICATION_CALLBACK, pcallbackcontext : *const ::core::ffi::c_void, psubscription : *mut PSC_NOTIFICATION_REGISTRATION) -> u32); |
| 106 |
#[cfg(feature = "Win32_Foundation")] |
| 107 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn UnlockServiceDatabase(sclock : *const ::core::ffi::c_void) -> super::super::Foundation:: BOOL); |
| 108 |
::windows_targets::link!("sechost.dll" "system" fn UnsubscribeServiceChangeNotifications(psubscription : PSC_NOTIFICATION_REGISTRATION) -> ()); |
| 109 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] |
| 110 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security\"`"] fn WaitServiceState(hservice : super::super::Security:: SC_HANDLE, dwnotify : u32, dwtimeout : u32, hcancelevent : super::super::Foundation:: HANDLE) -> u32); |
| 111 |
pub const CUSTOM_SYSTEM_STATE_CHANGE_EVENT_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x2d7a2816_0c5e_45fc_9ce7_570e5ecde9c9); |
| 112 |
pub const DOMAIN_JOIN_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1ce20aba_9851_4421_9430_1ddeb766e809); |
| 113 |
pub const DOMAIN_LEAVE_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xddaf516e_58c2_4866_9574_c3b615d42ea1); |
| 114 |
pub const FIREWALL_PORT_CLOSE_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa144ed38_8e12_4de4_9d96_e64740b1a524); |
| 115 |
pub const FIREWALL_PORT_OPEN_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xb7569e07_8421_4ee0_ad10_86915afdad09); |
| 116 |
pub const MACHINE_POLICY_PRESENT_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x659fcae6_5bdb_4da9_b1ff_ca2a178d46e0); |
| 117 |
pub const MaxServiceRegistryStateType: SERVICE_REGISTRY_STATE_TYPE = 2i32; |
| 118 |
pub const NAMED_PIPE_EVENT_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x1f81d131_3fac_4537_9e0c_7e7b0c2f4b55); |
| 119 |
pub const NETWORK_MANAGER_FIRST_IP_ADDRESS_ARRIVAL_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x4f27f2de_14e2_430b_a549_7cd48cbc8245); |
| 120 |
pub const NETWORK_MANAGER_LAST_IP_ADDRESS_REMOVAL_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xcc4ba62a_162e_4648_847a_b6bdf993e335); |
| 121 |
pub const RPC_INTERFACE_EVENT_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xbc90d167_9470_4139_a9ba_be0bbbf5b74d); |
| 122 |
pub const SC_ACTION_NONE: SC_ACTION_TYPE = 0i32; |
| 123 |
pub const SC_ACTION_OWN_RESTART: SC_ACTION_TYPE = 4i32; |
| 124 |
pub const SC_ACTION_REBOOT: SC_ACTION_TYPE = 2i32; |
| 125 |
pub const SC_ACTION_RESTART: SC_ACTION_TYPE = 1i32; |
| 126 |
pub const SC_ACTION_RUN_COMMAND: SC_ACTION_TYPE = 3i32; |
| 127 |
pub const SC_AGGREGATE_STORAGE_KEY: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("System\\CurrentControlSet\\Control\\ServiceAggregatedEvents"); |
| 128 |
pub const SC_ENUM_PROCESS_INFO: SC_ENUM_TYPE = 0i32; |
| 129 |
pub const SC_EVENT_DATABASE_CHANGE: SC_EVENT_TYPE = 0i32; |
| 130 |
pub const SC_EVENT_PROPERTY_CHANGE: SC_EVENT_TYPE = 1i32; |
| 131 |
pub const SC_EVENT_STATUS_CHANGE: SC_EVENT_TYPE = 2i32; |
| 132 |
pub const SC_MANAGER_ALL_ACCESS: u32 = 983103u32; |
| 133 |
pub const SC_MANAGER_CONNECT: u32 = 1u32; |
| 134 |
pub const SC_MANAGER_CREATE_SERVICE: u32 = 2u32; |
| 135 |
pub const SC_MANAGER_ENUMERATE_SERVICE: u32 = 4u32; |
| 136 |
pub const SC_MANAGER_LOCK: u32 = 8u32; |
| 137 |
pub const SC_MANAGER_MODIFY_BOOT_CONFIG: u32 = 32u32; |
| 138 |
pub const SC_MANAGER_QUERY_LOCK_STATUS: u32 = 16u32; |
| 139 |
pub const SC_STATUS_PROCESS_INFO: SC_STATUS_TYPE = 0i32; |
| 140 |
pub const SERVICES_ACTIVE_DATABASE: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ServicesActive"); |
| 141 |
pub const SERVICES_ACTIVE_DATABASEA: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("ServicesActive"); |
| 142 |
pub const SERVICES_ACTIVE_DATABASEW: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ServicesActive"); |
| 143 |
pub const SERVICES_FAILED_DATABASE: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ServicesFailed"); |
| 144 |
pub const SERVICES_FAILED_DATABASEA: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("ServicesFailed"); |
| 145 |
pub const SERVICES_FAILED_DATABASEW: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("ServicesFailed"); |
| 146 |
pub const SERVICE_ACCEPT_HARDWAREPROFILECHANGE: u32 = 32u32; |
| 147 |
pub const SERVICE_ACCEPT_LOWRESOURCES: u32 = 8192u32; |
| 148 |
pub const SERVICE_ACCEPT_NETBINDCHANGE: u32 = 16u32; |
| 149 |
pub const SERVICE_ACCEPT_PARAMCHANGE: u32 = 8u32; |
| 150 |
pub const SERVICE_ACCEPT_PAUSE_CONTINUE: u32 = 2u32; |
| 151 |
pub const SERVICE_ACCEPT_POWEREVENT: u32 = 64u32; |
| 152 |
pub const SERVICE_ACCEPT_PRESHUTDOWN: u32 = 256u32; |
| 153 |
pub const SERVICE_ACCEPT_SESSIONCHANGE: u32 = 128u32; |
| 154 |
pub const SERVICE_ACCEPT_SHUTDOWN: u32 = 4u32; |
| 155 |
pub const SERVICE_ACCEPT_STOP: u32 = 1u32; |
| 156 |
pub const SERVICE_ACCEPT_SYSTEMLOWRESOURCES: u32 = 16384u32; |
| 157 |
pub const SERVICE_ACCEPT_TIMECHANGE: u32 = 512u32; |
| 158 |
pub const SERVICE_ACCEPT_TRIGGEREVENT: u32 = 1024u32; |
| 159 |
pub const SERVICE_ACCEPT_USER_LOGOFF: u32 = 2048u32; |
| 160 |
pub const SERVICE_ACTIVE: ENUM_SERVICE_STATE = 1u32; |
| 161 |
pub const SERVICE_ADAPTER: ENUM_SERVICE_TYPE = 4u32; |
| 162 |
pub const SERVICE_ALL_ACCESS: u32 = 983551u32; |
| 163 |
pub const SERVICE_AUTO_START: SERVICE_START_TYPE = 2u32; |
| 164 |
pub const SERVICE_BOOT_START: SERVICE_START_TYPE = 0u32; |
| 165 |
pub const SERVICE_CHANGE_CONFIG: u32 = 2u32; |
| 166 |
pub const SERVICE_CONFIG_DELAYED_AUTO_START_INFO: SERVICE_CONFIG = 3u32; |
| 167 |
pub const SERVICE_CONFIG_DESCRIPTION: SERVICE_CONFIG = 1u32; |
| 168 |
pub const SERVICE_CONFIG_FAILURE_ACTIONS: SERVICE_CONFIG = 2u32; |
| 169 |
pub const SERVICE_CONFIG_FAILURE_ACTIONS_FLAG: SERVICE_CONFIG = 4u32; |
| 170 |
pub const SERVICE_CONFIG_LAUNCH_PROTECTED: SERVICE_CONFIG = 12u32; |
| 171 |
pub const SERVICE_CONFIG_PREFERRED_NODE: SERVICE_CONFIG = 9u32; |
| 172 |
pub const SERVICE_CONFIG_PRESHUTDOWN_INFO: SERVICE_CONFIG = 7u32; |
| 173 |
pub const SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO: SERVICE_CONFIG = 6u32; |
| 174 |
pub const SERVICE_CONFIG_SERVICE_SID_INFO: SERVICE_CONFIG = 5u32; |
| 175 |
pub const SERVICE_CONFIG_TRIGGER_INFO: SERVICE_CONFIG = 8u32; |
| 176 |
pub const SERVICE_CONTINUE_PENDING: SERVICE_STATUS_CURRENT_STATE = 5u32; |
| 177 |
pub const SERVICE_CONTROL_CONTINUE: u32 = 3u32; |
| 178 |
pub const SERVICE_CONTROL_DEVICEEVENT: u32 = 11u32; |
| 179 |
pub const SERVICE_CONTROL_HARDWAREPROFILECHANGE: u32 = 12u32; |
| 180 |
pub const SERVICE_CONTROL_INTERROGATE: u32 = 4u32; |
| 181 |
pub const SERVICE_CONTROL_LOWRESOURCES: u32 = 96u32; |
| 182 |
pub const SERVICE_CONTROL_NETBINDADD: u32 = 7u32; |
| 183 |
pub const SERVICE_CONTROL_NETBINDDISABLE: u32 = 10u32; |
| 184 |
pub const SERVICE_CONTROL_NETBINDENABLE: u32 = 9u32; |
| 185 |
pub const SERVICE_CONTROL_NETBINDREMOVE: u32 = 8u32; |
| 186 |
pub const SERVICE_CONTROL_PARAMCHANGE: u32 = 6u32; |
| 187 |
pub const SERVICE_CONTROL_PAUSE: u32 = 2u32; |
| 188 |
pub const SERVICE_CONTROL_POWEREVENT: u32 = 13u32; |
| 189 |
pub const SERVICE_CONTROL_PRESHUTDOWN: u32 = 15u32; |
| 190 |
pub const SERVICE_CONTROL_SESSIONCHANGE: u32 = 14u32; |
| 191 |
pub const SERVICE_CONTROL_SHUTDOWN: u32 = 5u32; |
| 192 |
pub const SERVICE_CONTROL_STATUS_REASON_INFO: u32 = 1u32; |
| 193 |
pub const SERVICE_CONTROL_STOP: u32 = 1u32; |
| 194 |
pub const SERVICE_CONTROL_SYSTEMLOWRESOURCES: u32 = 97u32; |
| 195 |
pub const SERVICE_CONTROL_TIMECHANGE: u32 = 16u32; |
| 196 |
pub const SERVICE_CONTROL_TRIGGEREVENT: u32 = 32u32; |
| 197 |
pub const SERVICE_DEMAND_START: SERVICE_START_TYPE = 3u32; |
| 198 |
pub const SERVICE_DISABLED: SERVICE_START_TYPE = 4u32; |
| 199 |
pub const SERVICE_DRIVER: ENUM_SERVICE_TYPE = 11u32; |
| 200 |
pub const SERVICE_DYNAMIC_INFORMATION_LEVEL_START_REASON: u32 = 1u32; |
| 201 |
pub const SERVICE_ENUMERATE_DEPENDENTS: u32 = 8u32; |
| 202 |
pub const SERVICE_ERROR_CRITICAL: SERVICE_ERROR = 3u32; |
| 203 |
pub const SERVICE_ERROR_IGNORE: SERVICE_ERROR = 0u32; |
| 204 |
pub const SERVICE_ERROR_NORMAL: SERVICE_ERROR = 1u32; |
| 205 |
pub const SERVICE_ERROR_SEVERE: SERVICE_ERROR = 2u32; |
| 206 |
pub const SERVICE_FILE_SYSTEM_DRIVER: ENUM_SERVICE_TYPE = 2u32; |
| 207 |
pub const SERVICE_INACTIVE: ENUM_SERVICE_STATE = 2u32; |
| 208 |
pub const SERVICE_INTERROGATE: u32 = 128u32; |
| 209 |
pub const SERVICE_KERNEL_DRIVER: ENUM_SERVICE_TYPE = 1u32; |
| 210 |
pub const SERVICE_LAUNCH_PROTECTED_ANTIMALWARE_LIGHT: u32 = 3u32; |
| 211 |
pub const SERVICE_LAUNCH_PROTECTED_NONE: u32 = 0u32; |
| 212 |
pub const SERVICE_LAUNCH_PROTECTED_WINDOWS: u32 = 1u32; |
| 213 |
pub const SERVICE_LAUNCH_PROTECTED_WINDOWS_LIGHT: u32 = 2u32; |
| 214 |
pub const SERVICE_NOTIFY_CONTINUE_PENDING: SERVICE_NOTIFY = 16u32; |
| 215 |
pub const SERVICE_NOTIFY_CREATED: SERVICE_NOTIFY = 128u32; |
| 216 |
pub const SERVICE_NOTIFY_DELETED: SERVICE_NOTIFY = 256u32; |
| 217 |
pub const SERVICE_NOTIFY_DELETE_PENDING: SERVICE_NOTIFY = 512u32; |
| 218 |
pub const SERVICE_NOTIFY_PAUSED: SERVICE_NOTIFY = 64u32; |
| 219 |
pub const SERVICE_NOTIFY_PAUSE_PENDING: SERVICE_NOTIFY = 32u32; |
| 220 |
pub const SERVICE_NOTIFY_RUNNING: SERVICE_NOTIFY = 8u32; |
| 221 |
pub const SERVICE_NOTIFY_START_PENDING: SERVICE_NOTIFY = 2u32; |
| 222 |
pub const SERVICE_NOTIFY_STATUS_CHANGE: u32 = 2u32; |
| 223 |
pub const SERVICE_NOTIFY_STATUS_CHANGE_1: u32 = 1u32; |
| 224 |
pub const SERVICE_NOTIFY_STATUS_CHANGE_2: u32 = 2u32; |
| 225 |
pub const SERVICE_NOTIFY_STOPPED: SERVICE_NOTIFY = 1u32; |
| 226 |
pub const SERVICE_NOTIFY_STOP_PENDING: SERVICE_NOTIFY = 4u32; |
| 227 |
pub const SERVICE_NO_CHANGE: u32 = 4294967295u32; |
| 228 |
pub const SERVICE_PAUSED: SERVICE_STATUS_CURRENT_STATE = 7u32; |
| 229 |
pub const SERVICE_PAUSE_CONTINUE: u32 = 64u32; |
| 230 |
pub const SERVICE_PAUSE_PENDING: SERVICE_STATUS_CURRENT_STATE = 6u32; |
| 231 |
pub const SERVICE_QUERY_CONFIG: u32 = 1u32; |
| 232 |
pub const SERVICE_QUERY_STATUS: u32 = 4u32; |
| 233 |
pub const SERVICE_RECOGNIZER_DRIVER: ENUM_SERVICE_TYPE = 8u32; |
| 234 |
pub const SERVICE_RUNNING: SERVICE_STATUS_CURRENT_STATE = 4u32; |
| 235 |
pub const SERVICE_RUNS_IN_NON_SYSTEM_OR_NOT_RUNNING: SERVICE_RUNS_IN_PROCESS = 0u32; |
| 236 |
pub const SERVICE_RUNS_IN_SYSTEM_PROCESS: SERVICE_RUNS_IN_PROCESS = 1u32; |
| 237 |
pub const SERVICE_SID_TYPE_NONE: u32 = 0u32; |
| 238 |
pub const SERVICE_SID_TYPE_UNRESTRICTED: u32 = 1u32; |
| 239 |
pub const SERVICE_START: u32 = 16u32; |
| 240 |
pub const SERVICE_START_PENDING: SERVICE_STATUS_CURRENT_STATE = 2u32; |
| 241 |
pub const SERVICE_START_REASON_AUTO: u32 = 2u32; |
| 242 |
pub const SERVICE_START_REASON_DELAYEDAUTO: u32 = 16u32; |
| 243 |
pub const SERVICE_START_REASON_DEMAND: u32 = 1u32; |
| 244 |
pub const SERVICE_START_REASON_RESTART_ON_FAILURE: u32 = 8u32; |
| 245 |
pub const SERVICE_START_REASON_TRIGGER: u32 = 4u32; |
| 246 |
pub const SERVICE_STATE_ALL: ENUM_SERVICE_STATE = 3u32; |
| 247 |
pub const SERVICE_STOP: u32 = 32u32; |
| 248 |
pub const SERVICE_STOPPED: SERVICE_STATUS_CURRENT_STATE = 1u32; |
| 249 |
pub const SERVICE_STOP_PENDING: SERVICE_STATUS_CURRENT_STATE = 3u32; |
| 250 |
pub const SERVICE_STOP_REASON_FLAG_CUSTOM: u32 = 536870912u32; |
| 251 |
pub const SERVICE_STOP_REASON_FLAG_MAX: u32 = 2147483648u32; |
| 252 |
pub const SERVICE_STOP_REASON_FLAG_MIN: u32 = 0u32; |
| 253 |
pub const SERVICE_STOP_REASON_FLAG_PLANNED: u32 = 1073741824u32; |
| 254 |
pub const SERVICE_STOP_REASON_FLAG_UNPLANNED: u32 = 268435456u32; |
| 255 |
pub const SERVICE_STOP_REASON_MAJOR_APPLICATION: u32 = 327680u32; |
| 256 |
pub const SERVICE_STOP_REASON_MAJOR_HARDWARE: u32 = 131072u32; |
| 257 |
pub const SERVICE_STOP_REASON_MAJOR_MAX: u32 = 458752u32; |
| 258 |
pub const SERVICE_STOP_REASON_MAJOR_MAX_CUSTOM: u32 = 16711680u32; |
| 259 |
pub const SERVICE_STOP_REASON_MAJOR_MIN: u32 = 0u32; |
| 260 |
pub const SERVICE_STOP_REASON_MAJOR_MIN_CUSTOM: u32 = 4194304u32; |
| 261 |
pub const SERVICE_STOP_REASON_MAJOR_NONE: u32 = 393216u32; |
| 262 |
pub const SERVICE_STOP_REASON_MAJOR_OPERATINGSYSTEM: u32 = 196608u32; |
| 263 |
pub const SERVICE_STOP_REASON_MAJOR_OTHER: u32 = 65536u32; |
| 264 |
pub const SERVICE_STOP_REASON_MAJOR_SOFTWARE: u32 = 262144u32; |
| 265 |
pub const SERVICE_STOP_REASON_MINOR_DISK: u32 = 8u32; |
| 266 |
pub const SERVICE_STOP_REASON_MINOR_ENVIRONMENT: u32 = 10u32; |
| 267 |
pub const SERVICE_STOP_REASON_MINOR_HARDWARE_DRIVER: u32 = 11u32; |
| 268 |
pub const SERVICE_STOP_REASON_MINOR_HUNG: u32 = 6u32; |
| 269 |
pub const SERVICE_STOP_REASON_MINOR_INSTALLATION: u32 = 3u32; |
| 270 |
pub const SERVICE_STOP_REASON_MINOR_MAINTENANCE: u32 = 2u32; |
| 271 |
pub const SERVICE_STOP_REASON_MINOR_MAX: u32 = 25u32; |
| 272 |
pub const SERVICE_STOP_REASON_MINOR_MAX_CUSTOM: u32 = 65535u32; |
| 273 |
pub const SERVICE_STOP_REASON_MINOR_MEMOTYLIMIT: u32 = 24u32; |
| 274 |
pub const SERVICE_STOP_REASON_MINOR_MIN: u32 = 0u32; |
| 275 |
pub const SERVICE_STOP_REASON_MINOR_MIN_CUSTOM: u32 = 256u32; |
| 276 |
pub const SERVICE_STOP_REASON_MINOR_MMC: u32 = 22u32; |
| 277 |
pub const SERVICE_STOP_REASON_MINOR_NETWORKCARD: u32 = 9u32; |
| 278 |
pub const SERVICE_STOP_REASON_MINOR_NETWORK_CONNECTIVITY: u32 = 17u32; |
| 279 |
pub const SERVICE_STOP_REASON_MINOR_NONE: u32 = 23u32; |
| 280 |
pub const SERVICE_STOP_REASON_MINOR_OTHER: u32 = 1u32; |
| 281 |
pub const SERVICE_STOP_REASON_MINOR_OTHERDRIVER: u32 = 12u32; |
| 282 |
pub const SERVICE_STOP_REASON_MINOR_RECONFIG: u32 = 5u32; |
| 283 |
pub const SERVICE_STOP_REASON_MINOR_SECURITY: u32 = 16u32; |
| 284 |
pub const SERVICE_STOP_REASON_MINOR_SECURITYFIX: u32 = 15u32; |
| 285 |
pub const SERVICE_STOP_REASON_MINOR_SECURITYFIX_UNINSTALL: u32 = 21u32; |
| 286 |
pub const SERVICE_STOP_REASON_MINOR_SERVICEPACK: u32 = 13u32; |
| 287 |
pub const SERVICE_STOP_REASON_MINOR_SERVICEPACK_UNINSTALL: u32 = 19u32; |
| 288 |
pub const SERVICE_STOP_REASON_MINOR_SOFTWARE_UPDATE: u32 = 14u32; |
| 289 |
pub const SERVICE_STOP_REASON_MINOR_SOFTWARE_UPDATE_UNINSTALL: u32 = 20u32; |
| 290 |
pub const SERVICE_STOP_REASON_MINOR_UNSTABLE: u32 = 7u32; |
| 291 |
pub const SERVICE_STOP_REASON_MINOR_UPGRADE: u32 = 4u32; |
| 292 |
pub const SERVICE_STOP_REASON_MINOR_WMI: u32 = 18u32; |
| 293 |
pub const SERVICE_SYSTEM_START: SERVICE_START_TYPE = 1u32; |
| 294 |
pub const SERVICE_TRIGGER_ACTION_SERVICE_START: SERVICE_TRIGGER_ACTION = 1u32; |
| 295 |
pub const SERVICE_TRIGGER_ACTION_SERVICE_STOP: SERVICE_TRIGGER_ACTION = 2u32; |
| 296 |
pub const SERVICE_TRIGGER_DATA_TYPE_BINARY: SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE = 1u32; |
| 297 |
pub const SERVICE_TRIGGER_DATA_TYPE_KEYWORD_ALL: SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE = 5u32; |
| 298 |
pub const SERVICE_TRIGGER_DATA_TYPE_KEYWORD_ANY: SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE = 4u32; |
| 299 |
pub const SERVICE_TRIGGER_DATA_TYPE_LEVEL: SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE = 3u32; |
| 300 |
pub const SERVICE_TRIGGER_DATA_TYPE_STRING: SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE = 2u32; |
| 301 |
pub const SERVICE_TRIGGER_STARTED_ARGUMENT: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("TriggerStarted"); |
| 302 |
pub const SERVICE_TRIGGER_TYPE_AGGREGATE: u32 = 30u32; |
| 303 |
pub const SERVICE_TRIGGER_TYPE_CUSTOM: SERVICE_TRIGGER_TYPE = 20u32; |
| 304 |
pub const SERVICE_TRIGGER_TYPE_CUSTOM_SYSTEM_STATE_CHANGE: u32 = 7u32; |
| 305 |
pub const SERVICE_TRIGGER_TYPE_DEVICE_INTERFACE_ARRIVAL: SERVICE_TRIGGER_TYPE = 1u32; |
| 306 |
pub const SERVICE_TRIGGER_TYPE_DOMAIN_JOIN: SERVICE_TRIGGER_TYPE = 3u32; |
| 307 |
pub const SERVICE_TRIGGER_TYPE_FIREWALL_PORT_EVENT: SERVICE_TRIGGER_TYPE = 4u32; |
| 308 |
pub const SERVICE_TRIGGER_TYPE_GROUP_POLICY: SERVICE_TRIGGER_TYPE = 5u32; |
| 309 |
pub const SERVICE_TRIGGER_TYPE_IP_ADDRESS_AVAILABILITY: SERVICE_TRIGGER_TYPE = 2u32; |
| 310 |
pub const SERVICE_TRIGGER_TYPE_NETWORK_ENDPOINT: SERVICE_TRIGGER_TYPE = 6u32; |
| 311 |
pub const SERVICE_USER_DEFINED_CONTROL: u32 = 256u32; |
| 312 |
pub const SERVICE_USER_OWN_PROCESS: ENUM_SERVICE_TYPE = 80u32; |
| 313 |
pub const SERVICE_USER_SHARE_PROCESS: ENUM_SERVICE_TYPE = 96u32; |
| 314 |
pub const SERVICE_WIN32: ENUM_SERVICE_TYPE = 48u32; |
| 315 |
pub const SERVICE_WIN32_OWN_PROCESS: ENUM_SERVICE_TYPE = 16u32; |
| 316 |
pub const SERVICE_WIN32_SHARE_PROCESS: ENUM_SERVICE_TYPE = 32u32; |
| 317 |
pub const ServiceDirectoryPersistentState: SERVICE_DIRECTORY_TYPE = 0i32; |
| 318 |
pub const ServiceDirectoryTypeMax: SERVICE_DIRECTORY_TYPE = 1i32; |
| 319 |
pub const ServiceRegistryStateParameters: SERVICE_REGISTRY_STATE_TYPE = 0i32; |
| 320 |
pub const ServiceRegistryStatePersistent: SERVICE_REGISTRY_STATE_TYPE = 1i32; |
| 321 |
pub const ServiceSharedDirectoryPersistentState: SERVICE_SHARED_DIRECTORY_TYPE = 0i32; |
| 322 |
pub const ServiceSharedRegistryPersistentState: SERVICE_SHARED_REGISTRY_STATE_TYPE = 0i32; |
| 323 |
pub const USER_POLICY_PRESENT_GUID: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x54fb46c8_f089_464c_b1fd_59d1b62c3b50); |
| 324 |
pub type ENUM_SERVICE_STATE = u32; |
| 325 |
pub type ENUM_SERVICE_TYPE = u32; |
| 326 |
pub type SC_ACTION_TYPE = i32; |
| 327 |
pub type SC_ENUM_TYPE = i32; |
| 328 |
pub type SC_EVENT_TYPE = i32; |
| 329 |
pub type SC_STATUS_TYPE = i32; |
| 330 |
pub type SERVICE_CONFIG = u32; |
| 331 |
pub type SERVICE_DIRECTORY_TYPE = i32; |
| 332 |
pub type SERVICE_ERROR = u32; |
| 333 |
pub type SERVICE_NOTIFY = u32; |
| 334 |
pub type SERVICE_REGISTRY_STATE_TYPE = i32; |
| 335 |
pub type SERVICE_RUNS_IN_PROCESS = u32; |
| 336 |
pub type SERVICE_SHARED_DIRECTORY_TYPE = i32; |
| 337 |
pub type SERVICE_SHARED_REGISTRY_STATE_TYPE = i32; |
| 338 |
pub type SERVICE_START_TYPE = u32; |
| 339 |
pub type SERVICE_STATUS_CURRENT_STATE = u32; |
| 340 |
pub type SERVICE_TRIGGER_ACTION = u32; |
| 341 |
pub type SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE = u32; |
| 342 |
pub type SERVICE_TRIGGER_TYPE = u32; |
| 343 |
#[repr(C)] |
| 344 |
pub struct ENUM_SERVICE_STATUSA { |
| 345 |
pub lpServiceName: ::windows_sys::core::PSTR, |
| 346 |
pub lpDisplayName: ::windows_sys::core::PSTR, |
| 347 |
pub ServiceStatus: SERVICE_STATUS, |
| 348 |
} |
| 349 |
impl ::core::marker::Copy for ENUM_SERVICE_STATUSA {} |
| 350 |
impl ::core::clone::Clone for ENUM_SERVICE_STATUSA { |
| 351 |
fn clone(&self) -> Self { |
| 352 |
*self |
| 353 |
} |
| 354 |
} |
| 355 |
#[repr(C)] |
| 356 |
pub struct ENUM_SERVICE_STATUSW { |
| 357 |
pub lpServiceName: ::windows_sys::core::PWSTR, |
| 358 |
pub lpDisplayName: ::windows_sys::core::PWSTR, |
| 359 |
pub ServiceStatus: SERVICE_STATUS, |
| 360 |
} |
| 361 |
impl ::core::marker::Copy for ENUM_SERVICE_STATUSW {} |
| 362 |
impl ::core::clone::Clone for ENUM_SERVICE_STATUSW { |
| 363 |
fn clone(&self) -> Self { |
| 364 |
*self |
| 365 |
} |
| 366 |
} |
| 367 |
#[repr(C)] |
| 368 |
pub struct ENUM_SERVICE_STATUS_PROCESSA { |
| 369 |
pub lpServiceName: ::windows_sys::core::PSTR, |
| 370 |
pub lpDisplayName: ::windows_sys::core::PSTR, |
| 371 |
pub ServiceStatusProcess: SERVICE_STATUS_PROCESS, |
| 372 |
} |
| 373 |
impl ::core::marker::Copy for ENUM_SERVICE_STATUS_PROCESSA {} |
| 374 |
impl ::core::clone::Clone for ENUM_SERVICE_STATUS_PROCESSA { |
| 375 |
fn clone(&self) -> Self { |
| 376 |
*self |
| 377 |
} |
| 378 |
} |
| 379 |
#[repr(C)] |
| 380 |
pub struct ENUM_SERVICE_STATUS_PROCESSW { |
| 381 |
pub lpServiceName: ::windows_sys::core::PWSTR, |
| 382 |
pub lpDisplayName: ::windows_sys::core::PWSTR, |
| 383 |
pub ServiceStatusProcess: SERVICE_STATUS_PROCESS, |
| 384 |
} |
| 385 |
impl ::core::marker::Copy for ENUM_SERVICE_STATUS_PROCESSW {} |
| 386 |
impl ::core::clone::Clone for ENUM_SERVICE_STATUS_PROCESSW { |
| 387 |
fn clone(&self) -> Self { |
| 388 |
*self |
| 389 |
} |
| 390 |
} |
| 391 |
pub type PSC_NOTIFICATION_REGISTRATION = isize; |
| 392 |
#[repr(C)] |
| 393 |
pub struct QUERY_SERVICE_CONFIGA { |
| 394 |
pub dwServiceType: ENUM_SERVICE_TYPE, |
| 395 |
pub dwStartType: SERVICE_START_TYPE, |
| 396 |
pub dwErrorControl: SERVICE_ERROR, |
| 397 |
pub lpBinaryPathName: ::windows_sys::core::PSTR, |
| 398 |
pub lpLoadOrderGroup: ::windows_sys::core::PSTR, |
| 399 |
pub dwTagId: u32, |
| 400 |
pub lpDependencies: ::windows_sys::core::PSTR, |
| 401 |
pub lpServiceStartName: ::windows_sys::core::PSTR, |
| 402 |
pub lpDisplayName: ::windows_sys::core::PSTR, |
| 403 |
} |
| 404 |
impl ::core::marker::Copy for QUERY_SERVICE_CONFIGA {} |
| 405 |
impl ::core::clone::Clone for QUERY_SERVICE_CONFIGA { |
| 406 |
fn clone(&self) -> Self { |
| 407 |
*self |
| 408 |
} |
| 409 |
} |
| 410 |
#[repr(C)] |
| 411 |
pub struct QUERY_SERVICE_CONFIGW { |
| 412 |
pub dwServiceType: ENUM_SERVICE_TYPE, |
| 413 |
pub dwStartType: SERVICE_START_TYPE, |
| 414 |
pub dwErrorControl: SERVICE_ERROR, |
| 415 |
pub lpBinaryPathName: ::windows_sys::core::PWSTR, |
| 416 |
pub lpLoadOrderGroup: ::windows_sys::core::PWSTR, |
| 417 |
pub dwTagId: u32, |
| 418 |
pub lpDependencies: ::windows_sys::core::PWSTR, |
| 419 |
pub lpServiceStartName: ::windows_sys::core::PWSTR, |
| 420 |
pub lpDisplayName: ::windows_sys::core::PWSTR, |
| 421 |
} |
| 422 |
impl ::core::marker::Copy for QUERY_SERVICE_CONFIGW {} |
| 423 |
impl ::core::clone::Clone for QUERY_SERVICE_CONFIGW { |
| 424 |
fn clone(&self) -> Self { |
| 425 |
*self |
| 426 |
} |
| 427 |
} |
| 428 |
#[repr(C)] |
| 429 |
pub struct QUERY_SERVICE_LOCK_STATUSA { |
| 430 |
pub fIsLocked: u32, |
| 431 |
pub lpLockOwner: ::windows_sys::core::PSTR, |
| 432 |
pub dwLockDuration: u32, |
| 433 |
} |
| 434 |
impl ::core::marker::Copy for QUERY_SERVICE_LOCK_STATUSA {} |
| 435 |
impl ::core::clone::Clone for QUERY_SERVICE_LOCK_STATUSA { |
| 436 |
fn clone(&self) -> Self { |
| 437 |
*self |
| 438 |
} |
| 439 |
} |
| 440 |
#[repr(C)] |
| 441 |
pub struct QUERY_SERVICE_LOCK_STATUSW { |
| 442 |
pub fIsLocked: u32, |
| 443 |
pub lpLockOwner: ::windows_sys::core::PWSTR, |
| 444 |
pub dwLockDuration: u32, |
| 445 |
} |
| 446 |
impl ::core::marker::Copy for QUERY_SERVICE_LOCK_STATUSW {} |
| 447 |
impl ::core::clone::Clone for QUERY_SERVICE_LOCK_STATUSW { |
| 448 |
fn clone(&self) -> Self { |
| 449 |
*self |
| 450 |
} |
| 451 |
} |
| 452 |
#[repr(C)] |
| 453 |
pub struct SC_ACTION { |
| 454 |
pub Type: SC_ACTION_TYPE, |
| 455 |
pub Delay: u32, |
| 456 |
} |
| 457 |
impl ::core::marker::Copy for SC_ACTION {} |
| 458 |
impl ::core::clone::Clone for SC_ACTION { |
| 459 |
fn clone(&self) -> Self { |
| 460 |
*self |
| 461 |
} |
| 462 |
} |
| 463 |
#[repr(C)] |
| 464 |
pub struct SERVICE_CONTROL_STATUS_REASON_PARAMSA { |
| 465 |
pub dwReason: u32, |
| 466 |
pub pszComment: ::windows_sys::core::PSTR, |
| 467 |
pub ServiceStatus: SERVICE_STATUS_PROCESS, |
| 468 |
} |
| 469 |
impl ::core::marker::Copy for SERVICE_CONTROL_STATUS_REASON_PARAMSA {} |
| 470 |
impl ::core::clone::Clone for SERVICE_CONTROL_STATUS_REASON_PARAMSA { |
| 471 |
fn clone(&self) -> Self { |
| 472 |
*self |
| 473 |
} |
| 474 |
} |
| 475 |
#[repr(C)] |
| 476 |
pub struct SERVICE_CONTROL_STATUS_REASON_PARAMSW { |
| 477 |
pub dwReason: u32, |
| 478 |
pub pszComment: ::windows_sys::core::PWSTR, |
| 479 |
pub ServiceStatus: SERVICE_STATUS_PROCESS, |
| 480 |
} |
| 481 |
impl ::core::marker::Copy for SERVICE_CONTROL_STATUS_REASON_PARAMSW {} |
| 482 |
impl ::core::clone::Clone for SERVICE_CONTROL_STATUS_REASON_PARAMSW { |
| 483 |
fn clone(&self) -> Self { |
| 484 |
*self |
| 485 |
} |
| 486 |
} |
| 487 |
#[repr(C)] |
| 488 |
pub struct SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM { |
| 489 |
pub u: SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0, |
| 490 |
} |
| 491 |
impl ::core::marker::Copy for SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM {} |
| 492 |
impl ::core::clone::Clone for SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM { |
| 493 |
fn clone(&self) -> Self { |
| 494 |
*self |
| 495 |
} |
| 496 |
} |
| 497 |
#[repr(C)] |
| 498 |
pub union SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0 { |
| 499 |
pub CustomStateId: SERVICE_TRIGGER_CUSTOM_STATE_ID, |
| 500 |
pub s: SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0_0, |
| 501 |
} |
| 502 |
impl ::core::marker::Copy for SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0 {} |
| 503 |
impl ::core::clone::Clone for SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0 { |
| 504 |
fn clone(&self) -> Self { |
| 505 |
*self |
| 506 |
} |
| 507 |
} |
| 508 |
#[repr(C)] |
| 509 |
pub struct SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0_0 { |
| 510 |
pub DataOffset: u32, |
| 511 |
pub Data: [u8; 1], |
| 512 |
} |
| 513 |
impl ::core::marker::Copy for SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0_0 {} |
| 514 |
impl ::core::clone::Clone for SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM_0_0 { |
| 515 |
fn clone(&self) -> Self { |
| 516 |
*self |
| 517 |
} |
| 518 |
} |
| 519 |
#[repr(C)] |
| 520 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 521 |
#[cfg(feature = "Win32_Foundation")] |
| 522 |
pub struct SERVICE_DELAYED_AUTO_START_INFO { |
| 523 |
pub fDelayedAutostart: super::super::Foundation::BOOL, |
| 524 |
} |
| 525 |
#[cfg(feature = "Win32_Foundation")] |
| 526 |
impl ::core::marker::Copy for SERVICE_DELAYED_AUTO_START_INFO {} |
| 527 |
#[cfg(feature = "Win32_Foundation")] |
| 528 |
impl ::core::clone::Clone for SERVICE_DELAYED_AUTO_START_INFO { |
| 529 |
fn clone(&self) -> Self { |
| 530 |
*self |
| 531 |
} |
| 532 |
} |
| 533 |
#[repr(C)] |
| 534 |
pub struct SERVICE_DESCRIPTIONA { |
| 535 |
pub lpDescription: ::windows_sys::core::PSTR, |
| 536 |
} |
| 537 |
impl ::core::marker::Copy for SERVICE_DESCRIPTIONA {} |
| 538 |
impl ::core::clone::Clone for SERVICE_DESCRIPTIONA { |
| 539 |
fn clone(&self) -> Self { |
| 540 |
*self |
| 541 |
} |
| 542 |
} |
| 543 |
#[repr(C)] |
| 544 |
pub struct SERVICE_DESCRIPTIONW { |
| 545 |
pub lpDescription: ::windows_sys::core::PWSTR, |
| 546 |
} |
| 547 |
impl ::core::marker::Copy for SERVICE_DESCRIPTIONW {} |
| 548 |
impl ::core::clone::Clone for SERVICE_DESCRIPTIONW { |
| 549 |
fn clone(&self) -> Self { |
| 550 |
*self |
| 551 |
} |
| 552 |
} |
| 553 |
#[repr(C)] |
| 554 |
pub struct SERVICE_FAILURE_ACTIONSA { |
| 555 |
pub dwResetPeriod: u32, |
| 556 |
pub lpRebootMsg: ::windows_sys::core::PSTR, |
| 557 |
pub lpCommand: ::windows_sys::core::PSTR, |
| 558 |
pub cActions: u32, |
| 559 |
pub lpsaActions: *mut SC_ACTION, |
| 560 |
} |
| 561 |
impl ::core::marker::Copy for SERVICE_FAILURE_ACTIONSA {} |
| 562 |
impl ::core::clone::Clone for SERVICE_FAILURE_ACTIONSA { |
| 563 |
fn clone(&self) -> Self { |
| 564 |
*self |
| 565 |
} |
| 566 |
} |
| 567 |
#[repr(C)] |
| 568 |
pub struct SERVICE_FAILURE_ACTIONSW { |
| 569 |
pub dwResetPeriod: u32, |
| 570 |
pub lpRebootMsg: ::windows_sys::core::PWSTR, |
| 571 |
pub lpCommand: ::windows_sys::core::PWSTR, |
| 572 |
pub cActions: u32, |
| 573 |
pub lpsaActions: *mut SC_ACTION, |
| 574 |
} |
| 575 |
impl ::core::marker::Copy for SERVICE_FAILURE_ACTIONSW {} |
| 576 |
impl ::core::clone::Clone for SERVICE_FAILURE_ACTIONSW { |
| 577 |
fn clone(&self) -> Self { |
| 578 |
*self |
| 579 |
} |
| 580 |
} |
| 581 |
#[repr(C)] |
| 582 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 583 |
#[cfg(feature = "Win32_Foundation")] |
| 584 |
pub struct SERVICE_FAILURE_ACTIONS_FLAG { |
| 585 |
pub fFailureActionsOnNonCrashFailures: super::super::Foundation::BOOL, |
| 586 |
} |
| 587 |
#[cfg(feature = "Win32_Foundation")] |
| 588 |
impl ::core::marker::Copy for SERVICE_FAILURE_ACTIONS_FLAG {} |
| 589 |
#[cfg(feature = "Win32_Foundation")] |
| 590 |
impl ::core::clone::Clone for SERVICE_FAILURE_ACTIONS_FLAG { |
| 591 |
fn clone(&self) -> Self { |
| 592 |
*self |
| 593 |
} |
| 594 |
} |
| 595 |
#[repr(C)] |
| 596 |
pub struct SERVICE_LAUNCH_PROTECTED_INFO { |
| 597 |
pub dwLaunchProtected: u32, |
| 598 |
} |
| 599 |
impl ::core::marker::Copy for SERVICE_LAUNCH_PROTECTED_INFO {} |
| 600 |
impl ::core::clone::Clone for SERVICE_LAUNCH_PROTECTED_INFO { |
| 601 |
fn clone(&self) -> Self { |
| 602 |
*self |
| 603 |
} |
| 604 |
} |
| 605 |
#[repr(C)] |
| 606 |
pub struct SERVICE_NOTIFY_1 { |
| 607 |
pub dwVersion: u32, |
| 608 |
pub pfnNotifyCallback: PFN_SC_NOTIFY_CALLBACK, |
| 609 |
pub pContext: *mut ::core::ffi::c_void, |
| 610 |
pub dwNotificationStatus: u32, |
| 611 |
pub ServiceStatus: SERVICE_STATUS_PROCESS, |
| 612 |
} |
| 613 |
impl ::core::marker::Copy for SERVICE_NOTIFY_1 {} |
| 614 |
impl ::core::clone::Clone for SERVICE_NOTIFY_1 { |
| 615 |
fn clone(&self) -> Self { |
| 616 |
*self |
| 617 |
} |
| 618 |
} |
| 619 |
#[repr(C)] |
| 620 |
pub struct SERVICE_NOTIFY_2A { |
| 621 |
pub dwVersion: u32, |
| 622 |
pub pfnNotifyCallback: PFN_SC_NOTIFY_CALLBACK, |
| 623 |
pub pContext: *mut ::core::ffi::c_void, |
| 624 |
pub dwNotificationStatus: u32, |
| 625 |
pub ServiceStatus: SERVICE_STATUS_PROCESS, |
| 626 |
pub dwNotificationTriggered: u32, |
| 627 |
pub pszServiceNames: ::windows_sys::core::PSTR, |
| 628 |
} |
| 629 |
impl ::core::marker::Copy for SERVICE_NOTIFY_2A {} |
| 630 |
impl ::core::clone::Clone for SERVICE_NOTIFY_2A { |
| 631 |
fn clone(&self) -> Self { |
| 632 |
*self |
| 633 |
} |
| 634 |
} |
| 635 |
#[repr(C)] |
| 636 |
pub struct SERVICE_NOTIFY_2W { |
| 637 |
pub dwVersion: u32, |
| 638 |
pub pfnNotifyCallback: PFN_SC_NOTIFY_CALLBACK, |
| 639 |
pub pContext: *mut ::core::ffi::c_void, |
| 640 |
pub dwNotificationStatus: u32, |
| 641 |
pub ServiceStatus: SERVICE_STATUS_PROCESS, |
| 642 |
pub dwNotificationTriggered: u32, |
| 643 |
pub pszServiceNames: ::windows_sys::core::PWSTR, |
| 644 |
} |
| 645 |
impl ::core::marker::Copy for SERVICE_NOTIFY_2W {} |
| 646 |
impl ::core::clone::Clone for SERVICE_NOTIFY_2W { |
| 647 |
fn clone(&self) -> Self { |
| 648 |
*self |
| 649 |
} |
| 650 |
} |
| 651 |
#[repr(C)] |
| 652 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 653 |
#[cfg(feature = "Win32_Foundation")] |
| 654 |
pub struct SERVICE_PREFERRED_NODE_INFO { |
| 655 |
pub usPreferredNode: u16, |
| 656 |
pub fDelete: super::super::Foundation::BOOLEAN, |
| 657 |
} |
| 658 |
#[cfg(feature = "Win32_Foundation")] |
| 659 |
impl ::core::marker::Copy for SERVICE_PREFERRED_NODE_INFO {} |
| 660 |
#[cfg(feature = "Win32_Foundation")] |
| 661 |
impl ::core::clone::Clone for SERVICE_PREFERRED_NODE_INFO { |
| 662 |
fn clone(&self) -> Self { |
| 663 |
*self |
| 664 |
} |
| 665 |
} |
| 666 |
#[repr(C)] |
| 667 |
pub struct SERVICE_PRESHUTDOWN_INFO { |
| 668 |
pub dwPreshutdownTimeout: u32, |
| 669 |
} |
| 670 |
impl ::core::marker::Copy for SERVICE_PRESHUTDOWN_INFO {} |
| 671 |
impl ::core::clone::Clone for SERVICE_PRESHUTDOWN_INFO { |
| 672 |
fn clone(&self) -> Self { |
| 673 |
*self |
| 674 |
} |
| 675 |
} |
| 676 |
#[repr(C)] |
| 677 |
pub struct SERVICE_REQUIRED_PRIVILEGES_INFOA { |
| 678 |
pub pmszRequiredPrivileges: ::windows_sys::core::PSTR, |
| 679 |
} |
| 680 |
impl ::core::marker::Copy for SERVICE_REQUIRED_PRIVILEGES_INFOA {} |
| 681 |
impl ::core::clone::Clone for SERVICE_REQUIRED_PRIVILEGES_INFOA { |
| 682 |
fn clone(&self) -> Self { |
| 683 |
*self |
| 684 |
} |
| 685 |
} |
| 686 |
#[repr(C)] |
| 687 |
pub struct SERVICE_REQUIRED_PRIVILEGES_INFOW { |
| 688 |
pub pmszRequiredPrivileges: ::windows_sys::core::PWSTR, |
| 689 |
} |
| 690 |
impl ::core::marker::Copy for SERVICE_REQUIRED_PRIVILEGES_INFOW {} |
| 691 |
impl ::core::clone::Clone for SERVICE_REQUIRED_PRIVILEGES_INFOW { |
| 692 |
fn clone(&self) -> Self { |
| 693 |
*self |
| 694 |
} |
| 695 |
} |
| 696 |
#[repr(C)] |
| 697 |
pub struct SERVICE_SID_INFO { |
| 698 |
pub dwServiceSidType: u32, |
| 699 |
} |
| 700 |
impl ::core::marker::Copy for SERVICE_SID_INFO {} |
| 701 |
impl ::core::clone::Clone for SERVICE_SID_INFO { |
| 702 |
fn clone(&self) -> Self { |
| 703 |
*self |
| 704 |
} |
| 705 |
} |
| 706 |
#[repr(C)] |
| 707 |
pub struct SERVICE_START_REASON { |
| 708 |
pub dwReason: u32, |
| 709 |
} |
| 710 |
impl ::core::marker::Copy for SERVICE_START_REASON {} |
| 711 |
impl ::core::clone::Clone for SERVICE_START_REASON { |
| 712 |
fn clone(&self) -> Self { |
| 713 |
*self |
| 714 |
} |
| 715 |
} |
| 716 |
#[repr(C)] |
| 717 |
pub struct SERVICE_STATUS { |
| 718 |
pub dwServiceType: ENUM_SERVICE_TYPE, |
| 719 |
pub dwCurrentState: SERVICE_STATUS_CURRENT_STATE, |
| 720 |
pub dwControlsAccepted: u32, |
| 721 |
pub dwWin32ExitCode: u32, |
| 722 |
pub dwServiceSpecificExitCode: u32, |
| 723 |
pub dwCheckPoint: u32, |
| 724 |
pub dwWaitHint: u32, |
| 725 |
} |
| 726 |
impl ::core::marker::Copy for SERVICE_STATUS {} |
| 727 |
impl ::core::clone::Clone for SERVICE_STATUS { |
| 728 |
fn clone(&self) -> Self { |
| 729 |
*self |
| 730 |
} |
| 731 |
} |
| 732 |
pub type SERVICE_STATUS_HANDLE = isize; |
| 733 |
#[repr(C)] |
| 734 |
pub struct SERVICE_STATUS_PROCESS { |
| 735 |
pub dwServiceType: ENUM_SERVICE_TYPE, |
| 736 |
pub dwCurrentState: SERVICE_STATUS_CURRENT_STATE, |
| 737 |
pub dwControlsAccepted: u32, |
| 738 |
pub dwWin32ExitCode: u32, |
| 739 |
pub dwServiceSpecificExitCode: u32, |
| 740 |
pub dwCheckPoint: u32, |
| 741 |
pub dwWaitHint: u32, |
| 742 |
pub dwProcessId: u32, |
| 743 |
pub dwServiceFlags: SERVICE_RUNS_IN_PROCESS, |
| 744 |
} |
| 745 |
impl ::core::marker::Copy for SERVICE_STATUS_PROCESS {} |
| 746 |
impl ::core::clone::Clone for SERVICE_STATUS_PROCESS { |
| 747 |
fn clone(&self) -> Self { |
| 748 |
*self |
| 749 |
} |
| 750 |
} |
| 751 |
#[repr(C)] |
| 752 |
pub struct SERVICE_TABLE_ENTRYA { |
| 753 |
pub lpServiceName: ::windows_sys::core::PSTR, |
| 754 |
pub lpServiceProc: LPSERVICE_MAIN_FUNCTIONA, |
| 755 |
} |
| 756 |
impl ::core::marker::Copy for SERVICE_TABLE_ENTRYA {} |
| 757 |
impl ::core::clone::Clone for SERVICE_TABLE_ENTRYA { |
| 758 |
fn clone(&self) -> Self { |
| 759 |
*self |
| 760 |
} |
| 761 |
} |
| 762 |
#[repr(C)] |
| 763 |
pub struct SERVICE_TABLE_ENTRYW { |
| 764 |
pub lpServiceName: ::windows_sys::core::PWSTR, |
| 765 |
pub lpServiceProc: LPSERVICE_MAIN_FUNCTIONW, |
| 766 |
} |
| 767 |
impl ::core::marker::Copy for SERVICE_TABLE_ENTRYW {} |
| 768 |
impl ::core::clone::Clone for SERVICE_TABLE_ENTRYW { |
| 769 |
fn clone(&self) -> Self { |
| 770 |
*self |
| 771 |
} |
| 772 |
} |
| 773 |
#[repr(C)] |
| 774 |
pub struct SERVICE_TIMECHANGE_INFO { |
| 775 |
pub liNewTime: i64, |
| 776 |
pub liOldTime: i64, |
| 777 |
} |
| 778 |
impl ::core::marker::Copy for SERVICE_TIMECHANGE_INFO {} |
| 779 |
impl ::core::clone::Clone for SERVICE_TIMECHANGE_INFO { |
| 780 |
fn clone(&self) -> Self { |
| 781 |
*self |
| 782 |
} |
| 783 |
} |
| 784 |
#[repr(C)] |
| 785 |
pub struct SERVICE_TRIGGER { |
| 786 |
pub dwTriggerType: SERVICE_TRIGGER_TYPE, |
| 787 |
pub dwAction: SERVICE_TRIGGER_ACTION, |
| 788 |
pub pTriggerSubtype: *mut ::windows_sys::core::GUID, |
| 789 |
pub cDataItems: u32, |
| 790 |
pub pDataItems: *mut SERVICE_TRIGGER_SPECIFIC_DATA_ITEM, |
| 791 |
} |
| 792 |
impl ::core::marker::Copy for SERVICE_TRIGGER {} |
| 793 |
impl ::core::clone::Clone for SERVICE_TRIGGER { |
| 794 |
fn clone(&self) -> Self { |
| 795 |
*self |
| 796 |
} |
| 797 |
} |
| 798 |
#[repr(C)] |
| 799 |
pub struct SERVICE_TRIGGER_CUSTOM_STATE_ID { |
| 800 |
pub Data: [u32; 2], |
| 801 |
} |
| 802 |
impl ::core::marker::Copy for SERVICE_TRIGGER_CUSTOM_STATE_ID {} |
| 803 |
impl ::core::clone::Clone for SERVICE_TRIGGER_CUSTOM_STATE_ID { |
| 804 |
fn clone(&self) -> Self { |
| 805 |
*self |
| 806 |
} |
| 807 |
} |
| 808 |
#[repr(C)] |
| 809 |
pub struct SERVICE_TRIGGER_INFO { |
| 810 |
pub cTriggers: u32, |
| 811 |
pub pTriggers: *mut SERVICE_TRIGGER, |
| 812 |
pub pReserved: *mut u8, |
| 813 |
} |
| 814 |
impl ::core::marker::Copy for SERVICE_TRIGGER_INFO {} |
| 815 |
impl ::core::clone::Clone for SERVICE_TRIGGER_INFO { |
| 816 |
fn clone(&self) -> Self { |
| 817 |
*self |
| 818 |
} |
| 819 |
} |
| 820 |
#[repr(C)] |
| 821 |
pub struct SERVICE_TRIGGER_SPECIFIC_DATA_ITEM { |
| 822 |
pub dwDataType: SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE, |
| 823 |
pub cbData: u32, |
| 824 |
pub pData: *mut u8, |
| 825 |
} |
| 826 |
impl ::core::marker::Copy for SERVICE_TRIGGER_SPECIFIC_DATA_ITEM {} |
| 827 |
impl ::core::clone::Clone for SERVICE_TRIGGER_SPECIFIC_DATA_ITEM { |
| 828 |
fn clone(&self) -> Self { |
| 829 |
*self |
| 830 |
} |
| 831 |
} |
| 832 |
pub type HANDLER_FUNCTION = ::core::option::Option<unsafe extern "system" fn(dwcontrol: u32) -> ()>; |
| 833 |
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>; |
| 834 |
pub type LPHANDLER_FUNCTION = ::core::option::Option<unsafe extern "system" fn(dwcontrol: u32) -> ()>; |
| 835 |
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>; |
| 836 |
pub type LPSERVICE_MAIN_FUNCTIONA = ::core::option::Option<unsafe extern "system" fn(dwnumservicesargs: u32, lpserviceargvectors: *mut ::windows_sys::core::PSTR) -> ()>; |
| 837 |
pub type LPSERVICE_MAIN_FUNCTIONW = ::core::option::Option<unsafe extern "system" fn(dwnumservicesargs: u32, lpserviceargvectors: *mut ::windows_sys::core::PWSTR) -> ()>; |
| 838 |
pub type PFN_SC_NOTIFY_CALLBACK = ::core::option::Option<unsafe extern "system" fn(pparameter: *const ::core::ffi::c_void) -> ()>; |
| 839 |
pub type PSC_NOTIFICATION_CALLBACK = ::core::option::Option<unsafe extern "system" fn(dwnotify: u32, pcallbackcontext: *const ::core::ffi::c_void) -> ()>; |
| 840 |
pub type SERVICE_MAIN_FUNCTIONA = ::core::option::Option<unsafe extern "system" fn(dwnumservicesargs: u32, lpserviceargvectors: *mut *mut i8) -> ()>; |
| 841 |
pub type SERVICE_MAIN_FUNCTIONW = ::core::option::Option<unsafe extern "system" fn(dwnumservicesargs: u32, lpserviceargvectors: *mut ::windows_sys::core::PWSTR) -> ()>; |