Changeset 32 for trunk/include/regfio.h


Ignore:
Timestamp:
07/16/05 19:16:17 (19 years ago)
Author:
tim
Message:

Added key name retrieval to test utility

Code formatting changes to regfio.c

Added type<->string mapping functions to regfio library

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/regfio.h

    r31 r32  
    4848#include "smb_deps.h"
    4949
    50 
    5150/******************************************************************************/
    5251/* Macros */
    5352 
     53/* Registry data types */
     54#define REG_NONE                       0
     55#define REG_SZ                         1
     56#define REG_EXPAND_SZ                  2
     57#define REG_BINARY                     3
     58#define REG_DWORD                      4
     59#define REG_DWORD_LE                   4        /* DWORD, little endian */
     60#define REG_DWORD_BE                   5        /* DWORD, big endian */
     61#define REG_LINK                       6
     62#define REG_MULTI_SZ                   7
     63#define REG_RESOURCE_LIST              8
     64#define REG_FULL_RESOURCE_DESCRIPTOR   9
     65#define REG_RESOURCE_REQUIREMENTS_LIST 10
     66/* Not a real type in the registry */
     67#define REG_KEY                        255
     68
     69typedef struct _val_str {
     70  unsigned int val;
     71  const char * str;
     72} VAL_STR;
     73
    5474#define REGF_BLOCKSIZE          0x1000
    5575#define REGF_ALLOC_BLOCK        0x1000
     
    230250/* Function Declarations */
    231251 
     252const char* type_val2str(unsigned int val);
     253int type_str2val(const char* str);
     254
    232255REGF_FILE*    regfio_open( const char *filename );
    233256int           regfio_close( REGF_FILE *r );
Note: See TracChangeset for help on using the changeset viewer.