| 91 | } |
| 92 | |
| 93 | NTSTATUS RegistryKey::SetStringValue(PUNICODE_STRING name, PCWSTR pValue, DWORD type) { |
| 94 | ASSERT(_hKey); |
| 95 | ASSERT((type == REG_SZ || type == REG_EXPAND_SZ)); |
| 96 | |
| 97 | return ZwSetValueKey(_hKey, name, 0, type, (PVOID)pValue, |
| 98 | (static_cast<ULONG>(wcslen(pValue) + 1) * sizeof(WCHAR))); |
| 99 | } |
| 100 | |
| 101 | NTSTATUS RegistryKey::SetMultiStringValue(PUNICODE_STRING name, PCWSTR pValue) { |
| 102 | PCWSTR pTemp; |