| 1 | /*
|
|---|
| 2 | * Unix SMB/CIFS implementation.
|
|---|
| 3 | * NetApi Support
|
|---|
| 4 | * Copyright (C) Guenther Deschner 2007-2008
|
|---|
| 5 | *
|
|---|
| 6 | * This program is free software; you can redistribute it and/or modify
|
|---|
| 7 | * it under the terms of the GNU General Public License as published by
|
|---|
| 8 | * the Free Software Foundation; either version 3 of the License, or
|
|---|
| 9 | * (at your option) any later version.
|
|---|
| 10 | *
|
|---|
| 11 | * This program is distributed in the hope that it will be useful,
|
|---|
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 14 | * GNU General Public License for more details.
|
|---|
| 15 | *
|
|---|
| 16 | * You should have received a copy of the GNU General Public License
|
|---|
| 17 | * along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|---|
| 18 | */
|
|---|
| 19 |
|
|---|
| 20 | #ifndef __LIBNETAPI_LIBNETAPI__
|
|---|
| 21 | #define __LIBNETAPI_LIBNETAPI__
|
|---|
| 22 | NET_API_STATUS NetJoinDomain(const char * server /* [in] [unique] */,
|
|---|
| 23 | const char * domain /* [in] [ref] */,
|
|---|
| 24 | const char * account_ou /* [in] [unique] */,
|
|---|
| 25 | const char * account /* [in] [unique] */,
|
|---|
| 26 | const char * password /* [in] [unique] */,
|
|---|
| 27 | uint32_t join_flags /* [in] */);
|
|---|
| 28 | WERROR NetJoinDomain_r(struct libnetapi_ctx *ctx,
|
|---|
| 29 | struct NetJoinDomain *r);
|
|---|
| 30 | WERROR NetJoinDomain_l(struct libnetapi_ctx *ctx,
|
|---|
| 31 | struct NetJoinDomain *r);
|
|---|
| 32 | NET_API_STATUS NetUnjoinDomain(const char * server_name /* [in] [unique] */,
|
|---|
| 33 | const char * account /* [in] [unique] */,
|
|---|
| 34 | const char * password /* [in] [unique] */,
|
|---|
| 35 | uint32_t unjoin_flags /* [in] */);
|
|---|
| 36 | WERROR NetUnjoinDomain_r(struct libnetapi_ctx *ctx,
|
|---|
| 37 | struct NetUnjoinDomain *r);
|
|---|
| 38 | WERROR NetUnjoinDomain_l(struct libnetapi_ctx *ctx,
|
|---|
| 39 | struct NetUnjoinDomain *r);
|
|---|
| 40 | NET_API_STATUS NetGetJoinInformation(const char * server_name /* [in] [unique] */,
|
|---|
| 41 | const char * *name_buffer /* [out] [ref] */,
|
|---|
| 42 | uint16_t *name_type /* [out] [ref] */);
|
|---|
| 43 | WERROR NetGetJoinInformation_r(struct libnetapi_ctx *ctx,
|
|---|
| 44 | struct NetGetJoinInformation *r);
|
|---|
| 45 | WERROR NetGetJoinInformation_l(struct libnetapi_ctx *ctx,
|
|---|
| 46 | struct NetGetJoinInformation *r);
|
|---|
| 47 | NET_API_STATUS NetGetJoinableOUs(const char * server_name /* [in] [unique] */,
|
|---|
| 48 | const char * domain /* [in] [ref] */,
|
|---|
| 49 | const char * account /* [in] [unique] */,
|
|---|
| 50 | const char * password /* [in] [unique] */,
|
|---|
| 51 | uint32_t *ou_count /* [out] [ref] */,
|
|---|
| 52 | const char * **ous /* [out] [ref] */);
|
|---|
| 53 | WERROR NetGetJoinableOUs_r(struct libnetapi_ctx *ctx,
|
|---|
| 54 | struct NetGetJoinableOUs *r);
|
|---|
| 55 | WERROR NetGetJoinableOUs_l(struct libnetapi_ctx *ctx,
|
|---|
| 56 | struct NetGetJoinableOUs *r);
|
|---|
| 57 | NET_API_STATUS NetRenameMachineInDomain(const char * server_name /* [in] */,
|
|---|
| 58 | const char * new_machine_name /* [in] */,
|
|---|
| 59 | const char * account /* [in] */,
|
|---|
| 60 | const char * password /* [in] */,
|
|---|
| 61 | uint32_t rename_options /* [in] */);
|
|---|
| 62 | WERROR NetRenameMachineInDomain_r(struct libnetapi_ctx *ctx,
|
|---|
| 63 | struct NetRenameMachineInDomain *r);
|
|---|
| 64 | WERROR NetRenameMachineInDomain_l(struct libnetapi_ctx *ctx,
|
|---|
| 65 | struct NetRenameMachineInDomain *r);
|
|---|
| 66 | NET_API_STATUS NetServerGetInfo(const char * server_name /* [in] [unique] */,
|
|---|
| 67 | uint32_t level /* [in] */,
|
|---|
| 68 | uint8_t **buffer /* [out] [ref] */);
|
|---|
| 69 | WERROR NetServerGetInfo_r(struct libnetapi_ctx *ctx,
|
|---|
| 70 | struct NetServerGetInfo *r);
|
|---|
| 71 | WERROR NetServerGetInfo_l(struct libnetapi_ctx *ctx,
|
|---|
| 72 | struct NetServerGetInfo *r);
|
|---|
| 73 | NET_API_STATUS NetServerSetInfo(const char * server_name /* [in] [unique] */,
|
|---|
| 74 | uint32_t level /* [in] */,
|
|---|
| 75 | uint8_t *buffer /* [in] [ref] */,
|
|---|
| 76 | uint32_t *parm_error /* [out] [ref] */);
|
|---|
| 77 | WERROR NetServerSetInfo_r(struct libnetapi_ctx *ctx,
|
|---|
| 78 | struct NetServerSetInfo *r);
|
|---|
| 79 | WERROR NetServerSetInfo_l(struct libnetapi_ctx *ctx,
|
|---|
| 80 | struct NetServerSetInfo *r);
|
|---|
| 81 | NET_API_STATUS NetGetDCName(const char * server_name /* [in] [unique] */,
|
|---|
| 82 | const char * domain_name /* [in] [unique] */,
|
|---|
| 83 | uint8_t **buffer /* [out] [ref] */);
|
|---|
| 84 | WERROR NetGetDCName_r(struct libnetapi_ctx *ctx,
|
|---|
| 85 | struct NetGetDCName *r);
|
|---|
| 86 | WERROR NetGetDCName_l(struct libnetapi_ctx *ctx,
|
|---|
| 87 | struct NetGetDCName *r);
|
|---|
| 88 | NET_API_STATUS NetGetAnyDCName(const char * server_name /* [in] [unique] */,
|
|---|
| 89 | const char * domain_name /* [in] [unique] */,
|
|---|
| 90 | uint8_t **buffer /* [out] [ref] */);
|
|---|
| 91 | WERROR NetGetAnyDCName_r(struct libnetapi_ctx *ctx,
|
|---|
| 92 | struct NetGetAnyDCName *r);
|
|---|
| 93 | WERROR NetGetAnyDCName_l(struct libnetapi_ctx *ctx,
|
|---|
| 94 | struct NetGetAnyDCName *r);
|
|---|
| 95 | NET_API_STATUS DsGetDcName(const char * server_name /* [in] [unique] */,
|
|---|
| 96 | const char * domain_name /* [in] [ref] */,
|
|---|
| 97 | struct GUID *domain_guid /* [in] [unique] */,
|
|---|
| 98 | const char * site_name /* [in] [unique] */,
|
|---|
| 99 | uint32_t flags /* [in] */,
|
|---|
| 100 | struct DOMAIN_CONTROLLER_INFO **dc_info /* [out] [ref] */);
|
|---|
| 101 | WERROR DsGetDcName_r(struct libnetapi_ctx *ctx,
|
|---|
| 102 | struct DsGetDcName *r);
|
|---|
| 103 | WERROR DsGetDcName_l(struct libnetapi_ctx *ctx,
|
|---|
| 104 | struct DsGetDcName *r);
|
|---|
| 105 | NET_API_STATUS NetUserAdd(const char * server_name /* [in] [unique] */,
|
|---|
| 106 | uint32_t level /* [in] */,
|
|---|
| 107 | uint8_t *buffer /* [in] [ref] */,
|
|---|
| 108 | uint32_t *parm_error /* [out] [ref] */);
|
|---|
| 109 | WERROR NetUserAdd_r(struct libnetapi_ctx *ctx,
|
|---|
| 110 | struct NetUserAdd *r);
|
|---|
| 111 | WERROR NetUserAdd_l(struct libnetapi_ctx *ctx,
|
|---|
| 112 | struct NetUserAdd *r);
|
|---|
| 113 | NET_API_STATUS NetUserDel(const char * server_name /* [in] [unique] */,
|
|---|
| 114 | const char * user_name /* [in] [ref] */);
|
|---|
| 115 | WERROR NetUserDel_r(struct libnetapi_ctx *ctx,
|
|---|
| 116 | struct NetUserDel *r);
|
|---|
| 117 | WERROR NetUserDel_l(struct libnetapi_ctx *ctx,
|
|---|
| 118 | struct NetUserDel *r);
|
|---|
| 119 | NET_API_STATUS NetUserEnum(const char * server_name /* [in] [unique] */,
|
|---|
| 120 | uint32_t level /* [in] */,
|
|---|
| 121 | uint32_t filter /* [in] */,
|
|---|
| 122 | uint8_t **buffer /* [out] [ref] */,
|
|---|
| 123 | uint32_t prefmaxlen /* [in] */,
|
|---|
| 124 | uint32_t *entries_read /* [out] [ref] */,
|
|---|
| 125 | uint32_t *total_entries /* [out] [ref] */,
|
|---|
| 126 | uint32_t *resume_handle /* [in,out] [ref] */);
|
|---|
| 127 | WERROR NetUserEnum_r(struct libnetapi_ctx *ctx,
|
|---|
| 128 | struct NetUserEnum *r);
|
|---|
| 129 | WERROR NetUserEnum_l(struct libnetapi_ctx *ctx,
|
|---|
| 130 | struct NetUserEnum *r);
|
|---|
| 131 | NET_API_STATUS NetUserChangePassword(const char * domain_name /* [in] */,
|
|---|
| 132 | const char * user_name /* [in] */,
|
|---|
| 133 | const char * old_password /* [in] */,
|
|---|
| 134 | const char * new_password /* [in] */);
|
|---|
| 135 | WERROR NetUserChangePassword_r(struct libnetapi_ctx *ctx,
|
|---|
| 136 | struct NetUserChangePassword *r);
|
|---|
| 137 | WERROR NetUserChangePassword_l(struct libnetapi_ctx *ctx,
|
|---|
| 138 | struct NetUserChangePassword *r);
|
|---|
| 139 | NET_API_STATUS NetUserGetInfo(const char * server_name /* [in] */,
|
|---|
| 140 | const char * user_name /* [in] */,
|
|---|
| 141 | uint32_t level /* [in] */,
|
|---|
| 142 | uint8_t **buffer /* [out] [ref] */);
|
|---|
| 143 | WERROR NetUserGetInfo_r(struct libnetapi_ctx *ctx,
|
|---|
| 144 | struct NetUserGetInfo *r);
|
|---|
| 145 | WERROR NetUserGetInfo_l(struct libnetapi_ctx *ctx,
|
|---|
| 146 | struct NetUserGetInfo *r);
|
|---|
| 147 | NET_API_STATUS NetUserSetInfo(const char * server_name /* [in] */,
|
|---|
| 148 | const char * user_name /* [in] */,
|
|---|
| 149 | uint32_t level /* [in] */,
|
|---|
| 150 | uint8_t *buffer /* [in] [ref] */,
|
|---|
| 151 | uint32_t *parm_err /* [out] [ref] */);
|
|---|
| 152 | WERROR NetUserSetInfo_r(struct libnetapi_ctx *ctx,
|
|---|
| 153 | struct NetUserSetInfo *r);
|
|---|
| 154 | WERROR NetUserSetInfo_l(struct libnetapi_ctx *ctx,
|
|---|
| 155 | struct NetUserSetInfo *r);
|
|---|
| 156 | NET_API_STATUS NetUserGetGroups(const char * server_name /* [in] */,
|
|---|
| 157 | const char * user_name /* [in] */,
|
|---|
| 158 | uint32_t level /* [in] */,
|
|---|
| 159 | uint8_t **buffer /* [out] [ref] */,
|
|---|
| 160 | uint32_t prefmaxlen /* [in] */,
|
|---|
| 161 | uint32_t *entries_read /* [out] [ref] */,
|
|---|
| 162 | uint32_t *total_entries /* [out] [ref] */);
|
|---|
| 163 | WERROR NetUserGetGroups_r(struct libnetapi_ctx *ctx,
|
|---|
| 164 | struct NetUserGetGroups *r);
|
|---|
| 165 | WERROR NetUserGetGroups_l(struct libnetapi_ctx *ctx,
|
|---|
| 166 | struct NetUserGetGroups *r);
|
|---|
| 167 | NET_API_STATUS NetUserSetGroups(const char * server_name /* [in] */,
|
|---|
| 168 | const char * user_name /* [in] */,
|
|---|
| 169 | uint32_t level /* [in] */,
|
|---|
| 170 | uint8_t *buffer /* [in] [ref] */,
|
|---|
| 171 | uint32_t num_entries /* [in] */);
|
|---|
| 172 | WERROR NetUserSetGroups_r(struct libnetapi_ctx *ctx,
|
|---|
| 173 | struct NetUserSetGroups *r);
|
|---|
| 174 | WERROR NetUserSetGroups_l(struct libnetapi_ctx *ctx,
|
|---|
| 175 | struct NetUserSetGroups *r);
|
|---|
| 176 | NET_API_STATUS NetUserGetLocalGroups(const char * server_name /* [in] */,
|
|---|
| 177 | const char * user_name /* [in] */,
|
|---|
| 178 | uint32_t level /* [in] */,
|
|---|
| 179 | uint32_t flags /* [in] */,
|
|---|
| 180 | uint8_t **buffer /* [out] [ref] */,
|
|---|
| 181 | uint32_t prefmaxlen /* [in] */,
|
|---|
| 182 | uint32_t *entries_read /* [out] [ref] */,
|
|---|
| 183 | uint32_t *total_entries /* [out] [ref] */);
|
|---|
| 184 | WERROR NetUserGetLocalGroups_r(struct libnetapi_ctx *ctx,
|
|---|
| 185 | struct NetUserGetLocalGroups *r);
|
|---|
| 186 | WERROR NetUserGetLocalGroups_l(struct libnetapi_ctx *ctx,
|
|---|
| 187 | struct NetUserGetLocalGroups *r);
|
|---|
| 188 | NET_API_STATUS NetUserModalsGet(const char * server_name /* [in] */,
|
|---|
| 189 | uint32_t level /* [in] */,
|
|---|
| 190 | uint8_t **buffer /* [out] [ref] */);
|
|---|
| 191 | WERROR NetUserModalsGet_r(struct libnetapi_ctx *ctx,
|
|---|
| 192 | struct NetUserModalsGet *r);
|
|---|
| 193 | WERROR NetUserModalsGet_l(struct libnetapi_ctx *ctx,
|
|---|
| 194 | struct NetUserModalsGet *r);
|
|---|
| 195 | NET_API_STATUS NetUserModalsSet(const char * server_name /* [in] */,
|
|---|
| 196 | uint32_t level /* [in] */,
|
|---|
| 197 | uint8_t *buffer /* [in] [ref] */,
|
|---|
| 198 | uint32_t *parm_err /* [out] [ref] */);
|
|---|
| 199 | WERROR NetUserModalsSet_r(struct libnetapi_ctx *ctx,
|
|---|
| 200 | struct NetUserModalsSet *r);
|
|---|
| 201 | WERROR NetUserModalsSet_l(struct libnetapi_ctx *ctx,
|
|---|
| 202 | struct NetUserModalsSet *r);
|
|---|
| 203 | NET_API_STATUS NetQueryDisplayInformation(const char * server_name /* [in] [unique] */,
|
|---|
| 204 | uint32_t level /* [in] */,
|
|---|
| 205 | uint32_t idx /* [in] */,
|
|---|
| 206 | uint32_t entries_requested /* [in] */,
|
|---|
| 207 | uint32_t prefmaxlen /* [in] */,
|
|---|
| 208 | uint32_t *entries_read /* [out] [ref] */,
|
|---|
| 209 | void **buffer /* [out] [noprint,ref] */);
|
|---|
| 210 | WERROR NetQueryDisplayInformation_r(struct libnetapi_ctx *ctx,
|
|---|
| 211 | struct NetQueryDisplayInformation *r);
|
|---|
| 212 | WERROR NetQueryDisplayInformation_l(struct libnetapi_ctx *ctx,
|
|---|
| 213 | struct NetQueryDisplayInformation *r);
|
|---|
| 214 | NET_API_STATUS NetGroupAdd(const char * server_name /* [in] */,
|
|---|
| 215 | uint32_t level /* [in] */,
|
|---|
| 216 | uint8_t *buffer /* [in] [ref] */,
|
|---|
| 217 | uint32_t *parm_err /* [out] [ref] */);
|
|---|
| 218 | WERROR NetGroupAdd_r(struct libnetapi_ctx *ctx,
|
|---|
| 219 | struct NetGroupAdd *r);
|
|---|
| 220 | WERROR NetGroupAdd_l(struct libnetapi_ctx *ctx,
|
|---|
| 221 | struct NetGroupAdd *r);
|
|---|
| 222 | NET_API_STATUS NetGroupDel(const char * server_name /* [in] */,
|
|---|
| 223 | const char * group_name /* [in] */);
|
|---|
| 224 | WERROR NetGroupDel_r(struct libnetapi_ctx *ctx,
|
|---|
| 225 | struct NetGroupDel *r);
|
|---|
| 226 | WERROR NetGroupDel_l(struct libnetapi_ctx *ctx,
|
|---|
| 227 | struct NetGroupDel *r);
|
|---|
| 228 | NET_API_STATUS NetGroupEnum(const char * server_name /* [in] */,
|
|---|
| 229 | uint32_t level /* [in] */,
|
|---|
| 230 | uint8_t **buffer /* [out] [ref] */,
|
|---|
| 231 | uint32_t prefmaxlen /* [in] */,
|
|---|
| 232 | uint32_t *entries_read /* [out] [ref] */,
|
|---|
| 233 | uint32_t *total_entries /* [out] [ref] */,
|
|---|
| 234 | uint32_t *resume_handle /* [in,out] [ref] */);
|
|---|
| 235 | WERROR NetGroupEnum_r(struct libnetapi_ctx *ctx,
|
|---|
| 236 | struct NetGroupEnum *r);
|
|---|
| 237 | WERROR NetGroupEnum_l(struct libnetapi_ctx *ctx,
|
|---|
| 238 | struct NetGroupEnum *r);
|
|---|
| 239 | NET_API_STATUS NetGroupSetInfo(const char * server_name /* [in] */,
|
|---|
| 240 | const char * group_name /* [in] */,
|
|---|
| 241 | uint32_t level /* [in] */,
|
|---|
| 242 | uint8_t *buffer /* [in] [ref] */,
|
|---|
| 243 | uint32_t *parm_err /* [out] [ref] */);
|
|---|
| 244 | WERROR NetGroupSetInfo_r(struct libnetapi_ctx *ctx,
|
|---|
| 245 | struct NetGroupSetInfo *r);
|
|---|
| 246 | WERROR NetGroupSetInfo_l(struct libnetapi_ctx *ctx,
|
|---|
| 247 | struct NetGroupSetInfo *r);
|
|---|
| 248 | NET_API_STATUS NetGroupGetInfo(const char * server_name /* [in] */,
|
|---|
| 249 | const char * group_name /* [in] */,
|
|---|
| 250 | uint32_t level /* [in] */,
|
|---|
| 251 | uint8_t **buffer /* [out] [ref] */);
|
|---|
| 252 | WERROR NetGroupGetInfo_r(struct libnetapi_ctx *ctx,
|
|---|
| 253 | struct NetGroupGetInfo *r);
|
|---|
| 254 | WERROR NetGroupGetInfo_l(struct libnetapi_ctx *ctx,
|
|---|
| 255 | struct NetGroupGetInfo *r);
|
|---|
| 256 | NET_API_STATUS NetGroupAddUser(const char * server_name /* [in] */,
|
|---|
| 257 | const char * group_name /* [in] */,
|
|---|
| 258 | const char * user_name /* [in] */);
|
|---|
| 259 | WERROR NetGroupAddUser_r(struct libnetapi_ctx *ctx,
|
|---|
| 260 | struct NetGroupAddUser *r);
|
|---|
| 261 | WERROR NetGroupAddUser_l(struct libnetapi_ctx *ctx,
|
|---|
| 262 | struct NetGroupAddUser *r);
|
|---|
| 263 | NET_API_STATUS NetGroupDelUser(const char * server_name /* [in] */,
|
|---|
| 264 | const char * group_name /* [in] */,
|
|---|
| 265 | const char * user_name /* [in] */);
|
|---|
| 266 | WERROR NetGroupDelUser_r(struct libnetapi_ctx *ctx,
|
|---|
| 267 | struct NetGroupDelUser *r);
|
|---|
| 268 | WERROR NetGroupDelUser_l(struct libnetapi_ctx *ctx,
|
|---|
| 269 | struct NetGroupDelUser *r);
|
|---|
| 270 | NET_API_STATUS NetGroupGetUsers(const char * server_name /* [in] */,
|
|---|
| 271 | const char * group_name /* [in] */,
|
|---|
| 272 | uint32_t level /* [in] */,
|
|---|
| 273 | uint8_t **buffer /* [out] [ref] */,
|
|---|
| 274 | uint32_t prefmaxlen /* [in] */,
|
|---|
| 275 | uint32_t *entries_read /* [out] [ref] */,
|
|---|
| 276 | uint32_t *total_entries /* [out] [ref] */,
|
|---|
| 277 | uint32_t *resume_handle /* [in,out] [ref] */);
|
|---|
| 278 | WERROR NetGroupGetUsers_r(struct libnetapi_ctx *ctx,
|
|---|
| 279 | struct NetGroupGetUsers *r);
|
|---|
| 280 | WERROR NetGroupGetUsers_l(struct libnetapi_ctx *ctx,
|
|---|
| 281 | struct NetGroupGetUsers *r);
|
|---|
| 282 | NET_API_STATUS NetGroupSetUsers(const char * server_name /* [in] */,
|
|---|
| 283 | const char * group_name /* [in] */,
|
|---|
| 284 | uint32_t level /* [in] */,
|
|---|
| 285 | uint8_t *buffer /* [in] [ref] */,
|
|---|
| 286 | uint32_t num_entries /* [in] */);
|
|---|
| 287 | WERROR NetGroupSetUsers_r(struct libnetapi_ctx *ctx,
|
|---|
| 288 | struct NetGroupSetUsers *r);
|
|---|
| 289 | WERROR NetGroupSetUsers_l(struct libnetapi_ctx *ctx,
|
|---|
| 290 | struct NetGroupSetUsers *r);
|
|---|
| 291 | NET_API_STATUS NetLocalGroupAdd(const char * server_name /* [in] */,
|
|---|
| 292 | uint32_t level /* [in] */,
|
|---|
| 293 | uint8_t *buffer /* [in] [ref] */,
|
|---|
| 294 | uint32_t *parm_err /* [out] [ref] */);
|
|---|
| 295 | WERROR NetLocalGroupAdd_r(struct libnetapi_ctx *ctx,
|
|---|
| 296 | struct NetLocalGroupAdd *r);
|
|---|
| 297 | WERROR NetLocalGroupAdd_l(struct libnetapi_ctx *ctx,
|
|---|
| 298 | struct NetLocalGroupAdd *r);
|
|---|
| 299 | NET_API_STATUS NetLocalGroupDel(const char * server_name /* [in] */,
|
|---|
| 300 | const char * group_name /* [in] */);
|
|---|
| 301 | WERROR NetLocalGroupDel_r(struct libnetapi_ctx *ctx,
|
|---|
| 302 | struct NetLocalGroupDel *r);
|
|---|
| 303 | WERROR NetLocalGroupDel_l(struct libnetapi_ctx *ctx,
|
|---|
| 304 | struct NetLocalGroupDel *r);
|
|---|
| 305 | NET_API_STATUS NetLocalGroupGetInfo(const char * server_name /* [in] */,
|
|---|
| 306 | const char * group_name /* [in] */,
|
|---|
| 307 | uint32_t level /* [in] */,
|
|---|
| 308 | uint8_t **buffer /* [out] [ref] */);
|
|---|
| 309 | WERROR NetLocalGroupGetInfo_r(struct libnetapi_ctx *ctx,
|
|---|
| 310 | struct NetLocalGroupGetInfo *r);
|
|---|
| 311 | WERROR NetLocalGroupGetInfo_l(struct libnetapi_ctx *ctx,
|
|---|
| 312 | struct NetLocalGroupGetInfo *r);
|
|---|
| 313 | NET_API_STATUS NetLocalGroupSetInfo(const char * server_name /* [in] */,
|
|---|
| 314 | const char * group_name /* [in] */,
|
|---|
| 315 | uint32_t level /* [in] */,
|
|---|
| 316 | uint8_t *buffer /* [in] [ref] */,
|
|---|
| 317 | uint32_t *parm_err /* [out] [ref] */);
|
|---|
| 318 | WERROR NetLocalGroupSetInfo_r(struct libnetapi_ctx *ctx,
|
|---|
| 319 | struct NetLocalGroupSetInfo *r);
|
|---|
| 320 | WERROR NetLocalGroupSetInfo_l(struct libnetapi_ctx *ctx,
|
|---|
| 321 | struct NetLocalGroupSetInfo *r);
|
|---|
| 322 | NET_API_STATUS NetLocalGroupEnum(const char * server_name /* [in] */,
|
|---|
| 323 | uint32_t level /* [in] */,
|
|---|
| 324 | uint8_t **buffer /* [out] [ref] */,
|
|---|
| 325 | uint32_t prefmaxlen /* [in] */,
|
|---|
| 326 | uint32_t *entries_read /* [out] [ref] */,
|
|---|
| 327 | uint32_t *total_entries /* [out] [ref] */,
|
|---|
| 328 | uint32_t *resume_handle /* [in,out] [ref] */);
|
|---|
| 329 | WERROR NetLocalGroupEnum_r(struct libnetapi_ctx *ctx,
|
|---|
| 330 | struct NetLocalGroupEnum *r);
|
|---|
| 331 | WERROR NetLocalGroupEnum_l(struct libnetapi_ctx *ctx,
|
|---|
| 332 | struct NetLocalGroupEnum *r);
|
|---|
| 333 | NET_API_STATUS NetLocalGroupAddMembers(const char * server_name /* [in] */,
|
|---|
| 334 | const char * group_name /* [in] */,
|
|---|
| 335 | uint32_t level /* [in] */,
|
|---|
| 336 | uint8_t *buffer /* [in] [ref] */,
|
|---|
| 337 | uint32_t total_entries /* [in] */);
|
|---|
| 338 | WERROR NetLocalGroupAddMembers_r(struct libnetapi_ctx *ctx,
|
|---|
| 339 | struct NetLocalGroupAddMembers *r);
|
|---|
| 340 | WERROR NetLocalGroupAddMembers_l(struct libnetapi_ctx *ctx,
|
|---|
| 341 | struct NetLocalGroupAddMembers *r);
|
|---|
| 342 | NET_API_STATUS NetLocalGroupDelMembers(const char * server_name /* [in] */,
|
|---|
| 343 | const char * group_name /* [in] */,
|
|---|
| 344 | uint32_t level /* [in] */,
|
|---|
| 345 | uint8_t *buffer /* [in] [ref] */,
|
|---|
| 346 | uint32_t total_entries /* [in] */);
|
|---|
| 347 | WERROR NetLocalGroupDelMembers_r(struct libnetapi_ctx *ctx,
|
|---|
| 348 | struct NetLocalGroupDelMembers *r);
|
|---|
| 349 | WERROR NetLocalGroupDelMembers_l(struct libnetapi_ctx *ctx,
|
|---|
| 350 | struct NetLocalGroupDelMembers *r);
|
|---|
| 351 | NET_API_STATUS NetLocalGroupGetMembers(const char * server_name /* [in] */,
|
|---|
| 352 | const char * local_group_name /* [in] */,
|
|---|
| 353 | uint32_t level /* [in] */,
|
|---|
| 354 | uint8_t **buffer /* [out] [ref] */,
|
|---|
| 355 | uint32_t prefmaxlen /* [in] */,
|
|---|
| 356 | uint32_t *entries_read /* [out] [ref] */,
|
|---|
| 357 | uint32_t *total_entries /* [out] [ref] */,
|
|---|
| 358 | uint32_t *resume_handle /* [in,out] [ref] */);
|
|---|
| 359 | WERROR NetLocalGroupGetMembers_r(struct libnetapi_ctx *ctx,
|
|---|
| 360 | struct NetLocalGroupGetMembers *r);
|
|---|
| 361 | WERROR NetLocalGroupGetMembers_l(struct libnetapi_ctx *ctx,
|
|---|
| 362 | struct NetLocalGroupGetMembers *r);
|
|---|
| 363 | NET_API_STATUS NetLocalGroupSetMembers(const char * server_name /* [in] */,
|
|---|
| 364 | const char * group_name /* [in] */,
|
|---|
| 365 | uint32_t level /* [in] */,
|
|---|
| 366 | uint8_t *buffer /* [in] [ref] */,
|
|---|
| 367 | uint32_t total_entries /* [in] */);
|
|---|
| 368 | WERROR NetLocalGroupSetMembers_r(struct libnetapi_ctx *ctx,
|
|---|
| 369 | struct NetLocalGroupSetMembers *r);
|
|---|
| 370 | WERROR NetLocalGroupSetMembers_l(struct libnetapi_ctx *ctx,
|
|---|
| 371 | struct NetLocalGroupSetMembers *r);
|
|---|
| 372 | NET_API_STATUS NetRemoteTOD(const char * server_name /* [in] */,
|
|---|
| 373 | uint8_t **buffer /* [out] [ref] */);
|
|---|
| 374 | WERROR NetRemoteTOD_r(struct libnetapi_ctx *ctx,
|
|---|
| 375 | struct NetRemoteTOD *r);
|
|---|
| 376 | WERROR NetRemoteTOD_l(struct libnetapi_ctx *ctx,
|
|---|
| 377 | struct NetRemoteTOD *r);
|
|---|
| 378 | NET_API_STATUS NetShareAdd(const char * server_name /* [in] */,
|
|---|
| 379 | uint32_t level /* [in] */,
|
|---|
| 380 | uint8_t *buffer /* [in] [ref] */,
|
|---|
| 381 | uint32_t *parm_err /* [out] [ref] */);
|
|---|
| 382 | WERROR NetShareAdd_r(struct libnetapi_ctx *ctx,
|
|---|
| 383 | struct NetShareAdd *r);
|
|---|
| 384 | WERROR NetShareAdd_l(struct libnetapi_ctx *ctx,
|
|---|
| 385 | struct NetShareAdd *r);
|
|---|
| 386 | NET_API_STATUS NetShareDel(const char * server_name /* [in] */,
|
|---|
| 387 | const char * net_name /* [in] */,
|
|---|
| 388 | uint32_t reserved /* [in] */);
|
|---|
| 389 | WERROR NetShareDel_r(struct libnetapi_ctx *ctx,
|
|---|
| 390 | struct NetShareDel *r);
|
|---|
| 391 | WERROR NetShareDel_l(struct libnetapi_ctx *ctx,
|
|---|
| 392 | struct NetShareDel *r);
|
|---|
| 393 | NET_API_STATUS NetShareEnum(const char * server_name /* [in] */,
|
|---|
| 394 | uint32_t level /* [in] */,
|
|---|
| 395 | uint8_t **buffer /* [out] [ref] */,
|
|---|
| 396 | uint32_t prefmaxlen /* [in] */,
|
|---|
| 397 | uint32_t *entries_read /* [out] [ref] */,
|
|---|
| 398 | uint32_t *total_entries /* [out] [ref] */,
|
|---|
| 399 | uint32_t *resume_handle /* [in,out] [ref] */);
|
|---|
| 400 | WERROR NetShareEnum_r(struct libnetapi_ctx *ctx,
|
|---|
| 401 | struct NetShareEnum *r);
|
|---|
| 402 | WERROR NetShareEnum_l(struct libnetapi_ctx *ctx,
|
|---|
| 403 | struct NetShareEnum *r);
|
|---|
| 404 | NET_API_STATUS NetShareGetInfo(const char * server_name /* [in] */,
|
|---|
| 405 | const char * net_name /* [in] */,
|
|---|
| 406 | uint32_t level /* [in] */,
|
|---|
| 407 | uint8_t **buffer /* [out] [ref] */);
|
|---|
| 408 | WERROR NetShareGetInfo_r(struct libnetapi_ctx *ctx,
|
|---|
| 409 | struct NetShareGetInfo *r);
|
|---|
| 410 | WERROR NetShareGetInfo_l(struct libnetapi_ctx *ctx,
|
|---|
| 411 | struct NetShareGetInfo *r);
|
|---|
| 412 | NET_API_STATUS NetShareSetInfo(const char * server_name /* [in] */,
|
|---|
| 413 | const char * net_name /* [in] */,
|
|---|
| 414 | uint32_t level /* [in] */,
|
|---|
| 415 | uint8_t *buffer /* [in] [ref] */,
|
|---|
| 416 | uint32_t *parm_err /* [out] [ref] */);
|
|---|
| 417 | WERROR NetShareSetInfo_r(struct libnetapi_ctx *ctx,
|
|---|
| 418 | struct NetShareSetInfo *r);
|
|---|
| 419 | WERROR NetShareSetInfo_l(struct libnetapi_ctx *ctx,
|
|---|
| 420 | struct NetShareSetInfo *r);
|
|---|
| 421 | NET_API_STATUS NetFileClose(const char * server_name /* [in] */,
|
|---|
| 422 | uint32_t fileid /* [in] */);
|
|---|
| 423 | WERROR NetFileClose_r(struct libnetapi_ctx *ctx,
|
|---|
| 424 | struct NetFileClose *r);
|
|---|
| 425 | WERROR NetFileClose_l(struct libnetapi_ctx *ctx,
|
|---|
| 426 | struct NetFileClose *r);
|
|---|
| 427 | NET_API_STATUS NetFileGetInfo(const char * server_name /* [in] */,
|
|---|
| 428 | uint32_t fileid /* [in] */,
|
|---|
| 429 | uint32_t level /* [in] */,
|
|---|
| 430 | uint8_t **buffer /* [out] [ref] */);
|
|---|
| 431 | WERROR NetFileGetInfo_r(struct libnetapi_ctx *ctx,
|
|---|
| 432 | struct NetFileGetInfo *r);
|
|---|
| 433 | WERROR NetFileGetInfo_l(struct libnetapi_ctx *ctx,
|
|---|
| 434 | struct NetFileGetInfo *r);
|
|---|
| 435 | NET_API_STATUS NetFileEnum(const char * server_name /* [in] */,
|
|---|
| 436 | const char * base_path /* [in] */,
|
|---|
| 437 | const char * user_name /* [in] */,
|
|---|
| 438 | uint32_t level /* [in] */,
|
|---|
| 439 | uint8_t **buffer /* [out] [ref] */,
|
|---|
| 440 | uint32_t prefmaxlen /* [in] */,
|
|---|
| 441 | uint32_t *entries_read /* [out] [ref] */,
|
|---|
| 442 | uint32_t *total_entries /* [out] [ref] */,
|
|---|
| 443 | uint32_t *resume_handle /* [in,out] [ref] */);
|
|---|
| 444 | WERROR NetFileEnum_r(struct libnetapi_ctx *ctx,
|
|---|
| 445 | struct NetFileEnum *r);
|
|---|
| 446 | WERROR NetFileEnum_l(struct libnetapi_ctx *ctx,
|
|---|
| 447 | struct NetFileEnum *r);
|
|---|
| 448 | NET_API_STATUS NetShutdownInit(const char * server_name /* [in] */,
|
|---|
| 449 | const char * message /* [in] */,
|
|---|
| 450 | uint32_t timeout /* [in] */,
|
|---|
| 451 | uint8_t force_apps /* [in] */,
|
|---|
| 452 | uint8_t do_reboot /* [in] */);
|
|---|
| 453 | WERROR NetShutdownInit_r(struct libnetapi_ctx *ctx,
|
|---|
| 454 | struct NetShutdownInit *r);
|
|---|
| 455 | WERROR NetShutdownInit_l(struct libnetapi_ctx *ctx,
|
|---|
| 456 | struct NetShutdownInit *r);
|
|---|
| 457 | NET_API_STATUS NetShutdownAbort(const char * server_name /* [in] */);
|
|---|
| 458 | WERROR NetShutdownAbort_r(struct libnetapi_ctx *ctx,
|
|---|
| 459 | struct NetShutdownAbort *r);
|
|---|
| 460 | WERROR NetShutdownAbort_l(struct libnetapi_ctx *ctx,
|
|---|
| 461 | struct NetShutdownAbort *r);
|
|---|
| 462 | NET_API_STATUS I_NetLogonControl(const char * server_name /* [in] */,
|
|---|
| 463 | uint32_t function_code /* [in] */,
|
|---|
| 464 | uint32_t query_level /* [in] */,
|
|---|
| 465 | uint8_t **buffer /* [out] [ref] */);
|
|---|
| 466 | WERROR I_NetLogonControl_r(struct libnetapi_ctx *ctx,
|
|---|
| 467 | struct I_NetLogonControl *r);
|
|---|
| 468 | WERROR I_NetLogonControl_l(struct libnetapi_ctx *ctx,
|
|---|
| 469 | struct I_NetLogonControl *r);
|
|---|
| 470 | NET_API_STATUS I_NetLogonControl2(const char * server_name /* [in] */,
|
|---|
| 471 | uint32_t function_code /* [in] */,
|
|---|
| 472 | uint32_t query_level /* [in] */,
|
|---|
| 473 | uint8_t *data /* [in] [ref] */,
|
|---|
| 474 | uint8_t **buffer /* [out] [ref] */);
|
|---|
| 475 | WERROR I_NetLogonControl2_r(struct libnetapi_ctx *ctx,
|
|---|
| 476 | struct I_NetLogonControl2 *r);
|
|---|
| 477 | WERROR I_NetLogonControl2_l(struct libnetapi_ctx *ctx,
|
|---|
| 478 | struct I_NetLogonControl2 *r);
|
|---|
| 479 | #endif /* __LIBNETAPI_LIBNETAPI__ */
|
|---|