Changeset 78 for trunk/include
- Timestamp:
- 01/15/07 10:22:47 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/regfio.h
r77 r78 31 31 ***********************************************************/ 32 32 33 #ifndef _REGFI O_H34 #define _REGFI O_H33 #ifndef _REGFI_H 34 #define _REGFI_H 35 35 36 36 #include <stdlib.h> … … 47 47 48 48 #include "smb_deps.h" 49 #include "void_stack.h" 49 50 50 51 /******************************************************************************/ … … 72 73 #define REGF_BLOCKSIZE 0x1000 73 74 #define REGF_ALLOC_BLOCK 0x1000 75 #define REGF_MAX_DEPTH 512 74 76 75 77 /* header sizes for various records */ … … 188 190 */ 189 191 uint32 hbin_off; /* offset from beginning of this hbin block */ 190 uint32 subkey_index;/* index to next subkey record to return */192 /*uint32 subkey_index;*/ /* index to next subkey record to return */ 191 193 uint32 rec_size; /* ((start_offset - end_offset) & 0xfffffff8) */ 192 194 … … 246 248 */ 247 249 248 /* unknowns used to simply writing*/250 /* unknowns */ 249 251 uint32 unknown1; 250 252 uint32 unknown2; … … 256 258 257 259 260 261 typedef struct { 262 REGF_FILE* f; 263 void_stack* keys; 264 uint32 cur_subkey; 265 uint32 cur_value; 266 } REGFI_ITERATOR; 267 258 268 /******************************************************************************/ 259 269 /* Function Declarations */ 260 270 261 const char* regfio_type_val2str(unsigned int val); 262 int regfio_type_str2val(const char* str); 263 264 char* regfio_get_sacl(SEC_DESC *sec_desc); 265 char* regfio_get_dacl(SEC_DESC *sec_desc); 266 char* regfio_get_owner(SEC_DESC *sec_desc); 267 char* regfio_get_group(SEC_DESC *sec_desc); 268 269 REGF_FILE* regfio_open( const char *filename ); 270 int regfio_close( REGF_FILE *r ); 271 272 REGF_NK_REC* regfio_rootkey( REGF_FILE *file ); 273 REGF_NK_REC* regfio_fetch_subkey( REGF_FILE *file, REGF_NK_REC *nk ); 274 275 #endif /* _REGFIO_H */ 271 const char* regfi_type_val2str(unsigned int val); 272 int regfi_type_str2val(const char* str); 273 274 char* regfi_get_sacl(SEC_DESC *sec_desc); 275 char* regfi_get_dacl(SEC_DESC *sec_desc); 276 char* regfi_get_owner(SEC_DESC *sec_desc); 277 char* regfi_get_group(SEC_DESC *sec_desc); 278 279 REGF_FILE* regfi_open( const char *filename ); 280 int regfi_close( REGF_FILE *r ); 281 282 REGF_NK_REC* regfi_rootkey( REGF_FILE *file ); 283 /* REGF_NK_REC* regfi_fetch_subkey( REGF_FILE *file, REGF_NK_REC *nk ); */ 284 285 REGFI_ITERATOR* regfi_iterator_create(REGF_FILE* fh); 286 bool regfi_iterator_down(REGFI_ITERATOR* i, const char* subkey_name); 287 bool regfi_iterator_up(REGFI_ITERATOR* i); 288 REGF_NK_REC* regfi_iterator_next_subkey(REGFI_ITERATOR* i); 289 REGF_VK_REC* regfi_iterator_next_value(REGFI_ITERATOR* i); 290 REGF_VK_REC* regfi_iterator_fetch_value(REGFI_ITERATOR* i, const char* value_name); 291 char* regfi_iterator_curpath(REGFI_ITERATOR* i); 292 293 #endif /* _REGFI_H */
Note: See TracChangeset
for help on using the changeset viewer.