Changeset 32 for trunk/include


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

Location:
trunk/include
Files:
2 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 );
  • trunk/include/smb_deps.h

    r31 r32  
    366366/* End of stuff from reg_objects.h */
    367367
    368 /* From rpc_reg.h */
    369 
    370 /* Registry data types */
    371 
    372 #define REG_NONE                       0
    373 #define REG_SZ                         1
    374 #define REG_EXPAND_SZ                  2
    375 #define REG_BINARY                     3
    376 #define REG_DWORD                      4
    377 #define REG_DWORD_LE                   4        /* DWORD, little endian */
    378 #define REG_DWORD_BE                   5        /* DWORD, big endian */
    379 #define REG_LINK                       6
    380 #define REG_MULTI_SZ                   7
    381 #define REG_RESOURCE_LIST              8
    382 #define REG_FULL_RESOURCE_DESCRIPTOR   9
    383 #define REG_RESOURCE_REQUIREMENTS_LIST 10
    384 
    385 /* End of stuff from rpc_reg.h */
    386 
    387368/* From rpc_secdes.h */
    388369
Note: See TracChangeset for help on using the changeset viewer.