re-run make idl.
[amitay/samba.git] / source3 / librpc / gen_ndr / libnetapi.h
1 /* header auto-generated by pidl */
2
3 #include <stdint.h>
4
5 #define LIBNETAPI_LOCAL_SERVER(x) (!x || is_myname_or_ipaddr(x))
6 #ifndef MAXSUBAUTHS
7 #define MAXSUBAUTHS 15 /* max sub authorities in a SID */
8 #endif
9 #ifndef _HEADER_libnetapi
10 #define _HEADER_libnetapi
11
12 #define ERROR_MORE_DATA ( 234L )
13 enum NET_API_STATUS
14 #ifndef USE_UINT_ENUMS
15  {
16         NERR_Success=0
17 }
18 #else
19  { __donnot_use_enum_NET_API_STATUS=0x7FFFFFFF}
20 #define NERR_Success ( 0 )
21 #endif
22 ;
23
24 struct domsid {
25         uint8_t sid_rev_num;
26         uint8_t num_auths;
27         uint8_t id_auth[6];
28         uint32_t *sub_auths;
29 };
30
31 struct SERVER_INFO_1005 {
32         const char * sv1005_comment;
33 };
34
35 struct DOMAIN_CONTROLLER_INFO {
36         const char * domain_controller_name;
37         const char * domain_controller_address;
38         uint32_t domain_controller_address_type;
39         struct GUID domain_guid;
40         const char * domain_name;
41         const char * dns_forest_name;
42         uint32_t flags;
43         const char * dc_site_name;
44         const char * client_site_name;
45 };
46
47 struct USER_INFO_0 {
48         const char * usri0_name;
49 };
50
51 struct USER_INFO_1 {
52         const char * usri1_name;
53         const char * usri1_password;
54         uint32_t usri1_password_age;
55         uint32_t usri1_priv;
56         const char * usri1_home_dir;
57         const char * usri1_comment;
58         uint32_t usri1_flags;
59         const char * usri1_script_path;
60 };
61
62 struct NET_DISPLAY_USER {
63         const char * usri1_name;
64         const char * usri1_comment;
65         uint32_t usri1_flags;
66         const char * usri1_full_name;
67         uint32_t usri1_user_id;
68         uint32_t usri1_next_index;
69 };
70
71 struct NET_DISPLAY_MACHINE {
72         const char * usri2_name;
73         const char * usri2_comment;
74         uint32_t usri2_flags;
75         uint32_t usri2_user_id;
76         uint32_t usri2_next_index;
77 };
78
79 struct NET_DISPLAY_GROUP {
80         const char * grpi3_name;
81         const char * grpi3_comment;
82         uint32_t grpi3_group_id;
83         uint32_t grpi3_attributes;
84         uint32_t grpi3_next_index;
85 };
86
87 struct GROUP_INFO_0 {
88         const char * grpi0_name;
89 };
90
91 struct GROUP_INFO_1 {
92         const char * grpi1_name;
93         const char * grpi1_comment;
94 };
95
96 struct GROUP_INFO_2 {
97         const char * grpi2_name;
98         const char * grpi2_comment;
99         uint32_t grpi2_group_id;
100         uint32_t grpi2_attributes;
101 };
102
103 struct GROUP_INFO_3 {
104         const char * grpi3_name;
105         const char * grpi3_comment;
106         struct domsid grpi3_group_sid;
107         uint32_t grpi3_attributes;
108 };
109
110
111 struct NetJoinDomain {
112         struct {
113                 const char * server;/* [unique] */
114                 const char * domain;/* [ref] */
115                 const char * account_ou;/* [unique] */
116                 const char * account;/* [unique] */
117                 const char * password;/* [unique] */
118                 uint32_t join_flags;
119         } in;
120
121         struct {
122                 enum NET_API_STATUS result;
123         } out;
124
125 };
126
127
128 struct NetUnjoinDomain {
129         struct {
130                 const char * server_name;/* [unique] */
131                 const char * account;/* [unique] */
132                 const char * password;/* [unique] */
133                 uint32_t unjoin_flags;
134         } in;
135
136         struct {
137                 enum NET_API_STATUS result;
138         } out;
139
140 };
141
142
143 struct NetGetJoinInformation {
144         struct {
145                 const char * server_name;/* [unique] */
146         } in;
147
148         struct {
149                 const char * *name_buffer;/* [ref] */
150                 uint16_t *name_type;/* [ref] */
151                 enum NET_API_STATUS result;
152         } out;
153
154 };
155
156
157 struct NetGetJoinableOUs {
158         struct {
159                 const char * server_name;/* [unique] */
160                 const char * domain;/* [ref] */
161                 const char * account;/* [unique] */
162                 const char * password;/* [unique] */
163         } in;
164
165         struct {
166                 uint32_t *ou_count;/* [ref] */
167                 const char * **ous;/* [ref] */
168                 enum NET_API_STATUS result;
169         } out;
170
171 };
172
173
174 struct NetServerGetInfo {
175         struct {
176                 const char * server_name;/* [unique] */
177                 uint32_t level;
178         } in;
179
180         struct {
181                 uint8_t **buffer;/* [ref] */
182                 enum NET_API_STATUS result;
183         } out;
184
185 };
186
187
188 struct NetServerSetInfo {
189         struct {
190                 const char * server_name;/* [unique] */
191                 uint32_t level;
192                 uint8_t *buffer;/* [ref] */
193         } in;
194
195         struct {
196                 uint32_t *parm_error;/* [ref] */
197                 enum NET_API_STATUS result;
198         } out;
199
200 };
201
202
203 struct NetGetDCName {
204         struct {
205                 const char * server_name;/* [unique] */
206                 const char * domain_name;/* [unique] */
207         } in;
208
209         struct {
210                 uint8_t **buffer;/* [ref] */
211                 enum NET_API_STATUS result;
212         } out;
213
214 };
215
216
217 struct NetGetAnyDCName {
218         struct {
219                 const char * server_name;/* [unique] */
220                 const char * domain_name;/* [unique] */
221         } in;
222
223         struct {
224                 uint8_t **buffer;/* [ref] */
225                 enum NET_API_STATUS result;
226         } out;
227
228 };
229
230
231 struct DsGetDcName {
232         struct {
233                 const char * server_name;/* [unique] */
234                 const char * domain_name;/* [ref] */
235                 struct GUID *domain_guid;/* [unique] */
236                 const char * site_name;/* [unique] */
237                 uint32_t flags;
238         } in;
239
240         struct {
241                 struct DOMAIN_CONTROLLER_INFO **dc_info;/* [ref] */
242                 enum NET_API_STATUS result;
243         } out;
244
245 };
246
247
248 struct NetUserAdd {
249         struct {
250                 const char * server_name;/* [unique] */
251                 uint32_t level;
252                 uint8_t *buffer;/* [ref] */
253         } in;
254
255         struct {
256                 uint32_t *parm_error;/* [ref] */
257                 enum NET_API_STATUS result;
258         } out;
259
260 };
261
262
263 struct NetUserDel {
264         struct {
265                 const char * server_name;/* [unique] */
266                 const char * user_name;/* [ref] */
267         } in;
268
269         struct {
270                 enum NET_API_STATUS result;
271         } out;
272
273 };
274
275
276 struct NetUserEnum {
277         struct {
278                 const char * server_name;/* [unique] */
279                 uint32_t level;
280                 uint32_t filter;
281                 uint32_t prefmaxlen;
282                 uint32_t *resume_handle;/* [ref] */
283         } in;
284
285         struct {
286                 uint8_t **buffer;/* [ref] */
287                 uint32_t *entries_read;/* [ref] */
288                 uint32_t *total_entries;/* [ref] */
289                 uint32_t *resume_handle;/* [ref] */
290                 enum NET_API_STATUS result;
291         } out;
292
293 };
294
295
296 struct NetQueryDisplayInformation {
297         struct {
298                 const char * server_name;/* [unique] */
299                 uint32_t level;
300                 uint32_t idx;
301                 uint32_t entries_requested;
302                 uint32_t prefmaxlen;
303         } in;
304
305         struct {
306                 uint32_t *entries_read;/* [ref] */
307                 void **buffer;/* [noprint,ref] */
308                 enum NET_API_STATUS result;
309         } out;
310
311 };
312
313
314 struct NetGroupAdd {
315         struct {
316                 const char * server_name;
317                 uint32_t level;
318                 uint8_t *buf;/* [ref] */
319         } in;
320
321         struct {
322                 uint32_t *parm_err;/* [ref] */
323                 enum NET_API_STATUS result;
324         } out;
325
326 };
327
328 #endif /* _HEADER_libnetapi */