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
,
14 struct unixinfo_SidToUid r
;
20 if (DEBUGLEVEL
>= 10) {
21 NDR_PRINT_IN_DEBUG(unixinfo_SidToUid
, &r
);
24 status
= cli_do_rpc_ndr(cli
,
28 NDR_UNIXINFO_SIDTOUID
,
31 if (!NT_STATUS_IS_OK(status
)) {
35 if (DEBUGLEVEL
>= 10) {
36 NDR_PRINT_OUT_DEBUG(unixinfo_SidToUid
, &r
);
39 if (NT_STATUS_IS_ERR(status
)) {
43 /* Return variables */
50 NTSTATUS
rpccli_unixinfo_UidToSid(struct rpc_pipe_client
*cli
,
55 struct unixinfo_UidToSid r
;
61 if (DEBUGLEVEL
>= 10) {
62 NDR_PRINT_IN_DEBUG(unixinfo_UidToSid
, &r
);
65 status
= cli_do_rpc_ndr(cli
,
69 NDR_UNIXINFO_UIDTOSID
,
72 if (!NT_STATUS_IS_OK(status
)) {
76 if (DEBUGLEVEL
>= 10) {
77 NDR_PRINT_OUT_DEBUG(unixinfo_UidToSid
, &r
);
80 if (NT_STATUS_IS_ERR(status
)) {
84 /* Return variables */
91 NTSTATUS
rpccli_unixinfo_SidToGid(struct rpc_pipe_client
*cli
,
96 struct unixinfo_SidToGid r
;
102 if (DEBUGLEVEL
>= 10) {
103 NDR_PRINT_IN_DEBUG(unixinfo_SidToGid
, &r
);
106 status
= cli_do_rpc_ndr(cli
,
110 NDR_UNIXINFO_SIDTOGID
,
113 if (!NT_STATUS_IS_OK(status
)) {
117 if (DEBUGLEVEL
>= 10) {
118 NDR_PRINT_OUT_DEBUG(unixinfo_SidToGid
, &r
);
121 if (NT_STATUS_IS_ERR(status
)) {
125 /* Return variables */
132 NTSTATUS
rpccli_unixinfo_GidToSid(struct rpc_pipe_client
*cli
,
137 struct unixinfo_GidToSid r
;
143 if (DEBUGLEVEL
>= 10) {
144 NDR_PRINT_IN_DEBUG(unixinfo_GidToSid
, &r
);
147 status
= cli_do_rpc_ndr(cli
,
151 NDR_UNIXINFO_GIDTOSID
,
154 if (!NT_STATUS_IS_OK(status
)) {
158 if (DEBUGLEVEL
>= 10) {
159 NDR_PRINT_OUT_DEBUG(unixinfo_GidToSid
, &r
);
162 if (NT_STATUS_IS_ERR(status
)) {
166 /* Return variables */
173 NTSTATUS
rpccli_unixinfo_GetPWUid(struct rpc_pipe_client
*cli
,
177 struct unixinfo_GetPWUidInfo
*infos
)
179 struct unixinfo_GetPWUid r
;
186 if (DEBUGLEVEL
>= 10) {
187 NDR_PRINT_IN_DEBUG(unixinfo_GetPWUid
, &r
);
190 status
= cli_do_rpc_ndr(cli
,
194 NDR_UNIXINFO_GETPWUID
,
197 if (!NT_STATUS_IS_OK(status
)) {
201 if (DEBUGLEVEL
>= 10) {
202 NDR_PRINT_OUT_DEBUG(unixinfo_GetPWUid
, &r
);
205 if (NT_STATUS_IS_ERR(status
)) {
209 /* Return variables */
210 *count
= *r
.out
.count
;
211 memcpy(infos
, r
.out
.infos
, *r
.in
.count
);