Re-run make idl.
[ira/wip.git] / source / 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 _HEADER_libnetapi
7 #define _HEADER_libnetapi
8
9 #define ERROR_MORE_DATA ( 234L )
10 enum NET_API_STATUS
11 #ifndef USE_UINT_ENUMS
12  {
13         NERR_Success=0
14 }
15 #else
16  { __donnot_use_enum_NET_API_STATUS=0x7FFFFFFF}
17 #define NERR_Success ( 0 )
18 #endif
19 ;
20
21 struct DOMAIN_CONTROLLER_INFO {
22         const char * domain_controller_name;
23         const char * domain_controller_address;
24         uint32_t domain_controller_address_type;
25         struct GUID domain_guid;
26         const char * domain_name;
27         const char * dns_forest_name;
28         uint32_t flags;
29         const char * dc_site_name;
30         const char * client_site_name;
31 };
32
33 struct USER_INFO_0 {
34         const char * usri0_name;
35 };
36
37 struct USER_INFO_1 {
38         const char * usri1_name;
39         const char * usri1_password;
40         uint32_t usri1_password_age;
41         uint32_t usri1_priv;
42         const char * usri1_home_dir;
43         const char * usri1_comment;
44         uint32_t usri1_flags;
45         const char * usri1_script_path;
46 };
47
48
49 struct NetJoinDomain {
50         struct {
51                 const char * server;/* [unique] */
52                 const char * domain;/* [ref] */
53                 const char * account_ou;/* [unique] */
54                 const char * account;/* [unique] */
55                 const char * password;/* [unique] */
56                 uint32_t join_flags;
57         } in;
58
59         struct {
60                 enum NET_API_STATUS result;
61         } out;
62
63 };
64
65
66 struct NetUnjoinDomain {
67         struct {
68                 const char * server_name;/* [unique] */
69                 const char * account;/* [unique] */
70                 const char * password;/* [unique] */
71                 uint32_t unjoin_flags;
72         } in;
73
74         struct {
75                 enum NET_API_STATUS result;
76         } out;
77
78 };
79
80
81 struct NetGetJoinInformation {
82         struct {
83                 const char * server_name;/* [unique] */
84         } in;
85
86         struct {
87                 const char * *name_buffer;/* [ref] */
88                 uint16_t *name_type;/* [ref] */
89                 enum NET_API_STATUS result;
90         } out;
91
92 };
93
94
95 struct NetGetJoinableOUs {
96         struct {
97                 const char * server_name;/* [unique] */
98                 const char * domain;/* [ref] */
99                 const char * account;/* [unique] */
100                 const char * password;/* [unique] */
101         } in;
102
103         struct {
104                 uint32_t *ou_count;/* [ref] */
105                 const char * **ous;/* [ref] */
106                 enum NET_API_STATUS result;
107         } out;
108
109 };
110
111
112 struct NetServerGetInfo {
113         struct {
114                 const char * server_name;/* [unique] */
115                 uint32_t level;
116         } in;
117
118         struct {
119                 uint8_t **buffer;/* [ref] */
120                 enum NET_API_STATUS result;
121         } out;
122
123 };
124
125
126 struct NetServerSetInfo {
127         struct {
128                 const char * server_name;/* [unique] */
129                 uint32_t level;
130                 uint8_t *buffer;/* [ref] */
131         } in;
132
133         struct {
134                 uint32_t *parm_error;/* [ref] */
135                 enum NET_API_STATUS result;
136         } out;
137
138 };
139
140
141 struct NetGetDCName {
142         struct {
143                 const char * server_name;/* [unique] */
144                 const char * domain_name;/* [unique] */
145         } in;
146
147         struct {
148                 uint8_t **buffer;/* [ref] */
149                 enum NET_API_STATUS result;
150         } out;
151
152 };
153
154
155 struct NetGetAnyDCName {
156         struct {
157                 const char * server_name;/* [unique] */
158                 const char * domain_name;/* [unique] */
159         } in;
160
161         struct {
162                 uint8_t **buffer;/* [ref] */
163                 enum NET_API_STATUS result;
164         } out;
165
166 };
167
168
169 struct DsGetDcName {
170         struct {
171                 const char * server_name;/* [unique] */
172                 const char * domain_name;/* [ref] */
173                 struct GUID *domain_guid;/* [unique] */
174                 const char * site_name;/* [unique] */
175                 uint32_t flags;
176         } in;
177
178         struct {
179                 struct DOMAIN_CONTROLLER_INFO **dc_info;/* [ref] */
180                 enum NET_API_STATUS result;
181         } out;
182
183 };
184
185
186 struct NetUserAdd {
187         struct {
188                 const char * server_name;/* [unique] */
189                 uint32_t level;
190                 uint8_t *buffer;/* [ref] */
191         } in;
192
193         struct {
194                 uint32_t *parm_error;/* [ref] */
195                 enum NET_API_STATUS result;
196         } out;
197
198 };
199
200
201 struct NetUserDel {
202         struct {
203                 const char * server_name;/* [unique] */
204                 const char * user_name;/* [ref] */
205         } in;
206
207         struct {
208                 enum NET_API_STATUS result;
209         } out;
210
211 };
212
213
214 struct NetUserEnum {
215         struct {
216                 const char * server_name;/* [unique] */
217                 uint32_t level;
218                 uint32_t filter;
219                 uint32_t prefmaxlen;
220                 uint32_t *resume_handle;/* [ref] */
221         } in;
222
223         struct {
224                 uint8_t **buffer;/* [ref] */
225                 uint32_t *entries_read;/* [ref] */
226                 uint32_t *total_entries;/* [ref] */
227                 uint32_t *resume_handle;/* [ref] */
228                 enum NET_API_STATUS result;
229         } out;
230
231 };
232
233 #endif /* _HEADER_libnetapi */