24 "Get Time Zone Name failed with error = %ld.\n",
GetLastError());
49 "Set Time Zone Information failed with error = %ld.\n",
GetLastError());
55 win_skip(
"SetTimeZoneInformation() is not available, so tests cannot be run.\n");
64 "Get Time Zone Information Returned failed with error = %ld.\n",
GetLastError());
74 if (!pRtlQueryTimeZoneInformation)
76 win_skip(
"pRtlQueryTimeZoneInformation() fails, so tests cannot be run.\n");
81 memset(&tzinfo, 0,
sizeof(tzinfo));
84 status = pRtlQueryTimeZoneInformation(&tzinfo);
100 ok(tzinfo.
Bias == 360,
"tzinfo.Bias expected '360', got '%ld'.\n", tzinfo.
Bias);
106 "Set Time Zone Information failed with error = %ld.\n",
GetLastError());
115 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
#define TIME_ZONE_ID_STANDARD
#define TIME_ZONE_ID_DAYLIGHT
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
DWORD WINAPI GetLastError(void)