You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
209 lines
7.6 KiB
209 lines
7.6 KiB
/*++
|
|
|
|
Copyright (c) 1990, 1991 Microsoft Corporation
|
|
|
|
|
|
Module Name:
|
|
|
|
cmdatini.c
|
|
|
|
Abstract:
|
|
|
|
contains code to init static STRING structures for registry name space.
|
|
|
|
Author:
|
|
|
|
Andre Vachon (andreva) 08-Apr-1992
|
|
|
|
|
|
Environment:
|
|
|
|
Kernel mode.
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#include "cmp.h"
|
|
|
|
#ifdef ALLOC_PRAGMA
|
|
#pragma alloc_text(INIT,CmpInitializeRegistryNames)
|
|
#endif
|
|
|
|
extern UNICODE_STRING CmRegistryRootName;
|
|
extern UNICODE_STRING CmRegistryMachineName;
|
|
extern UNICODE_STRING CmRegistryMachineHardwareName;
|
|
extern UNICODE_STRING CmRegistryMachineHardwareDescriptionName;
|
|
extern UNICODE_STRING CmRegistryMachineHardwareDescriptionSystemName;
|
|
extern UNICODE_STRING CmRegistryMachineHardwareDeviceMapName;
|
|
extern UNICODE_STRING CmRegistryMachineHardwareResourceMapName;
|
|
extern UNICODE_STRING CmRegistryMachineHardwareOwnerMapName;
|
|
extern UNICODE_STRING CmRegistryMachineSystemName;
|
|
extern UNICODE_STRING CmRegistryMachineSystemCurrentControlSet;
|
|
extern UNICODE_STRING CmRegistryUserName;
|
|
extern UNICODE_STRING CmRegistrySystemCloneName;
|
|
extern UNICODE_STRING CmpSystemFileName;
|
|
extern UNICODE_STRING CmRegistryMachineSystemCurrentControlSetEnumName;
|
|
extern UNICODE_STRING CmRegistryMachineSystemCurrentControlSetEnumRootName;
|
|
extern UNICODE_STRING CmRegistryMachineSystemCurrentControlSetServices;
|
|
extern UNICODE_STRING CmRegistryMachineSystemCurrentControlSetHardwareProfilesCurrent;
|
|
extern UNICODE_STRING CmRegistryMachineSystemCurrentControlSetControlClass;
|
|
extern UNICODE_STRING CmSymbolicLinkValueName;
|
|
|
|
#ifdef _WANT_MACHINE_IDENTIFICATION
|
|
extern UNICODE_STRING CmRegistryMachineSystemCurrentControlSetControlBiosInfo;
|
|
#endif
|
|
|
|
extern const PWCHAR CmpRegistryRootString;
|
|
extern const PWCHAR CmpRegistryMachineString;
|
|
extern const PWCHAR CmpRegistryMachineHardwareString;
|
|
extern const PWCHAR CmpRegistryMachineHardwareDescriptionString;
|
|
extern const PWCHAR CmpRegistryMachineHardwareDescriptionSystemString;
|
|
extern const PWCHAR CmpRegistryMachineHardwareDeviceMapString;
|
|
extern const PWCHAR CmpRegistryMachineHardwareResourceMapString;
|
|
extern const PWCHAR CmpRegistryMachineHardwareOwnerMapString;
|
|
extern const PWCHAR CmpRegistryMachineSystemString;
|
|
extern const PWCHAR CmpRegistryMachineSystemCurrentControlSetString;
|
|
extern const PWCHAR CmpRegistryUserString;
|
|
extern const PWCHAR CmpRegistrySystemCloneString;
|
|
extern const PWCHAR CmpRegistrySystemFileNameString;
|
|
extern const PWCHAR CmpRegistryMachineSystemCurrentControlSetEnumString;
|
|
extern const PWCHAR CmpRegistryMachineSystemCurrentControlSetEnumRootString;
|
|
extern const PWCHAR CmpRegistryMachineSystemCurrentControlSetServicesString;
|
|
extern const PWCHAR CmpRegistryMachineSystemCurrentControlSetHardwareProfilesCurrentString;
|
|
extern const PWCHAR CmpRegistryMachineSystemCurrentControlSetControlClassString;
|
|
extern const PWCHAR CmpRegistryMachineSystemCurrentControlSetControlSafeBootString;
|
|
extern const PWCHAR CmpRegistryMachineSystemCurrentControlSetControlSessionManagerMemoryManagementString;
|
|
|
|
extern const PWCHAR CmpRegistryMachineSystemCurrentControlSetControlBootLogString;
|
|
extern const PWCHAR CmpRegistryMachineSystemCurrentControlSetServicesEventLogString;
|
|
extern const PWCHAR CmpSymbolicLinkValueName;
|
|
|
|
#ifdef _WANT_MACHINE_IDENTIFICATION
|
|
extern const PWCHAR CmpRegistryMachineSystemCurrentControlSetControlBiosInfoString;
|
|
#endif
|
|
|
|
|
|
|
|
VOID
|
|
CmpInitializeRegistryNames(
|
|
VOID
|
|
)
|
|
|
|
/*++
|
|
|
|
Routine Description:
|
|
|
|
This routine creates all the Unicode strings for the various names used
|
|
in and by the registry
|
|
|
|
Arguments:
|
|
|
|
None.
|
|
|
|
Returns:
|
|
|
|
None.
|
|
|
|
--*/
|
|
{
|
|
ULONG i;
|
|
|
|
RtlInitUnicodeString( &CmRegistryRootName,
|
|
CmpRegistryRootString );
|
|
|
|
RtlInitUnicodeString( &CmRegistryMachineName,
|
|
CmpRegistryMachineString );
|
|
|
|
RtlInitUnicodeString( &CmRegistryMachineHardwareName,
|
|
CmpRegistryMachineHardwareString );
|
|
|
|
RtlInitUnicodeString( &CmRegistryMachineHardwareDescriptionName,
|
|
CmpRegistryMachineHardwareDescriptionString );
|
|
|
|
RtlInitUnicodeString( &CmRegistryMachineHardwareDescriptionSystemName,
|
|
CmpRegistryMachineHardwareDescriptionSystemString );
|
|
|
|
RtlInitUnicodeString( &CmRegistryMachineHardwareDeviceMapName,
|
|
CmpRegistryMachineHardwareDeviceMapString );
|
|
|
|
RtlInitUnicodeString( &CmRegistryMachineHardwareResourceMapName,
|
|
CmpRegistryMachineHardwareResourceMapString );
|
|
|
|
RtlInitUnicodeString( &CmRegistryMachineHardwareOwnerMapName,
|
|
CmpRegistryMachineHardwareOwnerMapString );
|
|
|
|
RtlInitUnicodeString( &CmRegistryMachineSystemName,
|
|
CmpRegistryMachineSystemString );
|
|
|
|
RtlInitUnicodeString( &CmRegistryMachineSystemCurrentControlSet,
|
|
CmpRegistryMachineSystemCurrentControlSetString);
|
|
|
|
RtlInitUnicodeString( &CmRegistryUserName,
|
|
CmpRegistryUserString );
|
|
|
|
RtlInitUnicodeString( &CmRegistrySystemCloneName,
|
|
CmpRegistrySystemCloneString );
|
|
|
|
RtlInitUnicodeString( &CmpSystemFileName,
|
|
CmpRegistrySystemFileNameString );
|
|
|
|
RtlInitUnicodeString( &CmRegistryMachineSystemCurrentControlSetEnumName,
|
|
CmpRegistryMachineSystemCurrentControlSetEnumString);
|
|
|
|
RtlInitUnicodeString( &CmRegistryMachineSystemCurrentControlSetEnumRootName,
|
|
CmpRegistryMachineSystemCurrentControlSetEnumRootString);
|
|
|
|
RtlInitUnicodeString( &CmRegistryMachineSystemCurrentControlSetServices,
|
|
CmpRegistryMachineSystemCurrentControlSetServicesString);
|
|
|
|
RtlInitUnicodeString( &CmRegistryMachineSystemCurrentControlSetHardwareProfilesCurrent,
|
|
CmpRegistryMachineSystemCurrentControlSetHardwareProfilesCurrentString);
|
|
|
|
RtlInitUnicodeString( &CmRegistryMachineSystemCurrentControlSetControlClass,
|
|
CmpRegistryMachineSystemCurrentControlSetControlClassString);
|
|
|
|
RtlInitUnicodeString( &CmRegistryMachineSystemCurrentControlSetControlSafeBoot,
|
|
CmpRegistryMachineSystemCurrentControlSetControlSafeBootString);
|
|
|
|
RtlInitUnicodeString( &CmRegistryMachineSystemCurrentControlSetControlSessionManagerMemoryManagement,
|
|
CmpRegistryMachineSystemCurrentControlSetControlSessionManagerMemoryManagementString);
|
|
|
|
RtlInitUnicodeString( &CmRegistryMachineSystemCurrentControlSetControlBootLog,
|
|
CmpRegistryMachineSystemCurrentControlSetControlBootLogString);
|
|
|
|
RtlInitUnicodeString( &CmRegistryMachineSystemCurrentControlSetServicesEventLog,
|
|
CmpRegistryMachineSystemCurrentControlSetServicesEventLogString);
|
|
|
|
RtlInitUnicodeString( &CmSymbolicLinkValueName,
|
|
CmpSymbolicLinkValueName);
|
|
|
|
#ifdef _WANT_MACHINE_IDENTIFICATION
|
|
RtlInitUnicodeString( &CmRegistryMachineSystemCurrentControlSetControlBiosInfo,
|
|
CmpRegistryMachineSystemCurrentControlSetControlBiosInfoString);
|
|
#endif
|
|
|
|
//
|
|
// Initialize the type names for the hardware tree.
|
|
//
|
|
|
|
for (i = 0; i <= MaximumType; i++) {
|
|
|
|
RtlInitUnicodeString( &(CmTypeName[i]),
|
|
CmTypeString[i] );
|
|
|
|
}
|
|
|
|
//
|
|
// Initialize the class names for the hardware tree.
|
|
//
|
|
|
|
for (i = 0; i <= MaximumClass; i++) {
|
|
|
|
RtlInitUnicodeString( &(CmClassName[i]),
|
|
CmClassString[i] );
|
|
|
|
}
|
|
|
|
return;
|
|
}
|