|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include "precomp.h"#include "filesup.h"#include "infsupp.h"#include "regutil.h"#include "registry.h"#include <debug.h>
Go to the source code of this file.
Classes | |
| struct | _ROOT_KEY |
| struct | _HIVE_LIST_ENTRY |
Typedefs | |
| typedef struct _ROOT_KEY | ROOT_KEY |
| typedef struct _ROOT_KEY * | PROOT_KEY |
| typedef enum _HIVE_UPDATE_STATE | HIVE_UPDATE_STATE |
| typedef struct _HIVE_LIST_ENTRY | HIVE_LIST_ENTRY |
| typedef struct _HIVE_LIST_ENTRY * | PHIVE_LIST_ENTRY |
Enumerations | |
| enum | _HIVE_UPDATE_STATE { Create , Repair , Update } |
Functions | |
| HANDLE | GetRootKeyByPredefKey (IN HANDLE KeyHandle, OUT PCWSTR *RootKeyMountPoint OPTIONAL) |
| HANDLE | GetRootKeyByName (IN PCWSTR RootKeyName, OUT PCWSTR *RootKeyMountPoint OPTIONAL) |
| static BOOLEAN | do_reg_operation (HANDLE KeyHandle, PUNICODE_STRING ValueName, PINFCONTEXT Context, ULONG Flags) |
| static BOOLEAN | registry_callback (HINF hInf, PCWSTR Section, BOOLEAN Delete) |
| BOOLEAN | ImportRegistryFile (IN PCWSTR SourcePath, IN PCWSTR FileName, IN PCWSTR Section, IN LCID LocaleId, IN BOOLEAN Delete) |
| C_ASSERT (_countof(RegistryHives)==NUMBER_OF_STANDARD_REGISTRY_HIVES) | |
| C_ASSERT (_countof(SecurityRegistryHives)==NUMBER_OF_SECURITY_REGISTRY_HIVES) | |
| NTSTATUS | VerifyRegistryHives (IN PUNICODE_STRING NtSystemRoot, OUT PBOOLEAN ShouldRepairRegistry) |
| NTSTATUS | RegInitializeRegistry (IN PUNICODE_STRING NtSystemRoot) |
| VOID | RegCleanupRegistry (IN PUNICODE_STRING NtSystemRoot) |
Variables | |
| ROOT_KEY | RootKeys [] |
| HIVE_LIST_ENTRY | RegistryHives [] |
| HIVE_LIST_ENTRY | SecurityRegistryHives [] |
| #define FLG_ADDREG_APPEND 0x00000008 |
Definition at line 46 of file registry.c.
| #define FLG_ADDREG_BINVALUETYPE 0x00000001 |
Definition at line 43 of file registry.c.
| #define FLG_ADDREG_DELVAL 0x00000004 |
Definition at line 45 of file registry.c.
| #define FLG_ADDREG_KEYONLY 0x00000010 |
Definition at line 47 of file registry.c.
| #define FLG_ADDREG_NOCLOBBER 0x00000002 |
Definition at line 44 of file registry.c.
| #define FLG_ADDREG_OVERWRITEONLY 0x00000020 |
Definition at line 48 of file registry.c.
| #define FLG_ADDREG_TYPE_BINARY (0x00000000 | FLG_ADDREG_BINVALUETYPE) |
Definition at line 52 of file registry.c.
| #define FLG_ADDREG_TYPE_DWORD (0x00010000 | FLG_ADDREG_BINVALUETYPE) |
Definition at line 53 of file registry.c.
| #define FLG_ADDREG_TYPE_EXPAND_SZ 0x00020000 |
Definition at line 51 of file registry.c.
| #define FLG_ADDREG_TYPE_MASK (0xFFFF0000 | FLG_ADDREG_BINVALUETYPE) |
Definition at line 55 of file registry.c.
| #define FLG_ADDREG_TYPE_MULTI_SZ 0x00010000 |
Definition at line 50 of file registry.c.
| #define FLG_ADDREG_TYPE_NONE (0x00020000 | FLG_ADDREG_BINVALUETYPE) |
Definition at line 54 of file registry.c.
| #define FLG_ADDREG_TYPE_SZ 0x00000000 |
Definition at line 49 of file registry.c.
Definition at line 86 of file registry.c.
Definition at line 83 of file registry.c.
| #define NDEBUG |
Definition at line 37 of file registry.c.
| #define NUMBER_OF_SECURITY_REGISTRY_HIVES 2 |
Definition at line 591 of file registry.c.
| #define NUMBER_OF_STANDARD_REGISTRY_HIVES 3 |
Definition at line 579 of file registry.c.
| #define REGISTRY_SETUP_MACHINE L"\\Registry\\Machine\\SYSTEM\\USetup_Machine\\" |
Definition at line 60 of file registry.c.
| #define REGISTRY_SETUP_USER L"\\Registry\\Machine\\SYSTEM\\USetup_User\\" |
Definition at line 61 of file registry.c.
| typedef struct _HIVE_LIST_ENTRY HIVE_LIST_ENTRY |
| typedef enum _HIVE_UPDATE_STATE HIVE_UPDATE_STATE |
| typedef struct _HIVE_LIST_ENTRY * PHIVE_LIST_ENTRY |
| Enumerator | |
|---|---|
| Create | |
| Repair | |
| Update | |
Definition at line 561 of file registry.c.
| C_ASSERT | ( | _countof(RegistryHives) | = =NUMBER_OF_STANDARD_REGISTRY_HIVES | ) |
| C_ASSERT | ( | _countof(SecurityRegistryHives) | = =NUMBER_OF_SECURITY_REGISTRY_HIVES | ) |
|
static |
Definition at line 222 of file registry.c.
Referenced by registry_callback().
Definition at line 107 of file registry.c.
Referenced by registry_callback().
Definition at line 90 of file registry.c.
Referenced by AddCodepageToRegistry(), AddFontsSettingsToRegistry(), AddHotkeySettings(), AddKbLayoutsToRegistry(), ProcessDisplayRegistry(), ProcessLocaleRegistry(), SetDefaultPagefile(), SetGeoID(), and SetMountedDeviceValue().
| BOOLEAN ImportRegistryFile | ( | IN PCWSTR | SourcePath, |
| IN PCWSTR | FileName, | ||
| IN PCWSTR | Section, | ||
| IN LCID | LocaleId, | ||
| IN BOOLEAN | Delete | ||
| ) |
Definition at line 507 of file registry.c.
| VOID RegCleanupRegistry | ( | IN PUNICODE_STRING | NtSystemRoot | ) |
Definition at line 997 of file registry.c.
Referenced by UpdateRegistry().
| NTSTATUS RegInitializeRegistry | ( | IN PUNICODE_STRING | NtSystemRoot | ) |
Definition at line 679 of file registry.c.
Referenced by main(), and UpdateRegistry().
Definition at line 412 of file registry.c.
Referenced by ImportRegistryFile().
| NTSTATUS VerifyRegistryHives | ( | IN PUNICODE_STRING | NtSystemRoot, |
| OUT PBOOLEAN | ShouldRepairRegistry | ||
| ) |
These hives are created by LSASS during 2nd stage setup
Definition at line 603 of file registry.c.
Referenced by UpdateRegistry().
| HIVE_LIST_ENTRY RegistryHives[] |
Definition at line 581 of file registry.c.
Referenced by main(), RegCleanupRegistry(), RegInitializeRegistry(), START_TEST(), and VerifyRegistryHives().
| ROOT_KEY RootKeys[] |
Definition at line 70 of file registry.c.
Referenced by GetRootKeyByName(), GetRootKeyByPredefKey(), RegCleanupRegistry(), RegInitializeRegistry(), and RunOnceExProcess().
| HIVE_LIST_ENTRY SecurityRegistryHives[] |
These hives are created by LSASS during 2nd stage setup
Definition at line 594 of file registry.c.
Referenced by VerifyRegistryHives().