source: branches/samba-3.2.x/source/lib/netapi/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: 5.3 KB
Line 
1#ifndef __LIBNETAPI_LIBNETAPI__
2#define __LIBNETAPI_LIBNETAPI__
3NET_API_STATUS NetJoinDomain(const char * server /* [in] [unique] */,
4 const char * domain /* [in] [ref] */,
5 const char * account_ou /* [in] [unique] */,
6 const char * account /* [in] [unique] */,
7 const char * password /* [in] [unique] */,
8 uint32_t join_flags /* [in] */);
9WERROR NetJoinDomain_r(struct libnetapi_ctx *ctx,
10 struct NetJoinDomain *r);
11WERROR NetJoinDomain_l(struct libnetapi_ctx *ctx,
12 struct NetJoinDomain *r);
13NET_API_STATUS NetUnjoinDomain(const char * server_name /* [in] [unique] */,
14 const char * account /* [in] [unique] */,
15 const char * password /* [in] [unique] */,
16 uint32_t unjoin_flags /* [in] */);
17WERROR NetUnjoinDomain_r(struct libnetapi_ctx *ctx,
18 struct NetUnjoinDomain *r);
19WERROR NetUnjoinDomain_l(struct libnetapi_ctx *ctx,
20 struct NetUnjoinDomain *r);
21NET_API_STATUS NetGetJoinInformation(const char * server_name /* [in] [unique] */,
22 const char * *name_buffer /* [out] [ref] */,
23 uint16_t *name_type /* [out] [ref] */);
24WERROR NetGetJoinInformation_r(struct libnetapi_ctx *ctx,
25 struct NetGetJoinInformation *r);
26WERROR NetGetJoinInformation_l(struct libnetapi_ctx *ctx,
27 struct NetGetJoinInformation *r);
28NET_API_STATUS NetGetJoinableOUs(const char * server_name /* [in] [unique] */,
29 const char * domain /* [in] [ref] */,
30 const char * account /* [in] [unique] */,
31 const char * password /* [in] [unique] */,
32 uint32_t *ou_count /* [out] [ref] */,
33 const char * **ous /* [out] [ref] */);
34WERROR NetGetJoinableOUs_r(struct libnetapi_ctx *ctx,
35 struct NetGetJoinableOUs *r);
36WERROR NetGetJoinableOUs_l(struct libnetapi_ctx *ctx,
37 struct NetGetJoinableOUs *r);
38NET_API_STATUS NetServerGetInfo(const char * server_name /* [in] [unique] */,
39 uint32_t level /* [in] */,
40 uint8_t **buffer /* [out] [ref] */);
41WERROR NetServerGetInfo_r(struct libnetapi_ctx *ctx,
42 struct NetServerGetInfo *r);
43WERROR NetServerGetInfo_l(struct libnetapi_ctx *ctx,
44 struct NetServerGetInfo *r);
45NET_API_STATUS NetServerSetInfo(const char * server_name /* [in] [unique] */,
46 uint32_t level /* [in] */,
47 uint8_t *buffer /* [in] [ref] */,
48 uint32_t *parm_error /* [out] [ref] */);
49WERROR NetServerSetInfo_r(struct libnetapi_ctx *ctx,
50 struct NetServerSetInfo *r);
51WERROR NetServerSetInfo_l(struct libnetapi_ctx *ctx,
52 struct NetServerSetInfo *r);
53NET_API_STATUS NetGetDCName(const char * server_name /* [in] [unique] */,
54 const char * domain_name /* [in] [unique] */,
55 uint8_t **buffer /* [out] [ref] */);
56WERROR NetGetDCName_r(struct libnetapi_ctx *ctx,
57 struct NetGetDCName *r);
58WERROR NetGetDCName_l(struct libnetapi_ctx *ctx,
59 struct NetGetDCName *r);
60NET_API_STATUS NetGetAnyDCName(const char * server_name /* [in] [unique] */,
61 const char * domain_name /* [in] [unique] */,
62 uint8_t **buffer /* [out] [ref] */);
63WERROR NetGetAnyDCName_r(struct libnetapi_ctx *ctx,
64 struct NetGetAnyDCName *r);
65WERROR NetGetAnyDCName_l(struct libnetapi_ctx *ctx,
66 struct NetGetAnyDCName *r);
67NET_API_STATUS DsGetDcName(const char * server_name /* [in] [unique] */,
68 const char * domain_name /* [in] [ref] */,
69 struct GUID *domain_guid /* [in] [unique] */,
70 const char * site_name /* [in] [unique] */,
71 uint32_t flags /* [in] */,
72 struct DOMAIN_CONTROLLER_INFO **dc_info /* [out] [ref] */);
73WERROR DsGetDcName_r(struct libnetapi_ctx *ctx,
74 struct DsGetDcName *r);
75WERROR DsGetDcName_l(struct libnetapi_ctx *ctx,
76 struct DsGetDcName *r);
77NET_API_STATUS NetUserAdd(const char * server_name /* [in] [unique] */,
78 uint32_t level /* [in] */,
79 uint8_t *buffer /* [in] [ref] */,
80 uint32_t *parm_error /* [out] [ref] */);
81WERROR NetUserAdd_r(struct libnetapi_ctx *ctx,
82 struct NetUserAdd *r);
83WERROR NetUserAdd_l(struct libnetapi_ctx *ctx,
84 struct NetUserAdd *r);
85NET_API_STATUS NetUserDel(const char * server_name /* [in] [unique] */,
86 const char * user_name /* [in] [ref] */);
87WERROR NetUserDel_r(struct libnetapi_ctx *ctx,
88 struct NetUserDel *r);
89WERROR NetUserDel_l(struct libnetapi_ctx *ctx,
90 struct NetUserDel *r);
91NET_API_STATUS NetUserEnum(const char * server_name /* [in] [unique] */,
92 uint32_t level /* [in] */,
93 uint32_t filter /* [in] */,
94 uint8_t **buffer /* [out] [ref] */,
95 uint32_t prefmaxlen /* [in] */,
96 uint32_t *entries_read /* [out] [ref] */,
97 uint32_t *total_entries /* [out] [ref] */,
98 uint32_t *resume_handle /* [in,out] [ref] */);
99WERROR NetUserEnum_r(struct libnetapi_ctx *ctx,
100 struct NetUserEnum *r);
101WERROR NetUserEnum_l(struct libnetapi_ctx *ctx,
102 struct NetUserEnum *r);
103NET_API_STATUS NetQueryDisplayInformation(const char * server_name /* [in] [unique] */,
104 uint32_t level /* [in] */,
105 uint32_t idx /* [in] */,
106 uint32_t entries_requested /* [in] */,
107 uint32_t prefmaxlen /* [in] */,
108 uint32_t *entries_read /* [out] [ref] */,
109 void **buffer /* [out] [noprint,ref] */);
110WERROR NetQueryDisplayInformation_r(struct libnetapi_ctx *ctx,
111 struct NetQueryDisplayInformation *r);
112WERROR NetQueryDisplayInformation_l(struct libnetapi_ctx *ctx,
113 struct NetQueryDisplayInformation *r);
114#endif /* __LIBNETAPI_LIBNETAPI__ */
Note: See TracBrowser for help on using the repository browser.