127{
131
132
133 DWORD ReportAsWorkstation = 0xbaadf00d;
137 {
138 DWORD cb =
sizeof(ReportAsWorkstation);
140 ReportAsWorkstation = 0xbaadf00d;
143 }
144
145
146
147
148
149
153
154
157 {
158 ok(Ret,
"Failed to query the product type value!\n");
159 }
160
161
163 ok(Ret ==
TRUE,
"Expected a valid product type value (and TRUE as returned success code) but got %u as status.\n", Ret);
164 ok(ProductNtType == ProductType,
"Expected the product type value to be the same but got %lu (original value pointed by RtlGetNtProductType() is %d).\n", ProductNtType, ProductType);
165
166
169 ok_long(ProductType2, ProductType);
170
173 ok_long(ProductType2, ProductType);
174
177 ok_long(ProductType2, ProductType);
178
180
181
184 {
185 if (ReportAsWorkstation != 0xbaadf00d)
188 }
189}
static BOOLEAN ChangeNtProductType(DWORD NtProductType)
static BOOLEAN ReturnNtProduct(PDWORD ProductNtType)
#define EndSeh(ExpectedStatus)
#define ok_long(expression, result)
#define ok_char(expression, result)
BOOLEAN NTAPI RtlGetNtProductType(_Out_ PNT_PRODUCT_TYPE ProductType)
LONG WINAPI RegDeleteValueW(HKEY hKey, LPCWSTR lpValueName)
enum _NT_PRODUCT_TYPE NT_PRODUCT_TYPE
#define STATUS_ACCESS_VIOLATION
static HMODULE MODULEINFO DWORD cb