mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 16:20:37 +00:00
56 lines
1.7 KiB
C
56 lines
1.7 KiB
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS hive maker
|
|
* FILE: tools/mkhive/registry.h
|
|
* PURPOSE: Registry code
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
typedef struct _HIVE_LIST_ENTRY
|
|
{
|
|
PCSTR HiveName;
|
|
PCWSTR HiveRegistryPath;
|
|
PCMHIVE CmHive;
|
|
PUCHAR SecurityDescriptor;
|
|
ULONG SecurityDescriptorLength;
|
|
} HIVE_LIST_ENTRY, *PHIVE_LIST_ENTRY;
|
|
|
|
#define MAX_NUMBER_OF_REGISTRY_HIVES 7
|
|
extern HIVE_LIST_ENTRY RegistryHives[];
|
|
|
|
#define ERROR_SUCCESS 0L
|
|
#define ERROR_INVALID_FUNCTION 1L
|
|
#define ERROR_FILE_NOT_FOUND 2L
|
|
#define ERROR_ACCESS_DENIED 5L
|
|
#define ERROR_NOT_ENOUGH_MEMORY 8L
|
|
#define ERROR_GEN_FAILURE 31L
|
|
#define ERROR_INVALID_PARAMETER 87L
|
|
// #define ERROR_MORE_DATA 234L
|
|
// #define ERROR_NO_MORE_ITEMS 259L
|
|
#define ERROR_NO_LOG_SPACE 1019L
|
|
#define ERROR_NO_SYSTEM_RESOURCES 1450L
|
|
|
|
#define REG_NONE 0
|
|
#define REG_SZ 1
|
|
#define REG_EXPAND_SZ 2
|
|
#define REG_BINARY 3
|
|
#define REG_DWORD 4
|
|
#define REG_DWORD_LITTLE_ENDIAN 4
|
|
#define REG_DWORD_BIG_ENDIAN 5
|
|
#define REG_LINK 6
|
|
#define REG_MULTI_SZ 7
|
|
#define REG_RESOURCE_LIST 8
|
|
#define REG_FULL_RESOURCE_DESCRIPTOR 9
|
|
#define REG_RESOURCE_REQUIREMENTS_LIST 10
|
|
#define REG_QWORD 11
|
|
#define REG_QWORD_LITTLE_ENDIAN 11
|
|
|
|
VOID
|
|
RegInitializeRegistry(
|
|
IN PCSTR HiveList);
|
|
|
|
VOID
|
|
RegShutdownRegistry(VOID);
|
|
|
|
/* EOF */
|