Changeset 68 for trunk


Ignore:
Timestamp:
07/30/06 09:41:24 (18 years ago)
Author:
tim
Message:

added usage printout to reglookup-timeline

cut left over unused junk from smb_deps.h

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/reglookup-timeline

    r62 r68  
    2525usage()
    2626{
    27   echo "ERROR in usage"
     27  echo "Usage: $0 <REGISTRY_FILE> [<REGISTRY_FILE> ...]" 1>&2
    2828}
    2929
    3030if [ $# -eq 0 ]; then
    3131  usage
     32  echo "ERROR: requires at least one parameter" 1>&2
    3233  exit 1
    3334fi
  • trunk/include/smb_deps.h

    r53 r68  
    140140#define RPC_PARSE_ALIGN    4
    141141
    142 
    143142/* End of stuff from ntdomain.h */
    144143
    145 /* From nt_status.h */
    146 
    147 typedef uint32 NTSTATUS;
    148 typedef uint32 WERROR;
    149 
    150 /* End of stuff from nt_status.h */
    151144
    152145/* From lib/time.c */
     
    191184
    192185
    193 
    194 /* buffer used by \winreg\ calls to fill in arbitrary REG_XXX values.
    195    It *may* look like a UNISTR2 but it is *not*.  This is not a goof
    196    by the winreg developers.  It is a generic buffer.  buffer length
    197    is stored in bytes (not # of uint16's) */
    198 
    199 typedef struct {
    200         uint32 buf_max_len;
    201         uint32 offset;
    202         uint32 buf_len;
    203         uint16 *buffer;
    204 } REGVAL_BUFFER;
    205 
    206 typedef struct {
    207         uint32 buf_len;
    208         uint16 *buffer; /* data */
    209 } BUFFER5;
    210 
    211 
    212 /**********************************************************************
    213  * UNICODE string variations
    214  **********************************************************************/
    215 
    216 
    217 typedef struct {                /* UNISTR - unicode string size and buffer */
    218         uint16 *buffer;         /* unicode characters. ***MUST*** be
    219                                    little-endian. ***MUST*** be null-terminated */
    220 } UNISTR;
    221 
    222 typedef struct {                /* UNISTR2 - unicode string size (in
    223                                    uint16 unicode chars) and buffer */
    224         uint32 uni_max_len;
    225         uint32 offset;
    226         uint32 uni_str_len;
    227         uint16 *buffer;         /* unicode characters. ***MUST*** be little-endian.
    228                                   **must** be null-terminated and the uni_str_len
    229                                   should include the NULL character */
    230 } UNISTR2;
    231 
    232 /* i think this is the same as a BUFFER5 used in the spoolss code --jerry */
    233 /* not sure about how the termination matches between the uint16 buffers thought */
    234 
    235 typedef struct {                /* UNISTR3 - XXXX not sure about this structure */
    236         uint32 uni_str_len;
    237         UNISTR str;
    238 } UNISTR3;
    239 
    240 typedef struct {                /* Buffer wrapped around a UNISTR2 */
    241         uint16 length;          /* number of bytes not counting NULL terminatation */
    242         uint16 size;            /* number of bytes including NULL terminatation */
    243         UNISTR2 *string;
    244 } UNISTR4;
    245 
    246 typedef struct {
    247         uint32 count;
    248         UNISTR4 *strings;
    249 } UNISTR4_ARRAY;
    250 
    251 
    252 /**********************************************************************
    253  * String variations
    254  **********************************************************************/
    255 
    256 typedef struct {                /* STRING2 - string size (in uint8 chars) and buffer */
    257         uint32 str_max_len;
    258         uint32 offset;
    259         uint32 str_str_len;
    260         uint8  *buffer;         /* uint8 characters. **NOT** necessarily null-terminated */
    261 } STRING2;
    262 
    263 
    264186/* From rpc_secdesc.h */
    265187
     
    320242/* From pstring.h */
    321243
    322 #define PSTRING_LEN 1024
    323244#define FSTRING_LEN 256
    324 
    325 typedef char pstring[PSTRING_LEN];
    326245typedef char fstring[FSTRING_LEN];
    327246
    328247/* End of stuff from pstring.h */
    329248
    330 /* From reg_objects.h */
    331 
    332 typedef struct _REGISTRY_VALUE {
    333         fstring         valuename;
    334         uint16          type;
    335         /* this should be encapsulated in an RPC_DATA_BLOB */
    336         uint32          size;   /* in bytes */
    337         uint8           *data_p;
    338 } REGISTRY_VALUE;
    339 
    340 /* container for registry values */
    341 typedef struct {
    342         void      *ctx;
    343         uint32          num_values;
    344         REGISTRY_VALUE  **values;
    345 } REGVAL_CTR;
    346 
    347 /* container for registry subkey names */
    348 typedef struct {
    349         void    *ctx;
    350         uint32          num_subkeys;
    351         char            **subkeys;
    352 } REGSUBKEY_CTR;
    353 
    354 /* represent a registry key with all its subkeys and values */
    355 struct _regobj_key;
    356 
    357 typedef struct _regobj_key {
    358         void *ctx;
    359 
    360         char *name;
    361 
    362         REGVAL_CTR values;
    363         REGSUBKEY_CTR subkeys;
    364 } REGOBJ_KEY;
    365 
    366 /* End of stuff from reg_objects.h */
    367249
    368250/* From rpc_secdes.h */
Note: See TracChangeset for help on using the changeset viewer.