2 * Unix SMB/CIFS implementation.
3 * client auto-generated by pidl. DO NOT MODIFY!
7 #include "librpc/gen_ndr/cli_unixinfo.h"
9 NTSTATUS rpccli_unixinfo_SidToUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct dom_sid sid, uint64_t *uid)
11 struct unixinfo_SidToUid r;
18 NDR_PRINT_IN_DEBUG(unixinfo_SidToUid, &r);
20 status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, DCERPC_UNIXINFO_SIDTOUID, &r, (ndr_pull_flags_fn_t)ndr_pull_unixinfo_SidToUid, (ndr_push_flags_fn_t)ndr_push_unixinfo_SidToUid);
23 NDR_PRINT_OUT_DEBUG(unixinfo_SidToUid, &r);
25 if (NT_STATUS_IS_ERR(status)) {
29 /* Return variables */
36 NTSTATUS rpccli_unixinfo_UidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint64_t uid, struct dom_sid *sid)
38 struct unixinfo_UidToSid r;
45 NDR_PRINT_IN_DEBUG(unixinfo_UidToSid, &r);
47 status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, DCERPC_UNIXINFO_UIDTOSID, &r, (ndr_pull_flags_fn_t)ndr_pull_unixinfo_UidToSid, (ndr_push_flags_fn_t)ndr_push_unixinfo_UidToSid);
50 NDR_PRINT_OUT_DEBUG(unixinfo_UidToSid, &r);
52 if (NT_STATUS_IS_ERR(status)) {
56 /* Return variables */
63 NTSTATUS rpccli_unixinfo_SidToGid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct dom_sid sid, uint64_t *gid)
65 struct unixinfo_SidToGid r;
72 NDR_PRINT_IN_DEBUG(unixinfo_SidToGid, &r);
74 status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, DCERPC_UNIXINFO_SIDTOGID, &r, (ndr_pull_flags_fn_t)ndr_pull_unixinfo_SidToGid, (ndr_push_flags_fn_t)ndr_push_unixinfo_SidToGid);
77 NDR_PRINT_OUT_DEBUG(unixinfo_SidToGid, &r);
79 if (NT_STATUS_IS_ERR(status)) {
83 /* Return variables */
90 NTSTATUS rpccli_unixinfo_GidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint64_t gid, struct dom_sid *sid)
92 struct unixinfo_GidToSid r;
99 NDR_PRINT_IN_DEBUG(unixinfo_GidToSid, &r);
101 status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, DCERPC_UNIXINFO_GIDTOSID, &r, (ndr_pull_flags_fn_t)ndr_pull_unixinfo_GidToSid, (ndr_push_flags_fn_t)ndr_push_unixinfo_GidToSid);
103 if (DEBUGLEVEL >= 10)
104 NDR_PRINT_OUT_DEBUG(unixinfo_GidToSid, &r);
106 if (NT_STATUS_IS_ERR(status)) {
110 /* Return variables */
117 NTSTATUS rpccli_unixinfo_GetPWUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t *count, uint64_t *uids, struct unixinfo_GetPWUidInfo *infos)
119 struct unixinfo_GetPWUid r;
126 if (DEBUGLEVEL >= 10)
127 NDR_PRINT_IN_DEBUG(unixinfo_GetPWUid, &r);
129 status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, DCERPC_UNIXINFO_GETPWUID, &r, (ndr_pull_flags_fn_t)ndr_pull_unixinfo_GetPWUid, (ndr_push_flags_fn_t)ndr_push_unixinfo_GetPWUid);
131 if (DEBUGLEVEL >= 10)
132 NDR_PRINT_OUT_DEBUG(unixinfo_GetPWUid, &r);
134 if (NT_STATUS_IS_ERR(status)) {
138 /* Return variables */
139 *count = *r.out.count;
140 *infos = *r.out.infos;