Changeset 101 for trunk/include
- Timestamp:
- 03/28/08 20:46:37 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/regfi.h
r99 r101 6 6 * Windows NT registry I/O library 7 7 * 8 * Copyright (C) 2005-200 7Timothy D. Morgan8 * Copyright (C) 2005-2008 Timothy D. Morgan 9 9 * Copyright (C) 2005 Gerald (Jerry) Carter 10 10 * … … 84 84 85 85 #define REGF_OFFSET_NONE 0xffffffff 86 #define REGFI_NK_MIN_LENGTH 0x50 86 #define REGFI_NK_MIN_LENGTH 0x4C 87 #define REGFI_VK_MIN_LENGTH 0x14 87 88 88 89 /* Flags for the vk records */ … … 97 98 #define NK_TYPE_NORMALKEY 0x0020 98 99 #define NK_TYPE_ROOTKEY 0x002c 100 /* TODO: Unknown type that shows up in Vista registries */ 101 #define NK_TYPE_UNKNOWN1 0x1020 99 102 100 103 #define HBIN_STORE_REF(x, y) { x->hbin = y; y->ref_count++ }; … … 152 155 typedef struct 153 156 { 157 uint32 offset; /* Real offset of this record's cell in the file */ 158 uint32 cell_size; /* ((start_offset - end_offset) & 0xfffffff8) */ 159 154 160 REGF_HBIN* hbin; /* pointer to HBIN record (in memory) containing 155 161 * this nk record 156 162 */ 163 uint8* data; 164 uint16 name_length; 157 165 char* valuename; 158 uint8* data;159 166 uint32 hbin_off; /* offset from beginning of this hbin block */ 160 uint32 cell_size; /* ((start_offset - end_offset) & 0xfffffff8) */161 uint32 rec_off; /* offset stored in the value list */162 167 163 168 uint32 data_size; 164 uint32 data_off; 169 uint32 data_off; /* offset of data cell (virtual) */ 165 170 uint32 type; 166 uint8 header[REC_HDR_SIZE];171 uint8 magic[REC_HDR_SIZE]; 167 172 uint16 flag; 173 uint16 unknown1; 168 174 } REGF_VK_REC; 169 175 … … 204 210 205 211 /* link in the other records here */ 206 REGF_VK_REC* values;212 REGF_VK_REC** values; 207 213 REGF_SK_REC* sec_desc; 208 214 REGF_LF_REC subkeys; … … 211 217 /* XXX: should we be looking for types other than the root key type? */ 212 218 uint16 key_type; 213 uint8 header[REC_HDR_SIZE];219 uint8 magic[REC_HDR_SIZE]; 214 220 NTTIME mtime; 215 221 uint16 name_length; … … 374 380 /****************/ 375 381 382 REGF_VK_REC* regfi_parse_vk(REGF_FILE* file, uint32 offset, 383 uint32 max_size, bool strict); 384 uint8* regfi_parse_data(REGF_FILE* file, uint32 offset, 385 uint32 length, bool strict); 386 376 387 377 388 #endif /* _REGFI_H */
Note: See TracChangeset
for help on using the changeset viewer.