Changeset 139 for trunk/include
- Timestamp:
- 02/08/09 22:06:16 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/regfi.h
r138 r139 82 82 #define REGFI_OFFSET_NONE 0xffffffff 83 83 84 /* XXX: This is totally arbitrary right now. */ 85 #define REGFI_MAX_SUBKEY_DEPTH 255 86 84 87 /* Header sizes and magic number lengths for various records */ 85 88 #define REGFI_REGF_MAGIC_SIZE 4 … … 171 174 typedef struct 172 175 { 173 uint32 nk_off; 176 /* Virtual offset of NK record or additional subkey list, 177 * depending on this list's type. 178 */ 179 uint32 offset; 180 174 181 uint32 hash; 175 182 } REGFI_SUBKEY_LIST_ELEM; … … 178 185 typedef struct 179 186 { 180 uint32 offset; /* Real offset of this record's cell in the file */ 181 uint32 cell_size; /* ((start_offset - end_offset) & 0xfffffff8) */ 182 uint32 num_keys; 187 /* Real offset of this record's cell in the file */ 188 uint32 offset; 189 190 uint32 cell_size; 191 192 /* Number of immediate children */ 193 uint32 num_children; 194 195 /* Total number of keys referenced by this list and it's children */ 196 uint32 num_keys; 197 183 198 REGFI_SUBKEY_LIST_ELEM* elements; 184 185 199 uint8 magic[REGFI_CELL_MAGIC_SIZE]; 200 201 /* Set if the magic indicates this subkey list points to child subkey lists */ 202 bool recursive_type; 186 203 } REGFI_SUBKEY_LIST; 187 204 … … 427 444 uint32 max_size, bool strict); 428 445 446 REGFI_SUBKEY_LIST* regfi_parse_subkeylist(REGFI_FILE* file, uint32 offset, 447 uint32 max_size, bool strict); 448 429 449 REGFI_VK_REC* regfi_parse_vk(REGFI_FILE* file, uint32 offset, 430 450 uint32 max_size, bool strict); … … 467 487 REGFI_SUBKEY_LIST** lists, 468 488 bool strict); 489 REGFI_SUBKEY_LIST* regfi_load_subkeylist_aux(REGFI_FILE* file, uint32 offset, 490 uint32 max_size, bool strict, 491 uint8 depth_left); 469 492 void regfi_add_message(REGFI_FILE* file, uint16 msg_type, 470 493 const char* fmt, ...);
Note: See TracChangeset
for help on using the changeset viewer.