Changeset 104 for trunk/include


Ignore:
Timestamp:
04/03/08 19:22:39 (17 years ago)
Author:
tim
Message:

replaced lf (hash list) parsing code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/regfi.h

    r103 r104  
    8787#define REGFI_VK_MIN_LENGTH     0x14
    8888#define REGFI_SK_MIN_LENGTH     0x14
     89#define REGFI_HASH_LIST_MIN_LENGTH     0x4
    8990
    9091/* Flags for the vk records */
     
    135136{
    136137  uint32 nk_off;
    137   uint8 keycheck[4];
    138 } REGF_HASH_REC;
    139 
    140 
    141 typedef struct
    142 {
     138  uint32 hash;
     139} REGF_HASH_LIST_ELEM;
     140
     141
     142typedef struct
     143{
     144  uint32 offset;        /* Real offset of this record's cell in the file */
     145  uint32 cell_size;      /* ((start_offset - end_offset) & 0xfffffff8) */
    143146  REGF_HBIN* hbin;       /* pointer to HBIN record (in memory) containing
    144147                          * this nk record
    145148                          */
    146   REGF_HASH_REC* hashes;
    147149  uint32 hbin_off;       /* offset from beginning of this hbin block */
    148   uint32 cell_size;      /* ((start_offset - end_offset) & 0xfffffff8) */
    149  
    150   uint8 header[REC_HDR_SIZE];
     150  REGF_HASH_LIST_ELEM* hashes;
     151 
     152  uint8 magic[REC_HDR_SIZE];
    151153  uint16 num_keys;
    152 } REGF_LF_REC;
     154} REGF_HASH_LIST;
    153155
    154156
     
    204206
    205207
    206 /* Key Name */ 
    207 typedef struct 
     208/* Key Name */
     209typedef struct
    208210{
    209211  uint32 offset;        /* Real offset of this record's cell in the file */
     
    215217  REGF_VK_REC** values;
    216218  REGF_SK_REC* sec_desc;
    217   REGF_LF_REC subkeys;
     219  REGF_HASH_LIST* subkeys;
    218220 
    219221  /* header information */
     
    382384/* Experimental */
    383385/****************/
     386REGF_HASH_LIST* regfi_load_hashlist(REGF_FILE* file, uint32 offset,
     387                                    uint32 num_keys, bool strict);
    384388
    385389REGF_VK_REC** regfi_load_valuelist(REGF_FILE* file, uint32 offset,
Note: See TracChangeset for help on using the changeset viewer.