}
static bool reg_hive_key(TALLOC_CTX *ctx, const char *fullname,
- uint32 *reg_type, const char **key_name)
+ uint32_t *reg_type, const char **key_name)
{
WERROR werr;
char *hivename = NULL;
static NTSTATUS registry_openkey(TALLOC_CTX *mem_ctx,
struct rpc_pipe_client *pipe_hnd,
- const char *name, uint32 access_mask,
+ const char *name, uint32_t access_mask,
struct policy_handle *hive_hnd,
struct policy_handle *key_hnd)
{
- uint32 hive;
+ uint32_t hive;
NTSTATUS status;
WERROR werr;
struct winreg_String key;
static NTSTATUS registry_enumkeys(TALLOC_CTX *ctx,
struct rpc_pipe_client *pipe_hnd,
struct policy_handle *key_hnd,
- uint32 *pnum_keys, char ***pnames,
+ uint32_t *pnum_keys, char ***pnames,
char ***pclasses, NTTIME ***pmodtimes)
{
TALLOC_CTX *mem_ctx;
NTSTATUS status;
WERROR werr;
- uint32 num_subkeys, max_subkeylen, max_classlen;
- uint32 num_values, max_valnamelen, max_valbufsize;
- uint32 i;
+ uint32_t num_subkeys, max_subkeylen, max_classlen;
+ uint32_t num_values, max_valnamelen, max_valbufsize;
+ uint32_t i;
NTTIME last_changed_time;
- uint32 secdescsize;
+ uint32_t secdescsize;
struct winreg_String classname;
char **names, **classes;
NTTIME **modtimes;
static NTSTATUS registry_enumvalues(TALLOC_CTX *ctx,
struct rpc_pipe_client *pipe_hnd,
struct policy_handle *key_hnd,
- uint32 *pnum_values, char ***pvalnames,
+ uint32_t *pnum_values, char ***pvalnames,
struct registry_value ***pvalues)
{
TALLOC_CTX *mem_ctx;
NTSTATUS status;
WERROR werr;
- uint32 num_subkeys, max_subkeylen, max_classlen;
- uint32 num_values, max_valnamelen, max_valbufsize;
- uint32 i;
+ uint32_t num_subkeys, max_subkeylen, max_classlen;
+ uint32_t num_values, max_valnamelen, max_valbufsize;
+ uint32_t i;
NTTIME last_changed_time;
- uint32 secdescsize;
+ uint32_t secdescsize;
struct winreg_String classname;
struct registry_value **values;
char **names;
for (i=0; i<num_values; i++) {
enum winreg_Type type = REG_NONE;
- uint8 *data = NULL;
- uint32 data_size;
- uint32 value_length;
+ uint8_t *data = NULL;
+ uint32_t data_size;
+ uint32_t value_length;
char n;
struct winreg_ValNameBuf name_buf;
name_buf.size = max_valnamelen + 2;
data_size = max_valbufsize;
- data = (uint8 *)TALLOC(mem_ctx, data_size);
+ data = (uint8_t *)TALLOC(mem_ctx, data_size);
value_length = 0;
status = dcerpc_winreg_EnumValue(b, mem_ctx, key_hnd,
static NTSTATUS registry_enumvalues2(TALLOC_CTX *ctx,
struct rpc_pipe_client *pipe_hnd,
struct policy_handle *key_hnd,
- uint32 *pnum_values, char ***pvalnames,
+ uint32_t *pnum_values, char ***pvalnames,
struct regval_blob ***pvalues)
{
TALLOC_CTX *mem_ctx;
NTSTATUS status;
WERROR werr;
- uint32 num_subkeys, max_subkeylen, max_classlen;
- uint32 num_values, max_valnamelen, max_valbufsize;
- uint32 i;
+ uint32_t num_subkeys, max_subkeylen, max_classlen;
+ uint32_t num_values, max_valnamelen, max_valbufsize;
+ uint32_t i;
NTTIME last_changed_time;
- uint32 secdescsize;
+ uint32_t secdescsize;
struct winreg_String classname;
struct regval_blob **values;
char **names;
for (i=0; i<num_values; i++) {
enum winreg_Type type = REG_NONE;
- uint8 *data = NULL;
- uint32 data_size;
- uint32 value_length;
+ uint8_t *data = NULL;
+ uint32_t data_size;
+ uint32_t value_length;
char n;
struct winreg_ValNameBuf name_buf;
name_buf.size = max_valnamelen + 2;
data_size = max_valbufsize;
- data = (uint8 *)TALLOC(mem_ctx, data_size);
+ data = (uint8_t *)TALLOC(mem_ctx, data_size);
value_length = 0;
status = dcerpc_winreg_EnumValue(b, mem_ctx, key_hnd,
int argc,
const char **argv )
{
- uint32 hive;
+ uint32_t hive;
struct policy_handle hive_hnd, key_hnd;
struct winreg_String key, keyclass;
enum winreg_CreateAction action;
int argc,
const char **argv )
{
- uint32 hive;
+ uint32_t hive;
struct policy_handle hive_hnd;
struct winreg_String key;
NTSTATUS status;
struct policy_handle pol_hive, pol_key;
NTSTATUS status;
WERROR werr;
- uint32 num_subkeys = 0;
- uint32 num_values = 0;
+ uint32_t num_subkeys = 0;
+ uint32_t num_values = 0;
char **names = NULL, **classes = NULL;
NTTIME **modtimes = NULL;
- uint32 i;
+ uint32_t i;
struct registry_value **values = NULL;
struct dcerpc_binding_handle *b = pipe_hnd->binding_handle;
{
int i, j;
const char *data_str = NULL;
- uint32 data_size, data;
+ uint32_t data_size, data;
DATA_BLOB blob;
if ( !nk->values )
const char* name)
{
NTSTATUS status;
- uint32 num_subkeys = 0;
- uint32 num_values = 0;
+ uint32_t num_subkeys = 0;
+ uint32_t num_values = 0;
char **names = NULL, **classes = NULL;
NTTIME **modtimes = NULL;
struct regval_blob **values = NULL;
- uint32 i;
+ uint32_t i;
struct dcerpc_binding_handle *b = pipe_hnd->binding_handle;
TALLOC_CTX* mem_ctx = talloc_new(ctx);
keyname.name = name;
if (parent == NULL) {
- uint32 hive_idx = 0;
+ uint32_t hive_idx = 0;
if (!reg_hive_key(mem_ctx, name, &hive_idx, &keyname.name)) {
werr = WERR_FOOBAR;
goto done;
keyname.name = name;
if (parent == NULL) {
- uint32 hive_idx;
+ uint32_t hive_idx;
if (!reg_hive_key(mem_ctx, name, &hive_idx, &keyname.name)) {
werr = WERR_FOOBAR;
goto done;