/* Setup the component information key */
RtlInitUnicodeString(&ValueName, L"Component Information");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_BINARY,
if (NT_SUCCESS(Status))
{
/* Save the identifier in the registry */
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_SZ,
CmpConfigurationData->BusNumber = BusNumber;
/* Save the actual data */
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_FULL_RESOURCE_DESCRIPTOR,
/* Key opened, now write to the key */
RtlInitUnicodeString(&KeyName, L"SystemStartOptions");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&KeyName,
0,
REG_SZ,
/* Setup value name for system boot device in ARC format */
RtlInitUnicodeString(&KeyName, L"SystemBootDevice");
RtlCreateUnicodeStringFromAsciiz(&ValueName, LoaderBlock->ArcBootDeviceName);
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&KeyName,
0,
REG_SZ,
OBJ_CASE_INSENSITIVE,
NULL,
NULL);
- Status = ZwOpenKey(&SelectHandle, KEY_READ, &ObjectAttributes);
+ Status = NtOpenKey(&SelectHandle, KEY_READ, &ObjectAttributes);
if (!NT_SUCCESS(Status))
{
/* ReactOS Hack: Hard-code current to 001 for SetupLdr */
OBJ_CASE_INSENSITIVE,
NULL,
NULL);
- Status = ZwCreateKey(&KeyHandle,
+ Status = NtCreateKey(&KeyHandle,
KEY_ALL_ACCESS,
&ObjectAttributes,
0,
NULL,
0,
&Disposition);
- if (!NT_SUCCESS(Status))
- return Status;
+ if (!NT_SUCCESS(Status)) return Status;
- /* We don't need the handle */
+ /* Don't need the handle */
ZwClose(KeyHandle);
/* Use hard-coded setting */
OBJ_CASE_INSENSITIVE,
NULL,
NULL);
- Status = ZwCreateKey(&KeyHandle,
+ Status = NtCreateKey(&KeyHandle,
KEY_CREATE_LINK,
&ObjectAttributes,
0,
Status = RtlAnsiStringToUnicodeString(&KeyName, &TempString, FALSE);
/* Set the value */
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&CmSymbolicLinkValueName,
0,
REG_LINK,
KeyHandle,
NULL);
Status = NtOpenKey(&ConfigHandle, KEY_READ, &ObjectAttributes);
- ZwClose(KeyHandle);
+ NtClose(KeyHandle);
/* Check if we don't have one */
if (!NT_SUCCESS(Status))
ASSERT(STATUS_SUCCESS == Status);
/* Set it */
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&CmSymbolicLinkValueName,
0,
REG_LINK,
RtlInitUnicodeString(&ValueData,
Buffer);
- ZwSetValueKey(CurrentVersionKeyHandle,
+ NtSetValueKey(CurrentVersionKeyHandle,
&ValueName,
0,
REG_SZ,
/* Set the value */
RtlInitUnicodeString(&ValueName, L"PhysicalAddressExtension");
- ZwSetValueKey(KeyHandle,
+ NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_DWORD,
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"ProcessorNameString");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_SZ,
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"VendorIdentifier");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_SZ,
{
/* Add them to the registry */
RtlInitUnicodeString(&ValueName, L"FeatureSet");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_DWORD,
{
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"~MHz");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_DWORD,
{
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"Update Signature");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_BINARY,
/* Write the date into the registry */
RtlInitUnicodeString(&ValueName, L"SystemBiosDate");
- Status = ZwSetValueKey(SystemHandle,
+ Status = NtSetValueKey(SystemHandle,
&ValueName,
0,
REG_SZ,
if (NT_SUCCESS(Status))
{
/* Save it to the registry */
- Status = ZwSetValueKey(BiosHandle,
+ Status = NtSetValueKey(BiosHandle,
&ValueName,
0,
REG_SZ,
/* Write the BIOS Version to the registry */
RtlInitUnicodeString(&ValueName, L"SystemBiosVersion");
- Status = ZwSetValueKey(SystemHandle,
+ Status = NtSetValueKey(SystemHandle,
&ValueName,
0,
REG_MULTI_SZ,
/* Write the date into the registry */
RtlInitUnicodeString(&ValueName, L"VideoBiosDate");
- Status = ZwSetValueKey(SystemHandle,
+ Status = NtSetValueKey(SystemHandle,
&ValueName,
0,
REG_SZ,
/* Write the BIOS Version to the registry */
RtlInitUnicodeString(&ValueName, L"VideoBiosVersion");
- Status = ZwSetValueKey(SystemHandle,
+ Status = NtSetValueKey(SystemHandle,
&ValueName,
0,
REG_MULTI_SZ,
/* Set the value */
RtlInitUnicodeString(&ValueName, L"PhysicalAddressExtension");
- ZwSetValueKey(KeyHandle,
+ NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_DWORD,
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"ProcessorNameString");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_SZ,
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"VendorIdentifier");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_SZ,
{
/* Add them to the registry */
RtlInitUnicodeString(&ValueName, L"FeatureSet");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_DWORD,
{
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"~MHz");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_DWORD,
{
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"Update Signature");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_BINARY,
/* Write the date into the registry */
RtlInitUnicodeString(&ValueName, L"SystemBiosDate");
- Status = ZwSetValueKey(SystemHandle,
+ Status = NtSetValueKey(SystemHandle,
&ValueName,
0,
REG_SZ,
if (NT_SUCCESS(Status))
{
/* Save it to the registry */
- Status = ZwSetValueKey(BiosHandle,
+ Status = NtSetValueKey(BiosHandle,
&ValueName,
0,
REG_SZ,
/* Write the BIOS Version to the registry */
RtlInitUnicodeString(&ValueName, L"SystemBiosVersion");
- Status = ZwSetValueKey(SystemHandle,
+ Status = NtSetValueKey(SystemHandle,
&ValueName,
0,
REG_MULTI_SZ,
/* Write the date into the registry */
RtlInitUnicodeString(&ValueName, L"VideoBiosDate");
- Status = ZwSetValueKey(SystemHandle,
+ Status = NtSetValueKey(SystemHandle,
&ValueName,
0,
REG_SZ,
/* Write the BIOS Version to the registry */
RtlInitUnicodeString(&ValueName, L"VideoBiosVersion");
- Status = ZwSetValueKey(SystemHandle,
+ Status = NtSetValueKey(SystemHandle,
&ValueName,
0,
REG_MULTI_SZ,
{
/* Write the safe boot type */
RtlInitUnicodeString(&KeyName, L"OptionValue");
- ZwSetValueKey(OptionHandle,
+ NtSetValueKey(OptionHandle,
&KeyName,
0,
REG_DWORD,
/* Remember this for later */
Disposition = TRUE;
RtlInitUnicodeString(&KeyName, L"UseAlternateShell");
- ZwSetValueKey(OptionHandle,
+ NtSetValueKey(OptionHandle,
&KeyName,
0,
REG_DWORD,
if (!NT_SUCCESS(Status))
{
- DPRINT1("ZwSetValueKey() failed (Status %lx)\n", Status);
+ DPRINT1("NtSetValueKey() failed (Status %lx)\n", Status);
}
else
{