2 * Unix SMB/CIFS implementation.
3 * client auto-generated by pidl. DO NOT MODIFY!
7 #include "librpc/gen_ndr/cli_epmapper.h"
9 NTSTATUS rpccli_epm_Insert(struct rpc_pipe_client *cli,
11 uint32_t num_ents /* [in] */,
12 struct epm_entry_t *entries /* [in] [size_is(num_ents)] */,
13 uint32_t replace /* [in] */)
19 r.in.num_ents = num_ents;
20 r.in.entries = entries;
21 r.in.replace = replace;
23 if (DEBUGLEVEL >= 10) {
24 NDR_PRINT_IN_DEBUG(epm_Insert, &r);
27 status = cli_do_rpc_ndr(cli,
34 if (!NT_STATUS_IS_OK(status)) {
38 if (DEBUGLEVEL >= 10) {
39 NDR_PRINT_OUT_DEBUG(epm_Insert, &r);
42 if (NT_STATUS_IS_ERR(status)) {
46 /* Return variables */
52 NTSTATUS rpccli_epm_Delete(struct rpc_pipe_client *cli,
54 uint32_t num_ents /* [in] */,
55 struct epm_entry_t *entries /* [in] [size_is(num_ents)] */)
61 r.in.num_ents = num_ents;
62 r.in.entries = entries;
64 if (DEBUGLEVEL >= 10) {
65 NDR_PRINT_IN_DEBUG(epm_Delete, &r);
68 status = cli_do_rpc_ndr(cli,
75 if (!NT_STATUS_IS_OK(status)) {
79 if (DEBUGLEVEL >= 10) {
80 NDR_PRINT_OUT_DEBUG(epm_Delete, &r);
83 if (NT_STATUS_IS_ERR(status)) {
87 /* Return variables */
93 NTSTATUS rpccli_epm_Lookup(struct rpc_pipe_client *cli,
95 uint32_t inquiry_type /* [in] */,
96 struct GUID *object /* [in] [ptr] */,
97 struct rpc_if_id_t *interface_id /* [in] [ptr] */,
98 uint32_t vers_option /* [in] */,
99 struct policy_handle *entry_handle /* [in,out] [ref] */,
100 uint32_t max_ents /* [in] */,
101 uint32_t *num_ents /* [out] [ref] */,
102 struct epm_entry_t *entries /* [out] [length_is(*num_ents),size_is(max_ents)] */)
108 r.in.inquiry_type = inquiry_type;
109 r.in.object = object;
110 r.in.interface_id = interface_id;
111 r.in.vers_option = vers_option;
112 r.in.entry_handle = entry_handle;
113 r.in.max_ents = max_ents;
115 if (DEBUGLEVEL >= 10) {
116 NDR_PRINT_IN_DEBUG(epm_Lookup, &r);
119 status = cli_do_rpc_ndr(cli,
126 if (!NT_STATUS_IS_OK(status)) {
130 if (DEBUGLEVEL >= 10) {
131 NDR_PRINT_OUT_DEBUG(epm_Lookup, &r);
134 if (NT_STATUS_IS_ERR(status)) {
138 /* Return variables */
139 *entry_handle = *r.out.entry_handle;
140 *num_ents = *r.out.num_ents;
141 memcpy(entries, r.out.entries, r.in.max_ents);
147 NTSTATUS rpccli_epm_Map(struct rpc_pipe_client *cli,
149 struct GUID *object /* [in] [ptr] */,
150 struct epm_twr_t *map_tower /* [in] [ptr] */,
151 struct policy_handle *entry_handle /* [in,out] [ref] */,
152 uint32_t max_towers /* [in] */,
153 uint32_t *num_towers /* [out] [ref] */,
154 struct epm_twr_p_t *towers /* [out] [length_is(*num_towers),size_is(max_towers)] */)
160 r.in.object = object;
161 r.in.map_tower = map_tower;
162 r.in.entry_handle = entry_handle;
163 r.in.max_towers = max_towers;
165 if (DEBUGLEVEL >= 10) {
166 NDR_PRINT_IN_DEBUG(epm_Map, &r);
169 status = cli_do_rpc_ndr(cli,
176 if (!NT_STATUS_IS_OK(status)) {
180 if (DEBUGLEVEL >= 10) {
181 NDR_PRINT_OUT_DEBUG(epm_Map, &r);
184 if (NT_STATUS_IS_ERR(status)) {
188 /* Return variables */
189 *entry_handle = *r.out.entry_handle;
190 *num_towers = *r.out.num_towers;
191 memcpy(towers, r.out.towers, r.in.max_towers);
197 NTSTATUS rpccli_epm_LookupHandleFree(struct rpc_pipe_client *cli,
199 struct policy_handle *entry_handle /* [in,out] [ref] */)
201 struct epm_LookupHandleFree r;
205 r.in.entry_handle = entry_handle;
207 if (DEBUGLEVEL >= 10) {
208 NDR_PRINT_IN_DEBUG(epm_LookupHandleFree, &r);
211 status = cli_do_rpc_ndr(cli,
215 NDR_EPM_LOOKUPHANDLEFREE,
218 if (!NT_STATUS_IS_OK(status)) {
222 if (DEBUGLEVEL >= 10) {
223 NDR_PRINT_OUT_DEBUG(epm_LookupHandleFree, &r);
226 if (NT_STATUS_IS_ERR(status)) {
230 /* Return variables */
231 *entry_handle = *r.out.entry_handle;
237 NTSTATUS rpccli_epm_InqObject(struct rpc_pipe_client *cli,
239 struct GUID *epm_object /* [in] [ref] */)
241 struct epm_InqObject r;
245 r.in.epm_object = epm_object;
247 if (DEBUGLEVEL >= 10) {
248 NDR_PRINT_IN_DEBUG(epm_InqObject, &r);
251 status = cli_do_rpc_ndr(cli,
258 if (!NT_STATUS_IS_OK(status)) {
262 if (DEBUGLEVEL >= 10) {
263 NDR_PRINT_OUT_DEBUG(epm_InqObject, &r);
266 if (NT_STATUS_IS_ERR(status)) {
270 /* Return variables */
276 NTSTATUS rpccli_epm_MgmtDelete(struct rpc_pipe_client *cli,
278 uint32_t object_speced /* [in] */,
279 struct GUID *object /* [in] [ptr] */,
280 struct epm_twr_t *tower /* [in] [ptr] */)
282 struct epm_MgmtDelete r;
286 r.in.object_speced = object_speced;
287 r.in.object = object;
290 if (DEBUGLEVEL >= 10) {
291 NDR_PRINT_IN_DEBUG(epm_MgmtDelete, &r);
294 status = cli_do_rpc_ndr(cli,
301 if (!NT_STATUS_IS_OK(status)) {
305 if (DEBUGLEVEL >= 10) {
306 NDR_PRINT_OUT_DEBUG(epm_MgmtDelete, &r);
309 if (NT_STATUS_IS_ERR(status)) {
313 /* Return variables */
319 NTSTATUS rpccli_epm_MapAuth(struct rpc_pipe_client *cli,
322 struct epm_MapAuth r;
327 if (DEBUGLEVEL >= 10) {
328 NDR_PRINT_IN_DEBUG(epm_MapAuth, &r);
331 status = cli_do_rpc_ndr(cli,
338 if (!NT_STATUS_IS_OK(status)) {
342 if (DEBUGLEVEL >= 10) {
343 NDR_PRINT_OUT_DEBUG(epm_MapAuth, &r);
346 if (NT_STATUS_IS_ERR(status)) {
350 /* Return variables */