source: branches/samba-3.2.x/source/librpc/gen_ndr/libnetapi.h

Last change on this file was 133, checked in by Paul Smedley, 17 years ago

Update trunk to 3.2.0pre3

File size: 4.8 KB
Line 
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 )
10enum 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
21struct SERVER_INFO_1005 {
22 const char * sv1005_comment;
23};
24
25struct DOMAIN_CONTROLLER_INFO {
26 const char * domain_controller_name;
27 const char * domain_controller_address;
28 uint32_t domain_controller_address_type;
29 struct GUID domain_guid;
30 const char * domain_name;
31 const char * dns_forest_name;
32 uint32_t flags;
33 const char * dc_site_name;
34 const char * client_site_name;
35};
36
37struct USER_INFO_0 {
38 const char * usri0_name;
39};
40
41struct USER_INFO_1 {
42 const char * usri1_name;
43 const char * usri1_password;
44 uint32_t usri1_password_age;
45 uint32_t usri1_priv;
46 const char * usri1_home_dir;
47 const char * usri1_comment;
48 uint32_t usri1_flags;
49 const char * usri1_script_path;
50};
51
52struct NET_DISPLAY_USER {
53 const char * usri1_name;
54 const char * usri1_comment;
55 uint32_t usri1_flags;
56 const char * usri1_full_name;
57 uint32_t usri1_user_id;
58 uint32_t usri1_next_index;
59};
60
61struct NET_DISPLAY_MACHINE {
62 const char * usri2_name;
63 const char * usri2_comment;
64 uint32_t usri2_flags;
65 uint32_t usri2_user_id;
66 uint32_t usri2_next_index;
67};
68
69struct NET_DISPLAY_GROUP {
70 const char * grpi3_name;
71 const char * grpi3_comment;
72 uint32_t grpi3_group_id;
73 uint32_t grpi3_attributes;
74 uint32_t grpi3_next_index;
75};
76
77
78struct NetJoinDomain {
79 struct {
80 const char * server;/* [unique] */
81 const char * domain;/* [ref] */
82 const char * account_ou;/* [unique] */
83 const char * account;/* [unique] */
84 const char * password;/* [unique] */
85 uint32_t join_flags;
86 } in;
87
88 struct {
89 enum NET_API_STATUS result;
90 } out;
91
92};
93
94
95struct NetUnjoinDomain {
96 struct {
97 const char * server_name;/* [unique] */
98 const char * account;/* [unique] */
99 const char * password;/* [unique] */
100 uint32_t unjoin_flags;
101 } in;
102
103 struct {
104 enum NET_API_STATUS result;
105 } out;
106
107};
108
109
110struct NetGetJoinInformation {
111 struct {
112 const char * server_name;/* [unique] */
113 } in;
114
115 struct {
116 const char * *name_buffer;/* [ref] */
117 uint16_t *name_type;/* [ref] */
118 enum NET_API_STATUS result;
119 } out;
120
121};
122
123
124struct NetGetJoinableOUs {
125 struct {
126 const char * server_name;/* [unique] */
127 const char * domain;/* [ref] */
128 const char * account;/* [unique] */
129 const char * password;/* [unique] */
130 } in;
131
132 struct {
133 uint32_t *ou_count;/* [ref] */
134 const char * **ous;/* [ref] */
135 enum NET_API_STATUS result;
136 } out;
137
138};
139
140
141struct NetServerGetInfo {
142 struct {
143 const char * server_name;/* [unique] */
144 uint32_t level;
145 } in;
146
147 struct {
148 uint8_t **buffer;/* [ref] */
149 enum NET_API_STATUS result;
150 } out;
151
152};
153
154
155struct NetServerSetInfo {
156 struct {
157 const char * server_name;/* [unique] */
158 uint32_t level;
159 uint8_t *buffer;/* [ref] */
160 } in;
161
162 struct {
163 uint32_t *parm_error;/* [ref] */
164 enum NET_API_STATUS result;
165 } out;
166
167};
168
169
170struct NetGetDCName {
171 struct {
172 const char * server_name;/* [unique] */
173 const char * domain_name;/* [unique] */
174 } in;
175
176 struct {
177 uint8_t **buffer;/* [ref] */
178 enum NET_API_STATUS result;
179 } out;
180
181};
182
183
184struct NetGetAnyDCName {
185 struct {
186 const char * server_name;/* [unique] */
187 const char * domain_name;/* [unique] */
188 } in;
189
190 struct {
191 uint8_t **buffer;/* [ref] */
192 enum NET_API_STATUS result;
193 } out;
194
195};
196
197
198struct DsGetDcName {
199 struct {
200 const char * server_name;/* [unique] */
201 const char * domain_name;/* [ref] */
202 struct GUID *domain_guid;/* [unique] */
203 const char * site_name;/* [unique] */
204 uint32_t flags;
205 } in;
206
207 struct {
208 struct DOMAIN_CONTROLLER_INFO **dc_info;/* [ref] */
209 enum NET_API_STATUS result;
210 } out;
211
212};
213
214
215struct NetUserAdd {
216 struct {
217 const char * server_name;/* [unique] */
218 uint32_t level;
219 uint8_t *buffer;/* [ref] */
220 } in;
221
222 struct {
223 uint32_t *parm_error;/* [ref] */
224 enum NET_API_STATUS result;
225 } out;
226
227};
228
229
230struct NetUserDel {
231 struct {
232 const char * server_name;/* [unique] */
233 const char * user_name;/* [ref] */
234 } in;
235
236 struct {
237 enum NET_API_STATUS result;
238 } out;
239
240};
241
242
243struct NetUserEnum {
244 struct {
245 const char * server_name;/* [unique] */
246 uint32_t level;
247 uint32_t filter;
248 uint32_t prefmaxlen;
249 uint32_t *resume_handle;/* [ref] */
250 } in;
251
252 struct {
253 uint8_t **buffer;/* [ref] */
254 uint32_t *entries_read;/* [ref] */
255 uint32_t *total_entries;/* [ref] */
256 uint32_t *resume_handle;/* [ref] */
257 enum NET_API_STATUS result;
258 } out;
259
260};
261
262
263struct NetQueryDisplayInformation {
264 struct {
265 const char * server_name;/* [unique] */
266 uint32_t level;
267 uint32_t idx;
268 uint32_t entries_requested;
269 uint32_t prefmaxlen;
270 } in;
271
272 struct {
273 uint32_t *entries_read;/* [ref] */
274 void **buffer;/* [noprint,ref] */
275 enum NET_API_STATUS result;
276 } out;
277
278};
279
280#endif /* _HEADER_libnetapi */
Note: See TracBrowser for help on using the repository browser.