WERROR (*flush_key) (struct registry_key *);
/* Value management */
- WERROR (*set_value)(struct registry_key *, const char *name, uint32 type, void *data, int len);
+ WERROR (*set_value)(struct registry_key *, const char *name, uint32_t type, void *data, int len);
WERROR (*del_value)(struct registry_key *, const char *valname);
};
* contains zero or more hives */
struct registry_context {
void *backend_data;
- WERROR (*get_predefined_key) (struct registry_context *, uint32 hkey, struct registry_key **);
+ WERROR (*get_predefined_key) (struct registry_context *, uint32_t hkey, struct registry_key **);
};
struct reg_init_function_entry {
return WERR_OK;
}
-WERROR reg_val_set(struct registry_key *key, const char *value, uint32 type, void *data, int len)
+WERROR reg_val_set(struct registry_key *key, const char *value, uint32_t type, void *data, int len)
{
/* A 'real' set function has preference */
if (key->hive->functions->set_value)
return WERR_OK;
}
-WERROR reg_key_subkeysizes(struct registry_key *key, uint32 *max_subkeylen, uint32 *max_subkeysize)
+WERROR reg_key_subkeysizes(struct registry_key *key, uint32_t *max_subkeylen, uint32_t *max_subkeysize)
{
int i = 0;
struct registry_key *subkey;
return WERR_OK;
}
-WERROR reg_key_valuesizes(struct registry_key *key, uint32 *max_valnamelen, uint32 *max_valbufsize)
+WERROR reg_key_valuesizes(struct registry_key *key, uint32_t *max_valnamelen, uint32_t *max_valbufsize)
{
int i = 0;
struct registry_value *value;
#define DBGC_CLASS DBGC_REGISTRY
static const struct {
- uint32 id;
+ uint32_t id;
const char *name;
} reg_value_types[] = {
{ REG_SZ, "REG_SZ" },
(*value)->data_len = convert_string_talloc(mem_ctx, CH_UNIX, CH_UTF16, data_str, strlen(data_str), &(*value)->data_blk);
break;
case REG_DWORD:
- (*value)->data_len = sizeof(uint32);
- (*value)->data_blk = talloc(mem_ctx, uint32);
- *((uint32 *)(*value)->data_blk) = strtol(data_str, NULL, 0);
+ (*value)->data_len = sizeof(uint32_t);
+ (*value)->data_blk = talloc(mem_ctx, uint32_t);
+ *((uint32_t *)(*value)->data_blk) = strtol(data_str, NULL, 0);
break;
case REG_NONE:
return error;
}
-WERROR reg_key_add_abs(TALLOC_CTX *mem_ctx, struct registry_context *ctx, const char *path, uint32 access_mask, struct security_descriptor *sec_desc, struct registry_key **result)
+WERROR reg_key_add_abs(TALLOC_CTX *mem_ctx, struct registry_context *ctx, const char *path, uint32_t access_mask, struct security_descriptor *sec_desc, struct registry_key **result)
{
struct registry_key *parent;
const char *n;
#include "includes.h"
#include "registry.h"
+#include "system/filesys.h"
#include "system/shmem.h"
#define REG_KEY_LIST_SIZE 10
#include "includes.h"
#include "registry.h"
+#include "system/filesys.h"
#include "system/shmem.h"
/**
#include "dynconfig.h"
#include "registry.h"
#include "lib/cmdline/popt_common.h"
+#include "system/filesys.h"
/*
* Routines to parse a REGEDIT4 file