mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:32:57 +00:00
- Don't build the HARDWARE hive in FreeLDR anymore.
svn path=/trunk/; revision=31145
This commit is contained in:
parent
afa05f7c36
commit
2ebd2df13f
2 changed files with 2 additions and 83 deletions
|
@ -47,27 +47,14 @@ FldrSetComponentInformation(IN PCONFIGURATION_COMPONENT_DATA ComponentData,
|
||||||
IN ULONG Key,
|
IN ULONG Key,
|
||||||
IN ULONG Affinity)
|
IN ULONG Affinity)
|
||||||
{
|
{
|
||||||
LONG Error;
|
|
||||||
PCONFIGURATION_COMPONENT Component = &ComponentData->ComponentEntry;
|
PCONFIGURATION_COMPONENT Component = &ComponentData->ComponentEntry;
|
||||||
|
|
||||||
/* Set component information */
|
/* Set component information */
|
||||||
Component->Flags = Flags;
|
Component->Flags = Flags;
|
||||||
Component->Version = 0;
|
Component->Version = 0;
|
||||||
Component->Revision = 0;
|
Component->Revision = 0;
|
||||||
//Component->Key = Key; // HACK: We store the registry key here
|
Component->Key = Key;
|
||||||
Component->AffinityMask = Affinity;
|
Component->AffinityMask = Affinity;
|
||||||
|
|
||||||
/* Set the value */
|
|
||||||
Error = RegSetValue((FRLDRHKEY)Component->Key,
|
|
||||||
L"Component Information",
|
|
||||||
REG_BINARY,
|
|
||||||
(PVOID)&Component->Flags,
|
|
||||||
FIELD_OFFSET(CONFIGURATION_COMPONENT, ConfigurationDataLength) -
|
|
||||||
FIELD_OFFSET(CONFIGURATION_COMPONENT, Flags));
|
|
||||||
if (Error != ERROR_SUCCESS)
|
|
||||||
{
|
|
||||||
DbgPrint((DPRINT_HWDETECT, "RegSetValue() failed (Error %u)\n", Error));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
@ -75,7 +62,6 @@ NTAPI
|
||||||
FldrSetIdentifier(IN PCONFIGURATION_COMPONENT_DATA ComponentData,
|
FldrSetIdentifier(IN PCONFIGURATION_COMPONENT_DATA ComponentData,
|
||||||
IN PWCHAR IdentifierString)
|
IN PWCHAR IdentifierString)
|
||||||
{
|
{
|
||||||
LONG Error;
|
|
||||||
ULONG IdentifierLength;
|
ULONG IdentifierLength;
|
||||||
PCONFIGURATION_COMPONENT Component = &ComponentData->ComponentEntry;
|
PCONFIGURATION_COMPONENT Component = &ComponentData->ComponentEntry;
|
||||||
PCHAR Identifier;
|
PCHAR Identifier;
|
||||||
|
@ -92,25 +78,12 @@ FldrSetIdentifier(IN PCONFIGURATION_COMPONENT_DATA ComponentData,
|
||||||
/* Set component information */
|
/* Set component information */
|
||||||
Component->IdentifierLength = IdentifierLength;
|
Component->IdentifierLength = IdentifierLength;
|
||||||
Component->Identifier = Identifier;
|
Component->Identifier = Identifier;
|
||||||
|
|
||||||
/* Set the key */
|
|
||||||
Error = RegSetValue((FRLDRHKEY)Component->Key,
|
|
||||||
L"Identifier",
|
|
||||||
REG_SZ,
|
|
||||||
(PCHAR)IdentifierString,
|
|
||||||
IdentifierLength);
|
|
||||||
if (Error != ERROR_SUCCESS)
|
|
||||||
{
|
|
||||||
DbgPrint((DPRINT_HWDETECT, "RegSetValue() failed (Error %u)\n", Error));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
FldrCreateSystemKey(OUT PCONFIGURATION_COMPONENT_DATA *SystemNode)
|
FldrCreateSystemKey(OUT PCONFIGURATION_COMPONENT_DATA *SystemNode)
|
||||||
{
|
{
|
||||||
LONG Error;
|
|
||||||
PCONFIGURATION_COMPONENT Component;
|
PCONFIGURATION_COMPONENT Component;
|
||||||
|
|
||||||
/* Allocate the root */
|
/* Allocate the root */
|
||||||
|
@ -127,16 +100,6 @@ FldrCreateSystemKey(OUT PCONFIGURATION_COMPONENT_DATA *SystemNode)
|
||||||
|
|
||||||
/* Return the node */
|
/* Return the node */
|
||||||
*SystemNode = FldrArcHwTreeRoot;
|
*SystemNode = FldrArcHwTreeRoot;
|
||||||
|
|
||||||
/* Create the key */
|
|
||||||
Error = RegCreateKey(NULL,
|
|
||||||
L"\\Registry\\Machine\\HARDWARE\\DESCRIPTION\\System",
|
|
||||||
(FRLDRHKEY*)&Component->Key);
|
|
||||||
if (Error != ERROR_SUCCESS)
|
|
||||||
{
|
|
||||||
DbgPrint((DPRINT_HWDETECT, "RegCreateKey() failed (Error %u)\n", Error));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
@ -178,8 +141,6 @@ FldrCreateComponentKey(IN PCONFIGURATION_COMPONENT_DATA SystemNode,
|
||||||
IN CONFIGURATION_TYPE Type,
|
IN CONFIGURATION_TYPE Type,
|
||||||
OUT PCONFIGURATION_COMPONENT_DATA *ComponentKey)
|
OUT PCONFIGURATION_COMPONENT_DATA *ComponentKey)
|
||||||
{
|
{
|
||||||
LONG Error;
|
|
||||||
WCHAR Buffer[80];
|
|
||||||
PCONFIGURATION_COMPONENT_DATA ComponentData;
|
PCONFIGURATION_COMPONENT_DATA ComponentData;
|
||||||
PCONFIGURATION_COMPONENT Component;
|
PCONFIGURATION_COMPONENT Component;
|
||||||
|
|
||||||
|
@ -200,19 +161,6 @@ FldrCreateComponentKey(IN PCONFIGURATION_COMPONENT_DATA SystemNode,
|
||||||
|
|
||||||
/* Return the child */
|
/* Return the child */
|
||||||
*ComponentKey = ComponentData;
|
*ComponentKey = ComponentData;
|
||||||
|
|
||||||
/* Build the key name */
|
|
||||||
swprintf(Buffer, L"%s\\%u", BusName, BusNumber);
|
|
||||||
|
|
||||||
/* Create the key */
|
|
||||||
Error = RegCreateKey((FRLDRHKEY)SystemNode->ComponentEntry.Key,
|
|
||||||
Buffer,
|
|
||||||
(FRLDRHKEY*)&Component->Key);
|
|
||||||
if (Error != ERROR_SUCCESS)
|
|
||||||
{
|
|
||||||
DbgPrint((DPRINT_HWDETECT, "RegCreateKey() failed (Error %u)\n", Error));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
@ -221,7 +169,6 @@ FldrSetConfigurationData(IN PCONFIGURATION_COMPONENT_DATA ComponentData,
|
||||||
IN PCM_FULL_RESOURCE_DESCRIPTOR Data,
|
IN PCM_FULL_RESOURCE_DESCRIPTOR Data,
|
||||||
IN ULONG Size)
|
IN ULONG Size)
|
||||||
{
|
{
|
||||||
LONG Error;
|
|
||||||
PCONFIGURATION_COMPONENT Component = &ComponentData->ComponentEntry;
|
PCONFIGURATION_COMPONENT Component = &ComponentData->ComponentEntry;
|
||||||
PVOID ConfigurationData;
|
PVOID ConfigurationData;
|
||||||
|
|
||||||
|
@ -237,17 +184,4 @@ FldrSetConfigurationData(IN PCONFIGURATION_COMPONENT_DATA ComponentData,
|
||||||
Component->ConfigurationDataLength = Size -
|
Component->ConfigurationDataLength = Size -
|
||||||
FIELD_OFFSET(CM_FULL_RESOURCE_DESCRIPTOR,
|
FIELD_OFFSET(CM_FULL_RESOURCE_DESCRIPTOR,
|
||||||
PartialResourceList);
|
PartialResourceList);
|
||||||
|
|
||||||
/* Set 'Configuration Data' value */
|
|
||||||
Error = RegSetValue((FRLDRHKEY)Component->Key,
|
|
||||||
L"Configuration Data",
|
|
||||||
REG_FULL_RESOURCE_DESCRIPTOR,
|
|
||||||
(PVOID)Data,
|
|
||||||
Size);
|
|
||||||
if (Error != ERROR_SUCCESS)
|
|
||||||
{
|
|
||||||
DbgPrint((DPRINT_HWDETECT,
|
|
||||||
"RegSetValue(Configuration Data) failed (Error %u)\n",
|
|
||||||
Error));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,21 +54,6 @@ RegInitializeRegistry (VOID)
|
||||||
RegCreateKey (RootKey,
|
RegCreateKey (RootKey,
|
||||||
L"Registry\\Machine\\HARDWARE",
|
L"Registry\\Machine\\HARDWARE",
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
/* Create 'HARDWARE\DESCRIPTION' key */
|
|
||||||
RegCreateKey (RootKey,
|
|
||||||
L"Registry\\Machine\\HARDWARE\\DESCRIPTION",
|
|
||||||
NULL);
|
|
||||||
|
|
||||||
/* Create 'HARDWARE\DEVICEMAP' key */
|
|
||||||
RegCreateKey (RootKey,
|
|
||||||
L"Registry\\Machine\\HARDWARE\\DEVICEMAP",
|
|
||||||
NULL);
|
|
||||||
|
|
||||||
/* Create 'HARDWARE\RESOURCEMAP' key */
|
|
||||||
RegCreateKey (RootKey,
|
|
||||||
L"Registry\\Machine\\HARDWARE\\RESOURCEMAP",
|
|
||||||
NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue