blob: a9735c95b228c7555953843e930e88625c76ff2b [file] [log] [blame]
Chariseed720b3f2023-03-09 17:35:07 +00001#[cfg(feature = "Win32_Foundation")]
Chris Wailescd1aefd2023-07-13 13:36:21 -07002::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 );
Chariseed720b3f2023-03-09 17:35:07 +00003#[cfg(feature = "Win32_Foundation")]
Chris Wailescd1aefd2023-07-13 13:36:21 -07004::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 );
Chariseed720b3f2023-03-09 17:35:07 +00005#[cfg(feature = "Win32_Foundation")]
Chris Wailescd1aefd2023-07-13 13:36:21 -07006::windows_targets::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] fn GetDynamicTimeZoneInformation ( ptimezoneinformation : *mut DYNAMIC_TIME_ZONE_INFORMATION ) -> u32 );
Chariseed720b3f2023-03-09 17:35:07 +00007#[cfg(feature = "Win32_Foundation")]
Chris Wailescd1aefd2023-07-13 13:36:21 -07008::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 );
Chariseed720b3f2023-03-09 17:35:07 +00009#[cfg(feature = "Win32_Foundation")]
Chris Wailescd1aefd2023-07-13 13:36:21 -070010::windows_targets::link ! ( "kernel32.dll""system" #[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"] fn GetTimeZoneInformation ( lptimezoneinformation : *mut TIME_ZONE_INFORMATION ) -> u32 );
Chariseed720b3f2023-03-09 17:35:07 +000011#[cfg(feature = "Win32_Foundation")]
Chris Wailescd1aefd2023-07-13 13:36:21 -070012::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 );
Chariseed720b3f2023-03-09 17:35:07 +000013#[cfg(feature = "Win32_Foundation")]
Chris Wailescd1aefd2023-07-13 13:36:21 -070014::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 );
Chariseed720b3f2023-03-09 17:35:07 +000015#[cfg(feature = "Win32_Foundation")]
Chris Wailescd1aefd2023-07-13 13:36:21 -070016::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 );
Chariseed720b3f2023-03-09 17:35:07 +000017#[cfg(feature = "Win32_Foundation")]
Chris Wailescd1aefd2023-07-13 13:36:21 -070018::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 );
Chariseed720b3f2023-03-09 17:35:07 +000019#[cfg(feature = "Win32_Foundation")]
Chris Wailescd1aefd2023-07-13 13:36:21 -070020::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 );
Chariseed720b3f2023-03-09 17:35:07 +000021#[cfg(feature = "Win32_Foundation")]
Chris Wailescd1aefd2023-07-13 13:36:21 -070022::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 );
Chariseed720b3f2023-03-09 17:35:07 +000023#[cfg(feature = "Win32_Foundation")]
Chris Wailescd1aefd2023-07-13 13:36:21 -070024::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 );
Chariseed720b3f2023-03-09 17:35:07 +000025#[cfg(feature = "Win32_Foundation")]
Chris Wailescd1aefd2023-07-13 13:36:21 -070026::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 );
Chariseed720b3f2023-03-09 17:35:07 +000027#[cfg(feature = "Win32_Foundation")]
Chris Wailescd1aefd2023-07-13 13:36:21 -070028::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 );
Chariseed720b3f2023-03-09 17:35:07 +000029#[cfg(feature = "Win32_Foundation")]
Chris Wailescd1aefd2023-07-13 13:36:21 -070030::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 );
Chariseed720b3f2023-03-09 17:35:07 +000031#[doc = "*Required features: `\"Win32_System_Time\"`*"]
32pub const TIME_ZONE_ID_INVALID: u32 = 4294967295u32;
Chris Wailes977026a2023-02-13 09:13:10 -080033#[doc = "*Required features: `\"Win32_System_Time\"`*"]
34pub const TSF_Authenticated: u32 = 2u32;
35#[doc = "*Required features: `\"Win32_System_Time\"`*"]
36pub const TSF_Hardware: u32 = 1u32;
37#[doc = "*Required features: `\"Win32_System_Time\"`*"]
38pub const TSF_IPv6: u32 = 4u32;
39#[doc = "*Required features: `\"Win32_System_Time\"`*"]
40pub const TSF_SignatureAuthenticated: u32 = 8u32;
41#[doc = "*Required features: `\"Win32_System_Time\"`*"]
Chris Wailescd1aefd2023-07-13 13:36:21 -070042pub const wszW32TimeRegKeyPolicyTimeProviders: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Software\\Policies\\Microsoft\\W32Time\\TimeProviders");
Chris Wailes977026a2023-02-13 09:13:10 -080043#[doc = "*Required features: `\"Win32_System_Time\"`*"]
Chris Wailescd1aefd2023-07-13 13:36:21 -070044pub const wszW32TimeRegKeyTimeProviders: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("System\\CurrentControlSet\\Services\\W32Time\\TimeProviders");
Chris Wailes977026a2023-02-13 09:13:10 -080045#[doc = "*Required features: `\"Win32_System_Time\"`*"]
Chris Wailescd1aefd2023-07-13 13:36:21 -070046pub const wszW32TimeRegValueDllName: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("DllName");
Chris Wailes977026a2023-02-13 09:13:10 -080047#[doc = "*Required features: `\"Win32_System_Time\"`*"]
Chris Wailescd1aefd2023-07-13 13:36:21 -070048pub const wszW32TimeRegValueEnabled: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Enabled");
Chris Wailes977026a2023-02-13 09:13:10 -080049#[doc = "*Required features: `\"Win32_System_Time\"`*"]
Chris Wailescd1aefd2023-07-13 13:36:21 -070050pub const wszW32TimeRegValueInputProvider: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("InputProvider");
Chris Wailes977026a2023-02-13 09:13:10 -080051#[doc = "*Required features: `\"Win32_System_Time\"`*"]
Chris Wailescd1aefd2023-07-13 13:36:21 -070052pub const wszW32TimeRegValueMetaDataProvider: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("MetaDataProvider");
Charisee7878d542022-02-24 18:21:36 +000053#[repr(C)]
Charisee9cf67802022-06-30 20:04:09 +000054#[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"]
Charisee7878d542022-02-24 18:21:36 +000055#[cfg(feature = "Win32_Foundation")]
56pub 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")]
68impl ::core::marker::Copy for DYNAMIC_TIME_ZONE_INFORMATION {}
69#[cfg(feature = "Win32_Foundation")]
70impl ::core::clone::Clone for DYNAMIC_TIME_ZONE_INFORMATION {
71 fn clone(&self) -> Self {
72 *self
73 }
74}
75#[repr(C)]
Charisee9cf67802022-06-30 20:04:09 +000076#[doc = "*Required features: `\"Win32_System_Time\"`, `\"Win32_Foundation\"`*"]
Charisee7878d542022-02-24 18:21:36 +000077#[cfg(feature = "Win32_Foundation")]
78pub 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")]
88impl ::core::marker::Copy for TIME_ZONE_INFORMATION {}
89#[cfg(feature = "Win32_Foundation")]
90impl ::core::clone::Clone for TIME_ZONE_INFORMATION {
91 fn clone(&self) -> Self {
92 *self
93 }
94}