22 const WCHAR *StringData;
35 skip(
"Test key unavailable\n");
61 skip(
"Could not alloc %lu bytes\n", InfoLength);
80 ok(
Info->DataLength >= 5 *
sizeof(
WCHAR),
"DataLength %lu is too small for path\n",
Info->DataLength);
81 if (
Info->DataLength >= 5 *
sizeof(
WCHAR))
83 trace(
"SystemRoot: %.*ls\n", (
int)(
Info->DataLength /
sizeof(
WCHAR) - 1), StringData);
84 ok(StringData[0] >=
'A' && StringData[0] <=
'Z',
"Data[0] = %x\n", StringData[0]);
85 ok(StringData[1] ==
':',
"Data[1] = %x\n", StringData[1]);
86 ok(StringData[2] ==
'\\',
"Data[2] = %x\n", StringData[2]);
87 ok(
iswalnum(StringData[3]),
"Data[3] = %x\n", StringData[3]);
89 "Data[%lu] = %x\n",
Info->DataLength /
sizeof(
WCHAR) - 1, StringData[
Info->DataLength /
sizeof(
WCHAR) - 1]);
103 StringData = (
PWCHAR)InfoUnaligned->Data;
107 ok(StringData[1] ==
':',
"Data[1] = %x\n", StringData[1]);
#define ok_hex(expression, result)
#define ok_int(expression, result)
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
#define NT_SUCCESS(StatCode)
#define OBJ_CASE_INSENSITIVE
#define InitializeObjectAttributes(p, n, a, r, s)
@ KeyValuePartialInformationAlign64
_Must_inspect_result_ _Out_ PNDIS_STATUS _In_ NDIS_HANDLE _In_ ULONG _Out_ PNDIS_STRING _Out_ PNDIS_HANDLE KeyHandle
NTSYSAPI NTSTATUS NTAPI NtOpenKey(OUT PHANDLE KeyHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes)
NTSYSAPI NTSTATUS NTAPI NtQueryValueKey(IN HANDLE KeyHandle, IN PUNICODE_STRING ValueName, IN KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass, IN PVOID KeyValueInformation, IN ULONG Length, IN PULONG ResultLength)
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
#define STATUS_BUFFER_TOO_SMALL
#define RTL_CONSTANT_STRING(s)
#define FIELD_OFFSET(t, f)
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG _Out_ PULONG ResultLength
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING KeyName
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING ValueName