11{
18
19
22
23
26
27
28 NameLength = 8;
31
32
33 NameLength = 0;
36
37
40
41
44
45
48
49
53
54
55 NameLength = 7;
58
61
63
65 ok(
wcscmp(NameBuffer,
L"Value1") == 0,
"%S\n", NameBuffer);
66
67
68 NameLength = 6;
69 memset(NameBuffer, 0xBA,
sizeof(NameBuffer));
72
74
75 ok_hex(NameBuffer[6], 0xBABA);
76 ok_hex(NameBuffer[5], 0xBABA);
77 ok_hex(NameBuffer[4], 0xBABA);
78 ok_hex(NameBuffer[3], 0xBABA);
79 ok_hex(NameBuffer[2], 0xBABA);
80 ok_hex(NameBuffer[1], 0xBABA);
81 ok_hex(NameBuffer[0], 0xBABA);
82
83
84 NameLength = 5;
85 memset(NameBuffer, 0xBA,
sizeof(NameBuffer));
88
90
91 ok_hex(NameBuffer[6], 0xBABA);
92 ok_hex(NameBuffer[5], 0xBABA);
93 ok_hex(NameBuffer[4], 0xBABA);
94 ok_hex(NameBuffer[3], 0xBABA);
95 ok_hex(NameBuffer[2], 0xBABA);
96 ok_hex(NameBuffer[1], 0xBABA);
97 ok_hex(NameBuffer[0], 0xBABA);
98
99
103
105 NameLength = 7;
110
111
113 NameLength = 7;
119
120
124 NameLength = 7;
130
131
133 NameLength = 7;
141
142
146}
#define ok_hex(expression, result)
#define ok_dec(expression, result)
#define RegCloseKey(hKey)
_In_ ULONG _In_opt_ WDFREQUEST _In_opt_ PVOID _In_ size_t _In_ PVOID _In_ size_t _Out_ size_t * DataLength
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
LONG WINAPI RegDeleteKeyW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey)
LONG WINAPI RegEnumValueW(_In_ HKEY hKey, _In_ DWORD index, _Out_ LPWSTR value, _Inout_ PDWORD val_count, _Reserved_ PDWORD reserved, _Out_opt_ PDWORD type, _Out_opt_ LPBYTE data, _Inout_opt_ PDWORD count)
LONG WINAPI RegCreateKeyW(HKEY hKey, LPCWSTR lpSubKey, PHKEY phkResult)
#define ERROR_INVALID_PARAMETER
#define ERROR_NO_MORE_ITEMS
_In_ NDIS_ERROR_CODE ErrorCode
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
#define HKEY_CURRENT_USER