Changeset 81 for trunk/include


Ignore:
Timestamp:
01/17/07 11:47:39 (18 years ago)
Author:
tim
Message:

Finished incorporating changes to reglookup to work with new regfi interface.

Compiles now, but is minimally tested.

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/regfi.h

    r80 r81  
    66 * Windows NT registry I/O library
    77 *
    8  * Copyright (C) 2005-2006 Timothy D. Morgan
     8 * Copyright (C) 2005-2007 Timothy D. Morgan
    99 * Copyright (C) 2005 Gerald (Jerry) Carter
    1010 *
     
    6868/* XXX: Has MS defined a REG_QWORD_BE? */
    6969/* Not a real type in the registry */
    70 #define REG_KEY                        0xFFFFFFFF
     70#define REG_KEY                        0x7FFFFFFF
    7171
    7272
     
    183183} REGF_SK_REC;
    184184
     185
    185186/* Key Name */
    186 
    187187typedef struct {
    188188  REGF_HBIN *hbin;      /* pointer to HBIN record (in memory) containing
     
    220220  /* link in the other records here */
    221221  REGF_LF_REC subkeys;
    222   REGF_VK_REC *values;
    223   REGF_SK_REC *sec_desc;
     222  REGF_VK_REC* values;
     223  REGF_SK_REC* sec_desc;
    224224       
    225225} REGF_NK_REC;
    226226
     227
    227228/* REGF block */
    228  
    229229typedef struct {
    230230  /* run time information */
     
    290290int           regfi_close(REGF_FILE* r);
    291291
    292 REGF_NK_REC*  regfi_rootkey( REGF_FILE* file );
     292REGF_NK_REC*  regfi_rootkey(REGF_FILE* file);
    293293/* REGF_NK_REC*  regfi_fetch_subkey( REGF_FILE* file, REGF_NK_REC* nk ); */
    294294
    295295void            regfi_key_free(REGF_NK_REC* nk);
    296 void            regfi_value_free(REGF_VK_REC* vk);
    297296
    298297REGFI_ITERATOR* regfi_iterator_new(REGF_FILE* fh);
     
    302301bool            regfi_iterator_to_root(REGFI_ITERATOR* i);
    303302
    304 bool            regfi_iterator_find_subkey(REGFI_ITERATOR* i, const char* subkey_name)
     303bool            regfi_iterator_find_subkey(REGFI_ITERATOR* i, const char* subkey_name);
    305304bool            regfi_iterator_walk_path(REGFI_ITERATOR* i, const char** path);
     305/* XXX: these which return NK and VK records should return them as consts */
    306306REGF_NK_REC*    regfi_iterator_cur_key(REGFI_ITERATOR* i);
    307307REGF_NK_REC*    regfi_iterator_first_subkey(REGFI_ITERATOR* i);
  • trunk/include/void_stack.h

    r80 r81  
    11/*
    2  * Copyright (C) 2005 Timothy D. Morgan
     2 * Copyright (C) 2005,2007 Timothy D. Morgan
    33 *
    44 * This program is free software; you can redistribute it and/or modify
     
    2222#include <string.h>
    2323
     24#ifndef _VOID_STACK_H
    2425#define _VOID_STACK_H
    25 #ifndef _VOID_STACK_H
    2626
    2727typedef struct _void_stack
Note: See TracChangeset for help on using the changeset viewer.