19typedef struct _RTL_SYSTEM_TIME {
61 "Get Time Zone Name failed with error = %ld.\n",
GetLastError());
86 "Set Time Zone Information failed with error = %ld.\n",
GetLastError());
92 win_skip(
"SetTimeZoneInformation() is not available, so tests cannot be run.\n");
101 "Get Time Zone Information Returned failed with error = %ld.\n",
GetLastError());
111 if (!pRtlQueryTimeZoneInformation)
113 win_skip(
"pRtlQueryTimeZoneInformation() fails, so tests cannot be run.\n");
118 memset(&tzinfo, 0,
sizeof(tzinfo));
121 status = pRtlQueryTimeZoneInformation(&tzinfo);
137 ok(tzinfo.
Bias == 360,
"tzinfo.Bias expected '360', got '%ld'.\n", tzinfo.
Bias);
143 "Set Time Zone Information failed with error = %ld.\n",
GetLastError());
152 pRtlQueryTimeZoneInformation = (
void *)
GetProcAddress(
mod,
"RtlQueryTimeZoneInformation");
std::map< E_MODULE, HMODULE > mod
static void test_RtlQueryTimeZoneInformation(void)
#define GetProcAddress(x, y)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
BOOL WINAPI SetTimeZoneInformation(CONST TIME_ZONE_INFORMATION *lpTimeZoneInformation)
DWORD WINAPI GetTimeZoneInformation(LPTIME_ZONE_INFORMATION lpTimeZoneInformation)
NTSYSAPI NTSTATUS NTAPI RtlQueryTimeZoneInformation(_Out_ PRTL_TIME_ZONE_INFORMATION TimeZoneInformation)
#define TIME_ZONE_ID_UNKNOWN
struct _RTL_TIME_ZONE_INFORMATION RTL_TIME_ZONE_INFORMATION
#define TIME_ZONE_ID_STANDARD
#define TIME_ZONE_ID_DAYLIGHT
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
DWORD WINAPI GetLastError(void)