summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/srv_winreg.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-01-09 12:28:44 +0100
committerGünther Deschner <gd@samba.org>2008-01-09 12:29:11 +0100
commit3d87cba590b714e95c4e02946bdba8588c3d3700 (patch)
tree29b19ec92024f8bb5d67c4ec66d26997ac0fc16c /source3/librpc/gen_ndr/srv_winreg.c
parent1ac5e6cdfe19f601549de4f3e5b8fbf5be4abe0c (diff)
downloadsamba-3d87cba590b714e95c4e02946bdba8588c3d3700.tar.gz
samba-3d87cba590b714e95c4e02946bdba8588c3d3700.tar.bz2
samba-3d87cba590b714e95c4e02946bdba8588c3d3700.zip
Re-run make idl to get even nicer pidl generated server code.
Guenther (This used to be commit 6169dea4dc3c4fc5eb1caefde828ed896cf048c5)
Diffstat (limited to 'source3/librpc/gen_ndr/srv_winreg.c')
-rw-r--r--source3/librpc/gen_ndr/srv_winreg.c2040
1 files changed, 1055 insertions, 985 deletions
diff --git a/source3/librpc/gen_ndr/srv_winreg.c b/source3/librpc/gen_ndr/srv_winreg.c
index 51918bcb97..ecce99f67a 100644
--- a/source3/librpc/gen_ndr/srv_winreg.c
+++ b/source3/librpc/gen_ndr/srv_winreg.c
@@ -14,74 +14,76 @@ static bool api_winreg_OpenHKCR(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenHKCR *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKCR];
-
+
r = talloc(NULL, struct winreg_OpenHKCR);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKCR, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenHKCR(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKCR, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_OpenHKCU(pipes_struct *p)
@@ -92,74 +94,76 @@ static bool api_winreg_OpenHKCU(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenHKCU *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKCU];
-
+
r = talloc(NULL, struct winreg_OpenHKCU);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKCU, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenHKCU(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKCU, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_OpenHKLM(pipes_struct *p)
@@ -170,74 +174,76 @@ static bool api_winreg_OpenHKLM(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenHKLM *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKLM];
-
+
r = talloc(NULL, struct winreg_OpenHKLM);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKLM, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenHKLM(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKLM, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_OpenHKPD(pipes_struct *p)
@@ -248,74 +254,76 @@ static bool api_winreg_OpenHKPD(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenHKPD *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKPD];
-
+
r = talloc(NULL, struct winreg_OpenHKPD);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKPD, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenHKPD(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKPD, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_OpenHKU(pipes_struct *p)
@@ -326,74 +334,76 @@ static bool api_winreg_OpenHKU(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenHKU *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKU];
-
+
r = talloc(NULL, struct winreg_OpenHKU);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKU, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenHKU(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKU, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_CloseKey(pipes_struct *p)
@@ -404,69 +414,71 @@ static bool api_winreg_CloseKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_CloseKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_CLOSEKEY];
-
+
r = talloc(NULL, struct winreg_CloseKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_CloseKey, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = r->in.handle;
r->out.result = _winreg_CloseKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_CloseKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_CreateKey(pipes_struct *p)
@@ -477,75 +489,77 @@ static bool api_winreg_CreateKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_CreateKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_CREATEKEY];
-
+
r = talloc(NULL, struct winreg_CreateKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_CreateKey, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.new_handle = talloc_zero(r, struct policy_handle);
if (r->out.new_handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.action_taken = r->in.action_taken;
r->out.result = _winreg_CreateKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_CreateKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_DeleteKey(pipes_struct *p)
@@ -556,67 +570,69 @@ static bool api_winreg_DeleteKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_DeleteKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_DELETEKEY];
-
+
r = talloc(NULL, struct winreg_DeleteKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_DeleteKey, r);
-
+ }
+
r->out.result = _winreg_DeleteKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_DeleteKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_DeleteValue(pipes_struct *p)
@@ -627,67 +643,69 @@ static bool api_winreg_DeleteValue(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_DeleteValue *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_DELETEVALUE];
-
+
r = talloc(NULL, struct winreg_DeleteValue);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_DeleteValue, r);
-
+ }
+
r->out.result = _winreg_DeleteValue(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_DeleteValue, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_EnumKey(pipes_struct *p)
@@ -698,71 +716,73 @@ static bool api_winreg_EnumKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_EnumKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_ENUMKEY];
-
+
r = talloc(NULL, struct winreg_EnumKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_EnumKey, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.name = r->in.name;
r->out.keyclass = r->in.keyclass;
r->out.last_changed_time = r->in.last_changed_time;
r->out.result = _winreg_EnumKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_EnumKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_EnumValue(pipes_struct *p)
@@ -773,35 +793,36 @@ static bool api_winreg_EnumValue(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_EnumValue *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_ENUMVALUE];
-
+
r = talloc(NULL, struct winreg_EnumValue);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_EnumValue, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.name = r->in.name;
r->out.type = r->in.type;
@@ -809,37 +830,38 @@ static bool api_winreg_EnumValue(pipes_struct *p)
r->out.size = r->in.size;
r->out.length = r->in.length;
r->out.result = _winreg_EnumValue(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_EnumValue, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_FlushKey(pipes_struct *p)
@@ -850,67 +872,69 @@ static bool api_winreg_FlushKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_FlushKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_FLUSHKEY];
-
+
r = talloc(NULL, struct winreg_FlushKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_FlushKey, r);
-
+ }
+
r->out.result = _winreg_FlushKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_FlushKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_GetKeySecurity(pipes_struct *p)
@@ -921,69 +945,71 @@ static bool api_winreg_GetKeySecurity(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_GetKeySecurity *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_GETKEYSECURITY];
-
+
r = talloc(NULL, struct winreg_GetKeySecurity);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_GetKeySecurity, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.sd = r->in.sd;
r->out.result = _winreg_GetKeySecurity(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_GetKeySecurity, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_LoadKey(pipes_struct *p)
@@ -994,67 +1020,69 @@ static bool api_winreg_LoadKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_LoadKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_LOADKEY];
-
+
r = talloc(NULL, struct winreg_LoadKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_LoadKey, r);
-
+ }
+
r->out.result = _winreg_LoadKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_LoadKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_NotifyChangeKeyValue(pipes_struct *p)
@@ -1065,67 +1093,69 @@ static bool api_winreg_NotifyChangeKeyValue(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_NotifyChangeKeyValue *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_NOTIFYCHANGEKEYVALUE];
-
+
r = talloc(NULL, struct winreg_NotifyChangeKeyValue);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_NotifyChangeKeyValue, r);
-
+ }
+
r->out.result = _winreg_NotifyChangeKeyValue(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_NotifyChangeKeyValue, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_OpenKey(pipes_struct *p)
@@ -1136,74 +1166,76 @@ static bool api_winreg_OpenKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENKEY];
-
+
r = talloc(NULL, struct winreg_OpenKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenKey, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_QueryInfoKey(pipes_struct *p)
@@ -1214,117 +1246,119 @@ static bool api_winreg_QueryInfoKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_QueryInfoKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_QUERYINFOKEY];
-
+
r = talloc(NULL, struct winreg_QueryInfoKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_QueryInfoKey, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.classname = r->in.classname;
r->out.num_subkeys = talloc_zero(r, uint32_t);
if (r->out.num_subkeys == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.max_subkeylen = talloc_zero(r, uint32_t);
if (r->out.max_subkeylen == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.max_classlen = talloc_zero(r, uint32_t);
if (r->out.max_classlen == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.num_values = talloc_zero(r, uint32_t);
if (r->out.num_values == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.max_valnamelen = talloc_zero(r, uint32_t);
if (r->out.max_valnamelen == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.max_valbufsize = talloc_zero(r, uint32_t);
if (r->out.max_valbufsize == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.secdescsize = talloc_zero(r, uint32_t);
if (r->out.secdescsize == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.last_changed_time = talloc_zero(r, NTTIME);
if (r->out.last_changed_time == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_QueryInfoKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_QueryInfoKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_QueryValue(pipes_struct *p)
@@ -1335,72 +1369,74 @@ static bool api_winreg_QueryValue(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_QueryValue *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_QUERYVALUE];
-
+
r = talloc(NULL, struct winreg_QueryValue);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_QueryValue, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.type = r->in.type;
r->out.data = r->in.data;
r->out.data_size = r->in.data_size;
r->out.value_length = r->in.value_length;
r->out.result = _winreg_QueryValue(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_QueryValue, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_ReplaceKey(pipes_struct *p)
@@ -1411,67 +1447,69 @@ static bool api_winreg_ReplaceKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_ReplaceKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_REPLACEKEY];
-
+
r = talloc(NULL, struct winreg_ReplaceKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_ReplaceKey, r);
-
+ }
+
r->out.result = _winreg_ReplaceKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_ReplaceKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_RestoreKey(pipes_struct *p)
@@ -1482,67 +1520,69 @@ static bool api_winreg_RestoreKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_RestoreKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_RESTOREKEY];
-
+
r = talloc(NULL, struct winreg_RestoreKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_RestoreKey, r);
-
+ }
+
r->out.result = _winreg_RestoreKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_RestoreKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_SaveKey(pipes_struct *p)
@@ -1553,67 +1593,69 @@ static bool api_winreg_SaveKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_SaveKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_SAVEKEY];
-
+
r = talloc(NULL, struct winreg_SaveKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_SaveKey, r);
-
+ }
+
r->out.result = _winreg_SaveKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_SaveKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_SetKeySecurity(pipes_struct *p)
@@ -1624,67 +1666,69 @@ static bool api_winreg_SetKeySecurity(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_SetKeySecurity *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_SETKEYSECURITY];
-
+
r = talloc(NULL, struct winreg_SetKeySecurity);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_SetKeySecurity, r);
-
+ }
+
r->out.result = _winreg_SetKeySecurity(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_SetKeySecurity, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_SetValue(pipes_struct *p)
@@ -1695,67 +1739,69 @@ static bool api_winreg_SetValue(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_SetValue *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_SETVALUE];
-
+
r = talloc(NULL, struct winreg_SetValue);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_SetValue, r);
-
+ }
+
r->out.result = _winreg_SetValue(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_SetValue, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_UnLoadKey(pipes_struct *p)
@@ -1766,67 +1812,69 @@ static bool api_winreg_UnLoadKey(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_UnLoadKey *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_UNLOADKEY];
-
+
r = talloc(NULL, struct winreg_UnLoadKey);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_UnLoadKey, r);
-
+ }
+
r->out.result = _winreg_UnLoadKey(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_UnLoadKey, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_InitiateSystemShutdown(pipes_struct *p)
@@ -1837,67 +1885,69 @@ static bool api_winreg_InitiateSystemShutdown(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_InitiateSystemShutdown *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_INITIATESYSTEMSHUTDOWN];
-
+
r = talloc(NULL, struct winreg_InitiateSystemShutdown);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_InitiateSystemShutdown, r);
-
+ }
+
r->out.result = _winreg_InitiateSystemShutdown(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_InitiateSystemShutdown, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_AbortSystemShutdown(pipes_struct *p)
@@ -1908,67 +1958,69 @@ static bool api_winreg_AbortSystemShutdown(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_AbortSystemShutdown *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_ABORTSYSTEMSHUTDOWN];
-
+
r = talloc(NULL, struct winreg_AbortSystemShutdown);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_AbortSystemShutdown, r);
-
+ }
+
r->out.result = _winreg_AbortSystemShutdown(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_AbortSystemShutdown, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_GetVersion(pipes_struct *p)
@@ -1979,74 +2031,76 @@ static bool api_winreg_GetVersion(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_GetVersion *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_GETVERSION];
-
+
r = talloc(NULL, struct winreg_GetVersion);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_GetVersion, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.version = talloc_zero(r, uint32_t);
if (r->out.version == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_GetVersion(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_GetVersion, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_OpenHKCC(pipes_struct *p)
@@ -2057,74 +2111,76 @@ static bool api_winreg_OpenHKCC(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenHKCC *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKCC];
-
+
r = talloc(NULL, struct winreg_OpenHKCC);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKCC, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenHKCC(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKCC, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_OpenHKDD(pipes_struct *p)
@@ -2135,74 +2191,76 @@ static bool api_winreg_OpenHKDD(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenHKDD *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKDD];
-
+
r = talloc(NULL, struct winreg_OpenHKDD);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKDD, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenHKDD(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKDD, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_QueryMultipleValues(pipes_struct *p)
@@ -2213,71 +2271,73 @@ static bool api_winreg_QueryMultipleValues(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_QueryMultipleValues *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_QUERYMULTIPLEVALUES];
-
+
r = talloc(NULL, struct winreg_QueryMultipleValues);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_QueryMultipleValues, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.values = r->in.values;
r->out.buffer = r->in.buffer;
r->out.buffer_size = r->in.buffer_size;
r->out.result = _winreg_QueryMultipleValues(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_QueryMultipleValues, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_InitiateSystemShutdownEx(pipes_struct *p)
@@ -2288,67 +2348,69 @@ static bool api_winreg_InitiateSystemShutdownEx(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_InitiateSystemShutdownEx *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_INITIATESYSTEMSHUTDOWNEX];
-
+
r = talloc(NULL, struct winreg_InitiateSystemShutdownEx);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_InitiateSystemShutdownEx, r);
-
+ }
+
r->out.result = _winreg_InitiateSystemShutdownEx(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_InitiateSystemShutdownEx, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_SaveKeyEx(pipes_struct *p)
@@ -2359,67 +2421,69 @@ static bool api_winreg_SaveKeyEx(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_SaveKeyEx *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_SAVEKEYEX];
-
+
r = talloc(NULL, struct winreg_SaveKeyEx);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_SaveKeyEx, r);
-
+ }
+
r->out.result = _winreg_SaveKeyEx(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_SaveKeyEx, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_OpenHKPT(pipes_struct *p)
@@ -2430,74 +2494,76 @@ static bool api_winreg_OpenHKPT(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenHKPT *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKPT];
-
+
r = talloc(NULL, struct winreg_OpenHKPT);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKPT, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenHKPT(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKPT, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_OpenHKPN(pipes_struct *p)
@@ -2508,74 +2574,76 @@ static bool api_winreg_OpenHKPN(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_OpenHKPN *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_OPENHKPN];
-
+
r = talloc(NULL, struct winreg_OpenHKPN);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_OpenHKPN, r);
-
+ }
+
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(r, struct policy_handle);
if (r->out.handle == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
r->out.result = _winreg_OpenHKPN(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_OpenHKPN, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}
static bool api_winreg_QueryMultipleValues2(pipes_struct *p)
@@ -2586,67 +2654,69 @@ static bool api_winreg_QueryMultipleValues2(pipes_struct *p)
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct winreg_QueryMultipleValues2 *r;
-
+
call = &ndr_table_winreg.calls[NDR_WINREG_QUERYMULTIPLEVALUES2];
-
+
r = talloc(NULL, struct winreg_QueryMultipleValues2);
if (r == NULL) {
- return False;
+ return false;
}
-
+
if (!prs_data_blob(&p->in_data.data, &blob, r)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull = ndr_pull_init_blob(&blob, r);
if (pull == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
ndr_err = call->ndr_pull(pull, NDR_IN, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(winreg_QueryMultipleValues2, r);
-
+ }
+
r->out.result = _winreg_QueryMultipleValues2(p, r);
-
+
if (p->rng_fault_state) {
talloc_free(r);
- /* Return True here, srv_pipe_hnd.c will take care */
- return True;
+ /* Return true here, srv_pipe_hnd.c will take care */
+ return true;
}
-
- if (DEBUGLEVEL >= 10)
+
+ if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(winreg_QueryMultipleValues2, r);
-
+ }
+
push = ndr_push_init_ctx(r);
if (push == NULL) {
talloc_free(r);
- return False;
+ return false;
}
-
+
ndr_err = call->ndr_push(push, NDR_OUT, r);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
blob = ndr_push_blob(push);
- if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32)blob.length)) {
+ if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {
talloc_free(r);
- return False;
+ return false;
}
-
+
talloc_free(r);
-
- return True;
+
+ return true;
}