summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc/rpc_wkssvc.c
blob: 1a4b154842c65a94bd11b8429075d641faf99572 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* dcerpc client calls generated by pidl */

#include "includes.h"


NTSTATUS dcerpc_wks_QueryInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct wks_QueryInfo *r)
{
	NTSTATUS status;

        if (p->flags & DCERPC_DEBUG_PRINT_IN) {
		NDR_PRINT_IN_DEBUG(wks_QueryInfo, r);		
	}

	status = dcerpc_ndr_request(p, DCERPC_WKS_QUERYINFO, mem_ctx,
				    (ndr_push_fn_t) ndr_push_wks_QueryInfo,
				    (ndr_pull_fn_t) ndr_pull_wks_QueryInfo,
				    r);

        if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
		NDR_PRINT_OUT_DEBUG(wks_QueryInfo, r);		
	}
	if (NT_STATUS_IS_OK(status)) status = r->out.result;

	return status;
}