Go to the source code of this file.
◆ NTSTATUS()
◆ START_TEST()
Definition at line 111 of file RtlQueryTimeZoneInfo.c.
112{
113
115 pRtlQueryTimeZoneInformation = (
void *)
GetProcAddress(
mod,
"RtlQueryTimeZoneInformation");
116
118}
std::map< E_MODULE, HMODULE > mod
static void test_RtlQueryTimeZoneInformation(void)
#define GetProcAddress(x, y)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
◆ test_RtlQueryTimeZoneInformation()
static void test_RtlQueryTimeZoneInformation |
( |
void |
| ) |
|
|
static |
Definition at line 12 of file RtlQueryTimeZoneInfo.c.
13{
18
19
20
22
24 "Get Time Zone Name failed with error = %ld.\n",
GetLastError());
25
26
27
36
43
44
45
47
49 "Set Time Zone Information failed with error = %ld.\n",
GetLastError());
50
51
52
54 {
55 win_skip(
"SetTimeZoneInformation() is not available, so tests cannot be run.\n");
56 return;
57 }
58
59
60
62
64 "Get Time Zone Information Returned failed with error = %ld.\n",
GetLastError());
65
68
71
72
73
74 if (!pRtlQueryTimeZoneInformation)
75 {
76 win_skip(
"pRtlQueryTimeZoneInformation() fails, so tests cannot be run.\n");
77 return;
78 }
79
80
81 memset(&tzinfo, 0,
sizeof(tzinfo));
82
83
84 status = pRtlQueryTimeZoneInformation(&tzinfo);
86
87
92
93
98
99
100 ok(tzinfo.
Bias == 360,
"tzinfo.Bias expected '360', got '%ld'.\n", tzinfo.
Bias);
103
104
106 "Set Time Zone Information failed with error = %ld.\n",
GetLastError());
107
108}
BOOL WINAPI SetTimeZoneInformation(CONST TIME_ZONE_INFORMATION *lpTimeZoneInformation)
DWORD WINAPI GetTimeZoneInformation(LPTIME_ZONE_INFORMATION lpTimeZoneInformation)
#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)
Referenced by START_TEST().