Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 629 of file registry.c.
{ HANDLE KeyHandle; NTSTATUS Status; UNICODE_STRING Name; PAGED_CODE_RTL(); /* Call the helper */ Status = RtlpGetRegistryHandle(RelativeTo, Path, TRUE, &KeyHandle); if (!NT_SUCCESS(Status)) return Status; /* Initialize the key name and set it */ RtlInitUnicodeString(&Name, ValueName); Status = ZwSetValueKey(KeyHandle, &Name, 0, ValueType, ValueData, ValueLength); /* All went well, close the handle and return status */ ZwClose(KeyHandle); return Status; }