| 1 |
#[cfg(feature = "Win32_Foundation")] |
| 2 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn EnumDynamicTimeZoneInformation(dwindex : u32, lptimezoneinformation : *mut DYNAMIC_TIME_ZONE_INFORMATION) -> u32); |
| 3 |
#[cfg(feature = "Win32_Foundation")] |
| 4 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn FileTimeToSystemTime(lpfiletime : *const super::super::Foundation:: FILETIME, lpsystemtime : *mut super::super::Foundation:: SYSTEMTIME) -> super::super::Foundation:: BOOL); |
| 5 |
#[cfg(feature = "Win32_Foundation")] |
| 6 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetDynamicTimeZoneInformation(ptimezoneinformation : *mut DYNAMIC_TIME_ZONE_INFORMATION) -> u32); |
| 7 |
#[cfg(feature = "Win32_Foundation")] |
| 8 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetDynamicTimeZoneInformationEffectiveYears(lptimezoneinformation : *const DYNAMIC_TIME_ZONE_INFORMATION, firstyear : *mut u32, lastyear : *mut u32) -> u32); |
| 9 |
#[cfg(feature = "Win32_Foundation")] |
| 10 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetTimeZoneInformation(lptimezoneinformation : *mut TIME_ZONE_INFORMATION) -> u32); |
| 11 |
#[cfg(feature = "Win32_Foundation")] |
| 12 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetTimeZoneInformationForYear(wyear : u16, pdtzi : *const DYNAMIC_TIME_ZONE_INFORMATION, ptzi : *mut TIME_ZONE_INFORMATION) -> super::super::Foundation:: BOOL); |
| 13 |
#[cfg(feature = "Win32_Foundation")] |
| 14 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"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); |
| 15 |
#[cfg(feature = "Win32_Foundation")] |
| 16 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"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); |
| 17 |
#[cfg(feature = "Win32_Foundation")] |
| 18 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetDynamicTimeZoneInformation(lptimezoneinformation : *const DYNAMIC_TIME_ZONE_INFORMATION) -> super::super::Foundation:: BOOL); |
| 19 |
#[cfg(feature = "Win32_Foundation")] |
| 20 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetTimeZoneInformation(lptimezoneinformation : *const TIME_ZONE_INFORMATION) -> super::super::Foundation:: BOOL); |
| 21 |
#[cfg(feature = "Win32_Foundation")] |
| 22 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SystemTimeToFileTime(lpsystemtime : *const super::super::Foundation:: SYSTEMTIME, lpfiletime : *mut super::super::Foundation:: FILETIME) -> super::super::Foundation:: BOOL); |
| 23 |
#[cfg(feature = "Win32_Foundation")] |
| 24 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"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); |
| 25 |
#[cfg(feature = "Win32_Foundation")] |
| 26 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"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); |
| 27 |
#[cfg(feature = "Win32_Foundation")] |
| 28 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"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); |
| 29 |
#[cfg(feature = "Win32_Foundation")] |
| 30 |
::windows_targets::link!("kernel32.dll" "system" #[doc = "Required features: `\"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); |
| 31 |
pub const TIME_ZONE_ID_INVALID: u32 = 4294967295u32; |
| 32 |
pub const TSF_Authenticated: u32 = 2u32; |
| 33 |
pub const TSF_Hardware: u32 = 1u32; |
| 34 |
pub const TSF_IPv6: u32 = 4u32; |
| 35 |
pub const TSF_SignatureAuthenticated: u32 = 8u32; |
| 36 |
pub const wszW32TimeRegKeyPolicyTimeProviders: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Software\\Policies\\Microsoft\\W32Time\\TimeProviders"); |
| 37 |
pub const wszW32TimeRegKeyTimeProviders: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("System\\CurrentControlSet\\Services\\W32Time\\TimeProviders"); |
| 38 |
pub const wszW32TimeRegValueDllName: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("DllName"); |
| 39 |
pub const wszW32TimeRegValueEnabled: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Enabled"); |
| 40 |
pub const wszW32TimeRegValueInputProvider: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("InputProvider"); |
| 41 |
pub const wszW32TimeRegValueMetaDataProvider: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("MetaDataProvider"); |
| 42 |
#[repr(C)] |
| 43 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 44 |
#[cfg(feature = "Win32_Foundation")] |
| 45 |
pub struct DYNAMIC_TIME_ZONE_INFORMATION { |
| 46 |
pub Bias: i32, |
| 47 |
pub StandardName: [u16; 32], |
| 48 |
pub StandardDate: super::super::Foundation::SYSTEMTIME, |
| 49 |
pub StandardBias: i32, |
| 50 |
pub DaylightName: [u16; 32], |
| 51 |
pub DaylightDate: super::super::Foundation::SYSTEMTIME, |
| 52 |
pub DaylightBias: i32, |
| 53 |
pub TimeZoneKeyName: [u16; 128], |
| 54 |
pub DynamicDaylightTimeDisabled: super::super::Foundation::BOOLEAN, |
| 55 |
} |
| 56 |
#[cfg(feature = "Win32_Foundation")] |
| 57 |
impl ::core::marker::Copy for DYNAMIC_TIME_ZONE_INFORMATION {} |
| 58 |
#[cfg(feature = "Win32_Foundation")] |
| 59 |
impl ::core::clone::Clone for DYNAMIC_TIME_ZONE_INFORMATION { |
| 60 |
fn clone(&self) -> Self { |
| 61 |
*self |
| 62 |
} |
| 63 |
} |
| 64 |
#[repr(C)] |
| 65 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 66 |
#[cfg(feature = "Win32_Foundation")] |
| 67 |
pub struct TIME_ZONE_INFORMATION { |
| 68 |
pub Bias: i32, |
| 69 |
pub StandardName: [u16; 32], |
| 70 |
pub StandardDate: super::super::Foundation::SYSTEMTIME, |
| 71 |
pub StandardBias: i32, |
| 72 |
pub DaylightName: [u16; 32], |
| 73 |
pub DaylightDate: super::super::Foundation::SYSTEMTIME, |
| 74 |
pub DaylightBias: i32, |
| 75 |
} |
| 76 |
#[cfg(feature = "Win32_Foundation")] |
| 77 |
impl ::core::marker::Copy for TIME_ZONE_INFORMATION {} |
| 78 |
#[cfg(feature = "Win32_Foundation")] |
| 79 |
impl ::core::clone::Clone for TIME_ZONE_INFORMATION { |
| 80 |
fn clone(&self) -> Self { |
| 81 |
*self |
| 82 |
} |
| 83 |
} |