Add libnetapi generated files.
[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 enum NET_API_STATUS
10 #ifndef USE_UINT_ENUMS
11  {
12         NERR_Success=0
13 }
14 #else
15  { __donnot_use_enum_NET_API_STATUS=0x7FFFFFFF}
16 #define NERR_Success ( 0 )
17 #endif
18 ;
19
20
21 struct NetJoinDomain {
22         struct {
23                 const char * server;/* [unique] */
24                 const char * domain;/* [ref] */
25                 const char * account_ou;/* [unique] */
26                 const char * account;/* [unique] */
27                 const char * password;/* [unique] */
28                 uint32_t join_flags;
29         } in;
30
31         struct {
32                 enum NET_API_STATUS result;
33         } out;
34
35 };
36
37
38 struct NetUnjoinDomain {
39         struct {
40                 const char * server_name;/* [unique] */
41                 const char * account;/* [unique] */
42                 const char * password;/* [unique] */
43                 uint32_t unjoin_flags;
44         } in;
45
46         struct {
47                 enum NET_API_STATUS result;
48         } out;
49
50 };
51
52
53 struct NetGetJoinInformation {
54         struct {
55                 const char * server_name;/* [unique] */
56         } in;
57
58         struct {
59                 const char * *name_buffer;/* [ref] */
60                 uint16_t *name_type;/* [ref] */
61                 enum NET_API_STATUS result;
62         } out;
63
64 };
65
66
67 struct NetGetJoinableOUs {
68         struct {
69                 const char * server_name;/* [unique] */
70                 const char * domain;/* [ref] */
71                 const char * account;/* [unique] */
72                 const char * password;/* [unique] */
73         } in;
74
75         struct {
76                 uint32_t *ou_count;/* [ref] */
77                 const char * **ous;/* [ref] */
78                 enum NET_API_STATUS result;
79         } out;
80
81 };
82
83
84 struct NetServerGetInfo {
85         struct {
86                 const char * server_name;/* [unique] */
87                 uint32_t level;
88         } in;
89
90         struct {
91                 uint8_t **buffer;/* [ref] */
92                 enum NET_API_STATUS result;
93         } out;
94
95 };
96
97
98 struct NetServerSetInfo {
99         struct {
100                 const char * server_name;/* [unique] */
101                 uint32_t level;
102                 uint8_t *buffer;/* [ref] */
103         } in;
104
105         struct {
106                 uint32_t *parm_error;/* [ref] */
107                 enum NET_API_STATUS result;
108         } out;
109
110 };
111
112
113 struct NetGetDCName {
114         struct {
115                 const char * server_name;/* [unique] */
116                 const char * domain_name;/* [unique] */
117         } in;
118
119         struct {
120                 uint8_t **buffer;/* [ref] */
121                 enum NET_API_STATUS result;
122         } out;
123
124 };
125
126
127 struct NetGetAnyDCName {
128         struct {
129                 const char * server_name;/* [unique] */
130                 const char * domain_name;/* [unique] */
131         } in;
132
133         struct {
134                 uint8_t **buffer;/* [ref] */
135                 enum NET_API_STATUS result;
136         } out;
137
138 };
139
140 #endif /* _HEADER_libnetapi */