cmdatini.c
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
#include "cmp.h"
00028
00029
#ifdef ALLOC_PRAGMA
00030
#pragma alloc_text(INIT,CmpInitializeRegistryNames)
00031
#endif
00032
00033 extern UNICODE_STRING
CmRegistryRootName;
00034 extern UNICODE_STRING
CmRegistryMachineName;
00035 extern UNICODE_STRING
CmRegistryMachineHardwareName;
00036 extern UNICODE_STRING
CmRegistryMachineHardwareDescriptionName;
00037 extern UNICODE_STRING
CmRegistryMachineHardwareDescriptionSystemName;
00038 extern UNICODE_STRING
CmRegistryMachineHardwareDeviceMapName;
00039 extern UNICODE_STRING
CmRegistryMachineHardwareResourceMapName;
00040 extern UNICODE_STRING
CmRegistryMachineHardwareOwnerMapName;
00041 extern UNICODE_STRING
CmRegistryMachineSystemName;
00042 extern UNICODE_STRING
CmRegistryMachineSystemCurrentControlSet;
00043 extern UNICODE_STRING
CmRegistryUserName;
00044 extern UNICODE_STRING
CmRegistrySystemCloneName;
00045 extern UNICODE_STRING
CmpSystemFileName;
00046 extern UNICODE_STRING
CmRegistryMachineSystemCurrentControlSetEnumName;
00047 extern UNICODE_STRING
CmRegistryMachineSystemCurrentControlSetEnumRootName;
00048 extern UNICODE_STRING
CmRegistryMachineSystemCurrentControlSetServices;
00049 extern UNICODE_STRING
CmRegistryMachineSystemCurrentControlSetHardwareProfilesCurrent;
00050 extern UNICODE_STRING
CmRegistryMachineSystemCurrentControlSetControlClass;
00051 extern UNICODE_STRING
CmSymbolicLinkValueName;
00052
00053
#ifdef _WANT_MACHINE_IDENTIFICATION
00054
extern UNICODE_STRING CmRegistryMachineSystemCurrentControlSetControlBiosInfo;
00055
#endif
00056
00057 extern PWCHAR
CmpRegistryRootString;
00058 extern PWCHAR
CmpRegistryMachineString;
00059 extern PWCHAR
CmpRegistryMachineHardwareString;
00060 extern PWCHAR
CmpRegistryMachineHardwareDescriptionString;
00061 extern PWCHAR
CmpRegistryMachineHardwareDescriptionSystemString;
00062 extern PWCHAR
CmpRegistryMachineHardwareDeviceMapString;
00063 extern PWCHAR
CmpRegistryMachineHardwareResourceMapString;
00064 extern PWCHAR
CmpRegistryMachineHardwareOwnerMapString;
00065 extern PWCHAR
CmpRegistryMachineSystemString;
00066 extern PWCHAR
CmpRegistryMachineSystemCurrentControlSetString;
00067 extern PWCHAR
CmpRegistryUserString;
00068 extern PWCHAR
CmpRegistrySystemCloneString;
00069 extern PWCHAR
CmpRegistrySystemFileNameString;
00070 extern PWCHAR
CmpRegistryMachineSystemCurrentControlSetEnumString;
00071 extern PWCHAR
CmpRegistryMachineSystemCurrentControlSetEnumRootString;
00072 extern PWCHAR
CmpRegistryMachineSystemCurrentControlSetServicesString;
00073 extern PWCHAR
CmpRegistryMachineSystemCurrentControlSetHardwareProfilesCurrentString;
00074 extern PWCHAR
CmpRegistryMachineSystemCurrentControlSetControlClassString;
00075 extern PWCHAR
CmpRegistryMachineSystemCurrentControlSetControlSafeBootString;
00076 extern PWCHAR
CmpRegistryMachineSystemCurrentControlSetControlSessionManagerMemoryManagementString;
00077
00078 extern PWCHAR
CmpRegistryMachineSystemCurrentControlSetControlBootLogString;
00079 extern PWCHAR
CmpRegistryMachineSystemCurrentControlSetServicesEventLogString;
00080 extern PWCHAR
CmpSymbolicLinkValueName;
00081
00082
#ifdef _WANT_MACHINE_IDENTIFICATION
00083
extern PWCHAR CmpRegistryMachineSystemCurrentControlSetControlBiosInfoString;
00084
#endif
00085
00086
00087
00088
VOID
00089 CmpInitializeRegistryNames(
00090 VOID
00091 )
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109 {
00110 ULONG i;
00111
00112
RtlInitUnicodeString( &
CmRegistryRootName,
00113
CmpRegistryRootString );
00114
00115
RtlInitUnicodeString( &
CmRegistryMachineName,
00116
CmpRegistryMachineString );
00117
00118
RtlInitUnicodeString( &
CmRegistryMachineHardwareName,
00119
CmpRegistryMachineHardwareString );
00120
00121
RtlInitUnicodeString( &
CmRegistryMachineHardwareDescriptionName,
00122
CmpRegistryMachineHardwareDescriptionString );
00123
00124
RtlInitUnicodeString( &
CmRegistryMachineHardwareDescriptionSystemName,
00125
CmpRegistryMachineHardwareDescriptionSystemString );
00126
00127
RtlInitUnicodeString( &
CmRegistryMachineHardwareDeviceMapName,
00128
CmpRegistryMachineHardwareDeviceMapString );
00129
00130
RtlInitUnicodeString( &
CmRegistryMachineHardwareResourceMapName,
00131
CmpRegistryMachineHardwareResourceMapString );
00132
00133
RtlInitUnicodeString( &
CmRegistryMachineHardwareOwnerMapName,
00134
CmpRegistryMachineHardwareOwnerMapString );
00135
00136
RtlInitUnicodeString( &
CmRegistryMachineSystemName,
00137
CmpRegistryMachineSystemString );
00138
00139
RtlInitUnicodeString( &
CmRegistryMachineSystemCurrentControlSet,
00140
CmpRegistryMachineSystemCurrentControlSetString);
00141
00142
RtlInitUnicodeString( &
CmRegistryUserName,
00143
CmpRegistryUserString );
00144
00145
RtlInitUnicodeString( &
CmRegistrySystemCloneName,
00146
CmpRegistrySystemCloneString );
00147
00148
RtlInitUnicodeString( &
CmpSystemFileName,
00149
CmpRegistrySystemFileNameString );
00150
00151
RtlInitUnicodeString( &
CmRegistryMachineSystemCurrentControlSetEnumName,
00152
CmpRegistryMachineSystemCurrentControlSetEnumString);
00153
00154
RtlInitUnicodeString( &
CmRegistryMachineSystemCurrentControlSetEnumRootName,
00155
CmpRegistryMachineSystemCurrentControlSetEnumRootString);
00156
00157
RtlInitUnicodeString( &
CmRegistryMachineSystemCurrentControlSetServices,
00158
CmpRegistryMachineSystemCurrentControlSetServicesString);
00159
00160
RtlInitUnicodeString( &
CmRegistryMachineSystemCurrentControlSetHardwareProfilesCurrent,
00161
CmpRegistryMachineSystemCurrentControlSetHardwareProfilesCurrentString);
00162
00163
RtlInitUnicodeString( &
CmRegistryMachineSystemCurrentControlSetControlClass,
00164
CmpRegistryMachineSystemCurrentControlSetControlClassString);
00165
00166
RtlInitUnicodeString( &
CmRegistryMachineSystemCurrentControlSetControlSafeBoot,
00167
CmpRegistryMachineSystemCurrentControlSetControlSafeBootString);
00168
00169
RtlInitUnicodeString( &
CmRegistryMachineSystemCurrentControlSetControlSessionManagerMemoryManagement,
00170
CmpRegistryMachineSystemCurrentControlSetControlSessionManagerMemoryManagementString);
00171
00172
RtlInitUnicodeString( &
CmRegistryMachineSystemCurrentControlSetControlBootLog,
00173
CmpRegistryMachineSystemCurrentControlSetControlBootLogString);
00174
00175
RtlInitUnicodeString( &
CmRegistryMachineSystemCurrentControlSetServicesEventLog,
00176
CmpRegistryMachineSystemCurrentControlSetServicesEventLogString);
00177
00178
RtlInitUnicodeString( &
CmSymbolicLinkValueName,
00179
CmpSymbolicLinkValueName);
00180
00181
#ifdef _WANT_MACHINE_IDENTIFICATION
00182
RtlInitUnicodeString( &CmRegistryMachineSystemCurrentControlSetControlBiosInfo,
00183 CmpRegistryMachineSystemCurrentControlSetControlBiosInfoString);
00184
#endif
00185
00186
00187
00188
00189
00190
for (i = 0; i <=
MaximumType; i++) {
00191
00192
RtlInitUnicodeString( &(
CmTypeName[i]),
00193
CmTypeString[i] );
00194
00195 }
00196
00197
00198
00199
00200
00201
for (i = 0; i <=
MaximumClass; i++) {
00202
00203
RtlInitUnicodeString( &(
CmClassName[i]),
00204
CmClassString[i] );
00205
00206 }
00207
00208
return;
00209 }
Generated on Sat May 15 19:39:27 2004 for test by
1.3.7