MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / SetStringValue

Method SetStringValue

KernelLibrary/RegistryKey.cpp:93–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93NTSTATUS 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
101NTSTATUS RegistryKey::SetMultiStringValue(PUNICODE_STRING name, PCWSTR pValue) {
102 PCWSTR pTemp;

Callers 1

InitMiniFilterFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected