Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 506 of file database.c.
Referenced by LsapCreateDatabaseObjects(), LsarAddPrivilegesToAccount(), LsarCreateAccount(), LsarOpenAccount(), LsarSetAccountDomain(), and LsarSetPrimaryDomain().
{ OBJECT_ATTRIBUTES ObjectAttributes; UNICODE_STRING KeyName; HANDLE AttributeKey; NTSTATUS Status; RtlInitUnicodeString(&KeyName, AttributeName); InitializeObjectAttributes(&ObjectAttributes, &KeyName, OBJ_CASE_INSENSITIVE, DbObject->KeyHandle, NULL); Status = NtCreateKey(&AttributeKey, KEY_SET_VALUE, &ObjectAttributes, 0, NULL, REG_OPTION_NON_VOLATILE, NULL); if (!NT_SUCCESS(Status)) { return Status; } Status = RtlpNtSetValueKey(AttributeKey, REG_NONE, AttributeData, AttributeSize); NtClose(AttributeKey); return Status; }