Charisee | d720b3f | 2023-03-09 17:35:07 +0000 | [diff] [blame] | 1 | #[cfg(feature = "Win32_Foundation")] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 2 | ::windows_targets::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] fn EnumDynamicTimeZoneInformation ( dwindex : u32 , lptimezoneinformation : *mut DYNAMIC_TIME_ZONE_INFORMATION ) -> u32 ); |
Charisee | d720b3f | 2023-03-09 17:35:07 +0000 | [diff] [blame] | 3 | #[cfg(feature = "Win32_Foundation")] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 4 | ::windows_targets::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] fn FileTimeToSystemTime ( lpfiletime : *const super::super::Foundation:: FILETIME , lpsystemtime : *mut super::super::Foundation:: SYSTEMTIME ) -> super::super::Foundation:: BOOL ); |
Charisee | d720b3f | 2023-03-09 17:35:07 +0000 | [diff] [blame] | 5 | #[cfg(feature = "Win32_Foundation")] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 6 | ::windows_targets::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] fn GetDynamicTimeZoneInformation ( ptimezoneinformation : *mut DYNAMIC_TIME_ZONE_INFORMATION ) -> u32 ); |
Charisee | d720b3f | 2023-03-09 17:35:07 +0000 | [diff] [blame] | 7 | #[cfg(feature = "Win32_Foundation")] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 8 | ::windows_targets::link ! ( "advapi32.dll""system" #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] fn GetDynamicTimeZoneInformationEffectiveYears ( lptimezoneinformation : *const DYNAMIC_TIME_ZONE_INFORMATION , firstyear : *mut u32 , lastyear : *mut u32 ) -> u32 ); |
Charisee | d720b3f | 2023-03-09 17:35:07 +0000 | [diff] [blame] | 9 | #[cfg(feature = "Win32_Foundation")] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 10 | ::windows_targets::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] fn GetTimeZoneInformation ( lptimezoneinformation : *mut TIME_ZONE_INFORMATION ) -> u32 ); |
Charisee | d720b3f | 2023-03-09 17:35:07 +0000 | [diff] [blame] | 11 | #[cfg(feature = "Win32_Foundation")] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 12 | ::windows_targets::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] fn GetTimeZoneInformationForYear ( wyear : u16 , pdtzi : *const DYNAMIC_TIME_ZONE_INFORMATION , ptzi : *mut TIME_ZONE_INFORMATION ) -> super::super::Foundation:: BOOL ); |
Charisee | d720b3f | 2023-03-09 17:35:07 +0000 | [diff] [blame] | 13 | #[cfg(feature = "Win32_Foundation")] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 14 | ::windows_targets::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] fn LocalFileTimeToLocalSystemTime ( timezoneinformation : *const TIME_ZONE_INFORMATION , localfiletime : *const super::super::Foundation:: FILETIME , localsystemtime : *mut super::super::Foundation:: SYSTEMTIME ) -> super::super::Foundation:: BOOL ); |
Charisee | d720b3f | 2023-03-09 17:35:07 +0000 | [diff] [blame] | 15 | #[cfg(feature = "Win32_Foundation")] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 16 | ::windows_targets::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] fn LocalSystemTimeToLocalFileTime ( timezoneinformation : *const TIME_ZONE_INFORMATION , localsystemtime : *const super::super::Foundation:: SYSTEMTIME , localfiletime : *mut super::super::Foundation:: FILETIME ) -> super::super::Foundation:: BOOL ); |
Charisee | d720b3f | 2023-03-09 17:35:07 +0000 | [diff] [blame] | 17 | #[cfg(feature = "Win32_Foundation")] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 18 | ::windows_targets::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] fn SetDynamicTimeZoneInformation ( lptimezoneinformation : *const DYNAMIC_TIME_ZONE_INFORMATION ) -> super::super::Foundation:: BOOL ); |
Charisee | d720b3f | 2023-03-09 17:35:07 +0000 | [diff] [blame] | 19 | #[cfg(feature = "Win32_Foundation")] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 20 | ::windows_targets::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] fn SetTimeZoneInformation ( lptimezoneinformation : *const TIME_ZONE_INFORMATION ) -> super::super::Foundation:: BOOL ); |
Charisee | d720b3f | 2023-03-09 17:35:07 +0000 | [diff] [blame] | 21 | #[cfg(feature = "Win32_Foundation")] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 22 | ::windows_targets::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] fn SystemTimeToFileTime ( lpsystemtime : *const super::super::Foundation:: SYSTEMTIME , lpfiletime : *mut super::super::Foundation:: FILETIME ) -> super::super::Foundation:: BOOL ); |
Charisee | d720b3f | 2023-03-09 17:35:07 +0000 | [diff] [blame] | 23 | #[cfg(feature = "Win32_Foundation")] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 24 | ::windows_targets::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] fn SystemTimeToTzSpecificLocalTime ( lptimezoneinformation : *const TIME_ZONE_INFORMATION , lpuniversaltime : *const super::super::Foundation:: SYSTEMTIME , lplocaltime : *mut super::super::Foundation:: SYSTEMTIME ) -> super::super::Foundation:: BOOL ); |
Charisee | d720b3f | 2023-03-09 17:35:07 +0000 | [diff] [blame] | 25 | #[cfg(feature = "Win32_Foundation")] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 26 | ::windows_targets::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] fn SystemTimeToTzSpecificLocalTimeEx ( lptimezoneinformation : *const DYNAMIC_TIME_ZONE_INFORMATION , lpuniversaltime : *const super::super::Foundation:: SYSTEMTIME , lplocaltime : *mut super::super::Foundation:: SYSTEMTIME ) -> super::super::Foundation:: BOOL ); |
Charisee | d720b3f | 2023-03-09 17:35:07 +0000 | [diff] [blame] | 27 | #[cfg(feature = "Win32_Foundation")] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 28 | ::windows_targets::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] fn TzSpecificLocalTimeToSystemTime ( lptimezoneinformation : *const TIME_ZONE_INFORMATION , lplocaltime : *const super::super::Foundation:: SYSTEMTIME , lpuniversaltime : *mut super::super::Foundation:: SYSTEMTIME ) -> super::super::Foundation:: BOOL ); |
Charisee | d720b3f | 2023-03-09 17:35:07 +0000 | [diff] [blame] | 29 | #[cfg(feature = "Win32_Foundation")] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 30 | ::windows_targets::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] fn TzSpecificLocalTimeToSystemTimeEx ( lptimezoneinformation : *const DYNAMIC_TIME_ZONE_INFORMATION , lplocaltime : *const super::super::Foundation:: SYSTEMTIME , lpuniversaltime : *mut super::super::Foundation:: SYSTEMTIME ) -> super::super::Foundation:: BOOL ); |
Charisee | d720b3f | 2023-03-09 17:35:07 +0000 | [diff] [blame] | 31 | #[doc = "*Required features: `\"Win32_System_Time\"`*"] |
| 32 | pub const TIME_ZONE_ID_INVALID: u32 = 4294967295u32; |
Chris Wailes | 977026a | 2023-02-13 09:13:10 -0800 | [diff] [blame] | 33 | #[doc = "*Required features: `\"Win32_System_Time\"`*"] |
| 34 | pub const TSF_Authenticated: u32 = 2u32; |
| 35 | #[doc = "*Required features: `\"Win32_System_Time\"`*"] |
| 36 | pub const TSF_Hardware: u32 = 1u32; |
| 37 | #[doc = "*Required features: `\"Win32_System_Time\"`*"] |
| 38 | pub const TSF_IPv6: u32 = 4u32; |
| 39 | #[doc = "*Required features: `\"Win32_System_Time\"`*"] |
| 40 | pub const TSF_SignatureAuthenticated: u32 = 8u32; |
| 41 | #[doc = "*Required features: `\"Win32_System_Time\"`*"] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 42 | pub const wszW32TimeRegKeyPolicyTimeProviders: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Software\\Policies\\Microsoft\\W32Time\\TimeProviders"); |
Chris Wailes | 977026a | 2023-02-13 09:13:10 -0800 | [diff] [blame] | 43 | #[doc = "*Required features: `\"Win32_System_Time\"`*"] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 44 | pub const wszW32TimeRegKeyTimeProviders: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("System\\CurrentControlSet\\Services\\W32Time\\TimeProviders"); |
Chris Wailes | 977026a | 2023-02-13 09:13:10 -0800 | [diff] [blame] | 45 | #[doc = "*Required features: `\"Win32_System_Time\"`*"] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 46 | pub const wszW32TimeRegValueDllName: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("DllName"); |
Chris Wailes | 977026a | 2023-02-13 09:13:10 -0800 | [diff] [blame] | 47 | #[doc = "*Required features: `\"Win32_System_Time\"`*"] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 48 | pub const wszW32TimeRegValueEnabled: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Enabled"); |
Chris Wailes | 977026a | 2023-02-13 09:13:10 -0800 | [diff] [blame] | 49 | #[doc = "*Required features: `\"Win32_System_Time\"`*"] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 50 | pub const wszW32TimeRegValueInputProvider: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("InputProvider"); |
Chris Wailes | 977026a | 2023-02-13 09:13:10 -0800 | [diff] [blame] | 51 | #[doc = "*Required features: `\"Win32_System_Time\"`*"] |
Chris Wailes | cd1aefd | 2023-07-13 13:36:21 -0700 | [diff] [blame^] | 52 | pub const wszW32TimeRegValueMetaDataProvider: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("MetaDataProvider"); |
Charisee | 7878d54 | 2022-02-24 18:21:36 +0000 | [diff] [blame] | 53 | #[repr(C)] |
Charisee | 9cf6780 | 2022-06-30 20:04:09 +0000 | [diff] [blame] | 54 | #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] |
Charisee | 7878d54 | 2022-02-24 18:21:36 +0000 | [diff] [blame] | 55 | #[cfg(feature = "Win32_Foundation")] |
| 56 | pub struct DYNAMIC_TIME_ZONE_INFORMATION { |
| 57 | pub Bias: i32, |
| 58 | pub StandardName: [u16; 32], |
| 59 | pub StandardDate: super::super::Foundation::SYSTEMTIME, |
| 60 | pub StandardBias: i32, |
| 61 | pub DaylightName: [u16; 32], |
| 62 | pub DaylightDate: super::super::Foundation::SYSTEMTIME, |
| 63 | pub DaylightBias: i32, |
| 64 | pub TimeZoneKeyName: [u16; 128], |
| 65 | pub DynamicDaylightTimeDisabled: super::super::Foundation::BOOLEAN, |
| 66 | } |
| 67 | #[cfg(feature = "Win32_Foundation")] |
| 68 | impl ::core::marker::Copy for DYNAMIC_TIME_ZONE_INFORMATION {} |
| 69 | #[cfg(feature = "Win32_Foundation")] |
| 70 | impl ::core::clone::Clone for DYNAMIC_TIME_ZONE_INFORMATION { |
| 71 | fn clone(&self) -> Self { |
| 72 | *self |
| 73 | } |
| 74 | } |
| 75 | #[repr(C)] |
Charisee | 9cf6780 | 2022-06-30 20:04:09 +0000 | [diff] [blame] | 76 | #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] |
Charisee | 7878d54 | 2022-02-24 18:21:36 +0000 | [diff] [blame] | 77 | #[cfg(feature = "Win32_Foundation")] |
| 78 | pub struct TIME_ZONE_INFORMATION { |
| 79 | pub Bias: i32, |
| 80 | pub StandardName: [u16; 32], |
| 81 | pub StandardDate: super::super::Foundation::SYSTEMTIME, |
| 82 | pub StandardBias: i32, |
| 83 | pub DaylightName: [u16; 32], |
| 84 | pub DaylightDate: super::super::Foundation::SYSTEMTIME, |
| 85 | pub DaylightBias: i32, |
| 86 | } |
| 87 | #[cfg(feature = "Win32_Foundation")] |
| 88 | impl ::core::marker::Copy for TIME_ZONE_INFORMATION {} |
| 89 | #[cfg(feature = "Win32_Foundation")] |
| 90 | impl ::core::clone::Clone for TIME_ZONE_INFORMATION { |
| 91 | fn clone(&self) -> Self { |
| 92 | *self |
| 93 | } |
| 94 | } |