summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
92e130d)
- Partial revert of r63700 on Alex's request
- This cancels the "Use ZwSetValueKey" instead of NtSetValueKey" part
Oddly enough, it doesn't cause a problem anymore. I must have messed up in my initial testings
svn path=/trunk/; revision=63705
/* Setup the component information key */
RtlInitUnicodeString(&ValueName, L"Component Information");
/* Setup the component information key */
RtlInitUnicodeString(&ValueName, L"Component Information");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_BINARY,
&ValueName,
0,
REG_BINARY,
if (NT_SUCCESS(Status))
{
/* Save the identifier in the registry */
if (NT_SUCCESS(Status))
{
/* Save the identifier in the registry */
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
CmpConfigurationData->BusNumber = BusNumber;
/* Save the actual data */
CmpConfigurationData->BusNumber = BusNumber;
/* Save the actual data */
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_FULL_RESOURCE_DESCRIPTOR,
&ValueName,
0,
REG_FULL_RESOURCE_DESCRIPTOR,
/* Key opened, now write to the key */
RtlInitUnicodeString(&KeyName, L"SystemStartOptions");
/* Key opened, now write to the key */
RtlInitUnicodeString(&KeyName, L"SystemStartOptions");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
/* Setup value name for system boot device in ARC format */
RtlInitUnicodeString(&KeyName, L"SystemBootDevice");
RtlCreateUnicodeStringFromAsciiz(&ValueName, LoaderBlock->ArcBootDeviceName);
/* Setup value name for system boot device in ARC format */
RtlInitUnicodeString(&KeyName, L"SystemBootDevice");
RtlCreateUnicodeStringFromAsciiz(&ValueName, LoaderBlock->ArcBootDeviceName);
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
OBJ_CASE_INSENSITIVE,
NULL,
NULL);
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 */
if (!NT_SUCCESS(Status))
{
/* ReactOS Hack: Hard-code current to 001 for SetupLdr */
OBJ_CASE_INSENSITIVE,
NULL,
NULL);
OBJ_CASE_INSENSITIVE,
NULL,
NULL);
- Status = ZwCreateKey(&KeyHandle,
+ Status = NtCreateKey(&KeyHandle,
KEY_ALL_ACCESS,
&ObjectAttributes,
0,
NULL,
0,
&Disposition);
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 */
ZwClose(KeyHandle);
/* Use hard-coded setting */
OBJ_CASE_INSENSITIVE,
NULL,
NULL);
OBJ_CASE_INSENSITIVE,
NULL,
NULL);
- Status = ZwCreateKey(&KeyHandle,
+ Status = NtCreateKey(&KeyHandle,
KEY_CREATE_LINK,
&ObjectAttributes,
0,
KEY_CREATE_LINK,
&ObjectAttributes,
0,
Status = RtlAnsiStringToUnicodeString(&KeyName, &TempString, FALSE);
/* Set the value */
Status = RtlAnsiStringToUnicodeString(&KeyName, &TempString, FALSE);
/* Set the value */
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&CmSymbolicLinkValueName,
0,
REG_LINK,
&CmSymbolicLinkValueName,
0,
REG_LINK,
KeyHandle,
NULL);
Status = NtOpenKey(&ConfigHandle, KEY_READ, &ObjectAttributes);
KeyHandle,
NULL);
Status = NtOpenKey(&ConfigHandle, KEY_READ, &ObjectAttributes);
/* Check if we don't have one */
if (!NT_SUCCESS(Status))
/* Check if we don't have one */
if (!NT_SUCCESS(Status))
ASSERT(STATUS_SUCCESS == Status);
/* Set it */
ASSERT(STATUS_SUCCESS == Status);
/* Set it */
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&CmSymbolicLinkValueName,
0,
REG_LINK,
&CmSymbolicLinkValueName,
0,
REG_LINK,
RtlInitUnicodeString(&ValueData,
Buffer);
RtlInitUnicodeString(&ValueData,
Buffer);
- ZwSetValueKey(CurrentVersionKeyHandle,
+ NtSetValueKey(CurrentVersionKeyHandle,
/* Set the value */
RtlInitUnicodeString(&ValueName, L"PhysicalAddressExtension");
/* Set the value */
RtlInitUnicodeString(&ValueName, L"PhysicalAddressExtension");
- ZwSetValueKey(KeyHandle,
+ NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_DWORD,
&ValueName,
0,
REG_DWORD,
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"ProcessorNameString");
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"ProcessorNameString");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"VendorIdentifier");
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"VendorIdentifier");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
{
/* Add them to the registry */
RtlInitUnicodeString(&ValueName, L"FeatureSet");
{
/* Add them to the registry */
RtlInitUnicodeString(&ValueName, L"FeatureSet");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_DWORD,
&ValueName,
0,
REG_DWORD,
{
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"~MHz");
{
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"~MHz");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_DWORD,
&ValueName,
0,
REG_DWORD,
{
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"Update Signature");
{
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"Update Signature");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_BINARY,
&ValueName,
0,
REG_BINARY,
/* Write the date into the registry */
RtlInitUnicodeString(&ValueName, L"SystemBiosDate");
/* Write the date into the registry */
RtlInitUnicodeString(&ValueName, L"SystemBiosDate");
- Status = ZwSetValueKey(SystemHandle,
+ Status = NtSetValueKey(SystemHandle,
if (NT_SUCCESS(Status))
{
/* Save it to the registry */
if (NT_SUCCESS(Status))
{
/* Save it to the registry */
- Status = ZwSetValueKey(BiosHandle,
+ Status = NtSetValueKey(BiosHandle,
/* Write the BIOS Version to the registry */
RtlInitUnicodeString(&ValueName, L"SystemBiosVersion");
/* Write the BIOS Version to the registry */
RtlInitUnicodeString(&ValueName, L"SystemBiosVersion");
- Status = ZwSetValueKey(SystemHandle,
+ Status = NtSetValueKey(SystemHandle,
&ValueName,
0,
REG_MULTI_SZ,
&ValueName,
0,
REG_MULTI_SZ,
/* Write the date into the registry */
RtlInitUnicodeString(&ValueName, L"VideoBiosDate");
/* Write the date into the registry */
RtlInitUnicodeString(&ValueName, L"VideoBiosDate");
- Status = ZwSetValueKey(SystemHandle,
+ Status = NtSetValueKey(SystemHandle,
/* Write the BIOS Version to the registry */
RtlInitUnicodeString(&ValueName, L"VideoBiosVersion");
/* Write the BIOS Version to the registry */
RtlInitUnicodeString(&ValueName, L"VideoBiosVersion");
- Status = ZwSetValueKey(SystemHandle,
+ Status = NtSetValueKey(SystemHandle,
&ValueName,
0,
REG_MULTI_SZ,
&ValueName,
0,
REG_MULTI_SZ,
/* Set the value */
RtlInitUnicodeString(&ValueName, L"PhysicalAddressExtension");
/* Set the value */
RtlInitUnicodeString(&ValueName, L"PhysicalAddressExtension");
- ZwSetValueKey(KeyHandle,
+ NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_DWORD,
&ValueName,
0,
REG_DWORD,
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"ProcessorNameString");
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"ProcessorNameString");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"VendorIdentifier");
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"VendorIdentifier");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
{
/* Add them to the registry */
RtlInitUnicodeString(&ValueName, L"FeatureSet");
{
/* Add them to the registry */
RtlInitUnicodeString(&ValueName, L"FeatureSet");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_DWORD,
&ValueName,
0,
REG_DWORD,
{
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"~MHz");
{
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"~MHz");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_DWORD,
&ValueName,
0,
REG_DWORD,
{
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"Update Signature");
{
/* Add it to the registry */
RtlInitUnicodeString(&ValueName, L"Update Signature");
- Status = ZwSetValueKey(KeyHandle,
+ Status = NtSetValueKey(KeyHandle,
&ValueName,
0,
REG_BINARY,
&ValueName,
0,
REG_BINARY,
/* Write the date into the registry */
RtlInitUnicodeString(&ValueName, L"SystemBiosDate");
/* Write the date into the registry */
RtlInitUnicodeString(&ValueName, L"SystemBiosDate");
- Status = ZwSetValueKey(SystemHandle,
+ Status = NtSetValueKey(SystemHandle,
if (NT_SUCCESS(Status))
{
/* Save it to the registry */
if (NT_SUCCESS(Status))
{
/* Save it to the registry */
- Status = ZwSetValueKey(BiosHandle,
+ Status = NtSetValueKey(BiosHandle,
/* Write the BIOS Version to the registry */
RtlInitUnicodeString(&ValueName, L"SystemBiosVersion");
/* Write the BIOS Version to the registry */
RtlInitUnicodeString(&ValueName, L"SystemBiosVersion");
- Status = ZwSetValueKey(SystemHandle,
+ Status = NtSetValueKey(SystemHandle,
&ValueName,
0,
REG_MULTI_SZ,
&ValueName,
0,
REG_MULTI_SZ,
/* Write the date into the registry */
RtlInitUnicodeString(&ValueName, L"VideoBiosDate");
/* Write the date into the registry */
RtlInitUnicodeString(&ValueName, L"VideoBiosDate");
- Status = ZwSetValueKey(SystemHandle,
+ Status = NtSetValueKey(SystemHandle,
/* Write the BIOS Version to the registry */
RtlInitUnicodeString(&ValueName, L"VideoBiosVersion");
/* Write the BIOS Version to the registry */
RtlInitUnicodeString(&ValueName, L"VideoBiosVersion");
- Status = ZwSetValueKey(SystemHandle,
+ Status = NtSetValueKey(SystemHandle,
&ValueName,
0,
REG_MULTI_SZ,
&ValueName,
0,
REG_MULTI_SZ,
{
/* Write the safe boot type */
RtlInitUnicodeString(&KeyName, L"OptionValue");
{
/* Write the safe boot type */
RtlInitUnicodeString(&KeyName, L"OptionValue");
- ZwSetValueKey(OptionHandle,
+ NtSetValueKey(OptionHandle,
/* Remember this for later */
Disposition = TRUE;
RtlInitUnicodeString(&KeyName, L"UseAlternateShell");
/* Remember this for later */
Disposition = TRUE;
RtlInitUnicodeString(&KeyName, L"UseAlternateShell");
- ZwSetValueKey(OptionHandle,
+ NtSetValueKey(OptionHandle,
if (!NT_SUCCESS(Status))
{
if (!NT_SUCCESS(Status))
{
- DPRINT1("ZwSetValueKey() failed (Status %lx)\n", Status);
+ DPRINT1("NtSetValueKey() failed (Status %lx)\n", Status);