summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-11-11 00:43:41 +0000
committerLuke Leighton <lkcl@samba.org>1998-11-11 00:43:41 +0000
commitedf630c85ea6a1d4bfa74427190e27c3a97085ea (patch)
tree6b49d8a4c0342ebd5716711c1c06d01759796c6a
parentd90f25d38098de5e41e745e801a8dcbab727c285 (diff)
downloadsamba-edf630c85ea6a1d4bfa74427190e27c3a97085ea.tar.gz
samba-edf630c85ea6a1d4bfa74427190e27c3a97085ea.tar.bz2
samba-edf630c85ea6a1d4bfa74427190e27c3a97085ea.zip
renamed unk_1b to flush_key
(This used to be commit ddfdb6534671a0e9bbbefe555a92925d41abaddf)
-rw-r--r--source3/include/proto.h8
-rw-r--r--source3/include/rpc_reg.h14
-rw-r--r--source3/rpc_client/cli_reg.c18
-rw-r--r--source3/rpc_parse/parse_reg.c10
-rw-r--r--source3/rpcclient/cmd_reg.c12
5 files changed, 31 insertions, 31 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 533ca72a02..e16f79028c 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1302,7 +1302,7 @@ BOOL do_reg_open_hklm(struct cli_state *cli, uint16 unknown_0, uint32 level,
POLICY_HND *hnd);
BOOL do_reg_open_hku(struct cli_state *cli, uint16 unknown_0, uint32 level,
POLICY_HND *hnd);
-BOOL do_reg_unk_b(struct cli_state *cli, POLICY_HND *hnd);
+BOOL do_reg_flush_key(struct cli_state *cli, POLICY_HND *hnd);
BOOL do_reg_query_key(struct cli_state *cli, POLICY_HND *hnd,
char *class, uint32 *class_len,
uint32 *num_subkeys, uint32 *max_subkeylen,
@@ -1616,9 +1616,9 @@ void make_reg_q_open_hklm(REG_Q_OPEN_HKLM *q_o,
uint16 unknown_0, uint32 level);
void reg_io_q_open_hklm(char *desc, REG_Q_OPEN_HKLM *r_q, prs_struct *ps, int depth);
void reg_io_r_open_hklm(char *desc, REG_R_OPEN_HKLM *r_r, prs_struct *ps, int depth);
-void make_reg_q_unk_b(REG_Q_UNK_B *q_u, POLICY_HND *pol);
-void reg_io_q_unk_b(char *desc, REG_Q_UNK_B *r_q, prs_struct *ps, int depth);
-void reg_io_r_unk_b(char *desc, REG_R_UNK_B *r_r, prs_struct *ps, int depth);
+void make_reg_q_flush_key(REG_Q_FLUSH_KEY *q_u, POLICY_HND *pol);
+void reg_io_q_flush_key(char *desc, REG_Q_FLUSH_KEY *r_q, prs_struct *ps, int depth);
+void reg_io_r_flush_key(char *desc, REG_R_FLUSH_KEY *r_r, prs_struct *ps, int depth);
void make_reg_q_create_key(REG_Q_CREATE_KEY *q_c, POLICY_HND *hnd,
char *name, char *class,
SEC_INFO *sam_access);
diff --git a/source3/include/rpc_reg.h b/source3/include/rpc_reg.h
index 32b1c1912f..1a64866f03 100644
--- a/source3/include/rpc_reg.h
+++ b/source3/include/rpc_reg.h
@@ -28,7 +28,7 @@
/* winreg pipe defines */
#define REG_OPEN_HKLM 0x02
#define REG_OPEN_HKU 0x04
-#define REG_UNK_B 0x0B
+#define REG_FLUSH_KEY 0x0B
#define REG_UNK_1A 0x1a
#define REG_QUERY_KEY 0x10
#define REG_ENUM_KEY 0x09
@@ -80,19 +80,19 @@ typedef struct r_reg_open_unk4_info
} REG_R_OPEN_HKU;
-/* REG_Q_UNK_B */
-typedef struct q_reg_open_unkb_info
+/* REG_Q_FLUSH_KEY */
+typedef struct q_reg_open_flush_key_info
{
POLICY_HND pol; /* policy handle */
-} REG_Q_UNK_B;
+} REG_Q_FLUSH_KEY;
-/* REG_R_UNK_B */
-typedef struct r_reg_open_unkb_info
+/* REG_R_FLUSH_KEY */
+typedef struct r_reg_open_flush_key_info
{
uint32 status; /* return status */
-} REG_R_UNK_B;
+} REG_R_FLUSH_KEY;
/* REG_Q_GET_KEY_SEC */
diff --git a/source3/rpc_client/cli_reg.c b/source3/rpc_client/cli_reg.c
index a38be4149d..e1872bbd79 100644
--- a/source3/rpc_client/cli_reg.c
+++ b/source3/rpc_client/cli_reg.c
@@ -208,11 +208,11 @@ do a REG Unknown 0xB command. sent after a create key or create value.
this might be some sort of "sync" or "refresh" command, sent after
modification of the registry...
****************************************************************************/
-BOOL do_reg_unk_b(struct cli_state *cli, POLICY_HND *hnd)
+BOOL do_reg_flush_key(struct cli_state *cli, POLICY_HND *hnd)
{
prs_struct rbuf;
prs_struct buf;
- REG_Q_UNK_B q_o;
+ REG_Q_FLUSH_KEY q_o;
BOOL valid_query = False;
if (hnd == NULL) return False;
@@ -220,30 +220,30 @@ BOOL do_reg_unk_b(struct cli_state *cli, POLICY_HND *hnd)
prs_init(&buf , 1024, 4, SAFETY_MARGIN, False);
prs_init(&rbuf, 0 , 4, SAFETY_MARGIN, True );
- /* create and send a MSRPC command with api REG_UNK_B */
+ /* create and send a MSRPC command with api REG_FLUSH_KEY */
DEBUG(4,("REG Unknown 0xB\n"));
- make_reg_q_unk_b(&q_o, hnd);
+ make_reg_q_flush_key(&q_o, hnd);
/* turn parameters into data stream */
- reg_io_q_unk_b("", &q_o, &buf, 0);
+ reg_io_q_flush_key("", &q_o, &buf, 0);
/* send the data on \PIPE\ */
- if (rpc_api_pipe_req(cli, REG_UNK_B, &buf, &rbuf))
+ if (rpc_api_pipe_req(cli, REG_FLUSH_KEY, &buf, &rbuf))
{
- REG_R_UNK_B r_o;
+ REG_R_FLUSH_KEY r_o;
BOOL p;
ZERO_STRUCT(r_o);
- reg_io_r_unk_b("", &r_o, &rbuf, 0);
+ reg_io_r_flush_key("", &r_o, &rbuf, 0);
p = rbuf.offset != 0;
if (p && r_o.status != 0)
{
/* report error code */
- DEBUG(0,("REG_UNK_B: %s\n", get_nt_error_msg(r_o.status)));
+ DEBUG(0,("REG_FLUSH_KEY: %s\n", get_nt_error_msg(r_o.status)));
p = False;
}
diff --git a/source3/rpc_parse/parse_reg.c b/source3/rpc_parse/parse_reg.c
index 109d75731c..9d816d0062 100644
--- a/source3/rpc_parse/parse_reg.c
+++ b/source3/rpc_parse/parse_reg.c
@@ -82,7 +82,7 @@ void reg_io_r_open_hklm(char *desc, REG_R_OPEN_HKLM *r_r, prs_struct *ps, int d
/*******************************************************************
creates a structure.
********************************************************************/
-void make_reg_q_unk_b(REG_Q_UNK_B *q_u, POLICY_HND *pol)
+void make_reg_q_flush_key(REG_Q_FLUSH_KEY *q_u, POLICY_HND *pol)
{
memcpy(&(q_u->pol), pol, sizeof(q_u->pol));
}
@@ -90,11 +90,11 @@ void make_reg_q_unk_b(REG_Q_UNK_B *q_u, POLICY_HND *pol)
/*******************************************************************
reads or writes a structure.
********************************************************************/
-void reg_io_q_unk_b(char *desc, REG_Q_UNK_B *r_q, prs_struct *ps, int depth)
+void reg_io_q_flush_key(char *desc, REG_Q_FLUSH_KEY *r_q, prs_struct *ps, int depth)
{
if (r_q == NULL) return;
- prs_debug(ps, depth, desc, "reg_io_q_unk_b");
+ prs_debug(ps, depth, desc, "reg_io_q_flush_key");
depth++;
prs_align(ps);
@@ -106,11 +106,11 @@ void reg_io_q_unk_b(char *desc, REG_Q_UNK_B *r_q, prs_struct *ps, int depth)
/*******************************************************************
reads or writes a structure.
********************************************************************/
-void reg_io_r_unk_b(char *desc, REG_R_UNK_B *r_r, prs_struct *ps, int depth)
+void reg_io_r_flush_key(char *desc, REG_R_FLUSH_KEY *r_r, prs_struct *ps, int depth)
{
if (r_r == NULL) return;
- prs_debug(ps, depth, desc, "reg_io_r_unk_b");
+ prs_debug(ps, depth, desc, "reg_io_r_flush_key");
depth++;
prs_align(ps);
diff --git a/source3/rpcclient/cmd_reg.c b/source3/rpcclient/cmd_reg.c
index 189f4fe9d4..28e511fa03 100644
--- a/source3/rpcclient/cmd_reg.c
+++ b/source3/rpcclient/cmd_reg.c
@@ -489,8 +489,8 @@ void cmd_reg_create_val(struct client_info *info)
res4 = res3 ? do_reg_create_val(smb_cli, &parent_pol,
val_name, val_type, &value) : False;
- /* some sort of "sync" or "refresh" on the parent key? */
- res4 = res4 ? do_reg_unk_b(smb_cli, &parent_pol) : False;
+ /* flush the modified key */
+ res4 = res4 ? do_reg_flush_key(smb_cli, &parent_pol) : False;
/* close the val handle */
res3 = res3 ? do_reg_close(smb_cli, &parent_pol) : False;
@@ -554,8 +554,8 @@ void cmd_reg_delete_key(struct client_info *info)
/* create an entry */
res4 = res3 ? do_reg_delete_key(smb_cli, &parent_pol, key_name) : False;
- /* some sort of "sync" or "refresh" on the parent key? */
- res4 = res4 ? do_reg_unk_b(smb_cli, &parent_pol) : False;
+ /* flush the modified key */
+ res4 = res4 ? do_reg_flush_key(smb_cli, &parent_pol) : False;
/* close the key handle */
res3 = res3 ? do_reg_close(smb_cli, &parent_pol) : False;
@@ -639,8 +639,8 @@ void cmd_reg_create_key(struct client_info *info)
res4 = res3 ? do_reg_create_key(smb_cli, &parent_pol,
key_name, key_class, &sam_access, &key_pol) : False;
- /* some sort of "sync" or "refresh" on the parent key? */
- res4 = res4 ? do_reg_unk_b(smb_cli, &parent_pol) : False;
+ /* flush the modified key */
+ res4 = res4 ? do_reg_flush_key(smb_cli, &parent_pol) : False;
/* close the key handle */
res4 = res4 ? do_reg_close(smb_cli, &key_pol) : False;