From 6ce4aaad2ba38fce30c54dac4f7552b4b748e224 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Mon, 29 Mar 1999 17:24:46 +0000 Subject: added SamrQueryDomainInfo call info level 0x3 for kix32.exe support (This used to be commit ac070dfd39bfa9b60680855585155ce528ab7691) --- source3/rpc_parse/parse_samr.c | 41 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-) (limited to 'source3/rpc_parse') diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c index 09c881a812..6b75136f94 100644 --- a/source3/rpc_parse/parse_samr.c +++ b/source3/rpc_parse/parse_samr.c @@ -319,6 +319,34 @@ void samr_io_q_query_dom_info(char *desc, SAMR_Q_QUERY_DOMAIN_INFO *q_u, prs_st } +/******************************************************************* +makes a structure. +********************************************************************/ +void make_unk_info3(SAM_UNK_INFO_3 *u_3) +{ + if (u_3 == NULL) return; + + u_3->unknown_0 = 0x00000000; + u_3->unknown_1 = 0x80000000; +} + +/******************************************************************* +reads or writes a structure. +********************************************************************/ +void sam_io_unk_info3(char *desc, SAM_UNK_INFO_3 *u_3, prs_struct *ps, int depth) +{ + if (u_3 == NULL) return; + + prs_debug(ps, depth, desc, "sam_io_unk_info3"); + depth++; + + prs_uint32("unknown_0", ps, depth, &u_3->unknown_0); /* 0x0000 0000 */ + prs_uint32("unknown_1", ps, depth, &u_3->unknown_1); /* 0x8000 0000 */ + + prs_align(ps); + +} + /******************************************************************* makes a structure. ********************************************************************/ @@ -459,7 +487,6 @@ void make_unk_info1(SAM_UNK_INFO_1 *u_1) memset(u_1->padding, 0, sizeof(u_1->padding)); /* 12 bytes zeros */ u_1->unknown_1 = 0x80000000; u_1->unknown_2 = 0x00000000; - u_1->unknown_3 = 0x00000000; } /******************************************************************* @@ -476,7 +503,6 @@ void sam_io_unk_info1(char *desc, SAM_UNK_INFO_1 *u_1, prs_struct *ps, int depth prs_uint32("unknown_1", ps, depth, &u_1->unknown_1); /* 0x8000 0000 */ prs_uint32("unknown_2", ps, depth, &u_1->unknown_2); /* 0x0000 0000 */ - prs_uint32("unknown_3", ps, depth, &u_1->unknown_3); /* 0x0000 0000 */ prs_align(ps); } @@ -524,14 +550,19 @@ void samr_io_r_query_dom_info(char *desc, SAMR_R_QUERY_DOMAIN_INFO *r_u, prs_str { switch (r_u->switch_value) { + case 0x07: + { + sam_io_unk_info7("unk_inf7", &r_u->ctr->info.inf7, ps, depth); + break; + } case 0x06: { sam_io_unk_info6("unk_inf6", &r_u->ctr->info.inf6, ps, depth); break; } - case 0x07: + case 0x03: { - sam_io_unk_info7("unk_inf7", &r_u->ctr->info.inf7, ps, depth); + sam_io_unk_info3("unk_inf3", &r_u->ctr->info.inf3, ps, depth); break; } case 0x02: @@ -552,6 +583,8 @@ void samr_io_r_query_dom_info(char *desc, SAMR_R_QUERY_DOMAIN_INFO *r_u, prs_str } } } + + prs_uint32("status ", ps, depth, &(r_u->status)); } -- cgit