22 L"SYSTEM\\CurrentControlSet\\Control\\ProductOptions",
75 PWSTR ProductTypeString;
82 ProductTypeString =
L"WinNT";
86 ProductTypeString =
L"LanmanNT";
90 ProductTypeString =
L"ServerNT";
94 ok(
FALSE,
"Passed invalid product type to CHangeNtProduct: %lu", NtProductType);
98 L"SYSTEM\\CurrentControlSet\\Control\\ProductOptions",
113 (
PBYTE)ProductTypeString,
145 ok(Ret,
"Failed to query the product type value!\n");
150 ok(Ret ==
TRUE,
"Expected a valid product type value (and TRUE as returned success code) but got %u as status.\n", Ret);
151 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);
156 ok_long(ProductType2, ProductType);
160 ok_long(ProductType2, ProductType);
164 ok_long(ProductType2, ProductType);
static BOOLEAN ChangeNtProductType(DWORD NtProductType)
static BOOLEAN ReturnNtProduct(PDWORD ProductNtType)
#define EndSeh(ExpectedStatus)
#define ok_long(expression, result)
#define ok_char(expression, result)
#define RegCloseKey(hKey)
BOOLEAN NTAPI RtlGetNtProductType(_Out_ PNT_PRODUCT_TYPE ProductType)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
enum _NT_PRODUCT_TYPE NT_PRODUCT_TYPE
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
#define STATUS_ACCESS_VIOLATION
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
#define HKEY_LOCAL_MACHINE
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO