Go to the source code of this file.
◆ NTSTATUS()
◆ START_TEST()
Definition at line 148 of file RtlQueryTimeZoneInfo.c.
149{
150
152 pRtlQueryTimeZoneInformation = (
void *)
GetProcAddress(
mod,
"RtlQueryTimeZoneInformation");
153
155}
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 49 of file RtlQueryTimeZoneInfo.c.
50{
55
56
57
59
61 "Get Time Zone Name failed with error = %ld.\n",
GetLastError());
62
63
64
73
80
81
82
84
86 "Set Time Zone Information failed with error = %ld.\n",
GetLastError());
87
88
89
91 {
92 win_skip(
"SetTimeZoneInformation() is not available, so tests cannot be run.\n");
93 return;
94 }
95
96
97
99
101 "Get Time Zone Information Returned failed with error = %ld.\n",
GetLastError());
102
105
108
109
110
111 if (!pRtlQueryTimeZoneInformation)
112 {
113 win_skip(
"pRtlQueryTimeZoneInformation() fails, so tests cannot be run.\n");
114 return;
115 }
116
117
118 memset(&tzinfo, 0,
sizeof(tzinfo));
119
120
121 status = pRtlQueryTimeZoneInformation(&tzinfo);
123
124
129
130
135
136
137 ok(tzinfo.
Bias == 360,
"tzinfo.Bias expected '360', got '%ld'.\n", tzinfo.
Bias);
140
141
143 "Set Time Zone Information failed with error = %ld.\n",
GetLastError());
144
145}
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
_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)
Referenced by START_TEST().