2008-04-08 02:42:50 +02:00
# ifndef __LIBNETAPI_LIBNETAPI__
# define __LIBNETAPI_LIBNETAPI__
NET_API_STATUS NetJoinDomain ( const char * server /* [in] [unique] */ ,
const char * domain /* [in] [ref] */ ,
const char * account_ou /* [in] [unique] */ ,
const char * account /* [in] [unique] */ ,
const char * password /* [in] [unique] */ ,
uint32_t join_flags /* [in] */ ) ;
WERROR NetJoinDomain_r ( struct libnetapi_ctx * ctx ,
struct NetJoinDomain * r ) ;
WERROR NetJoinDomain_l ( struct libnetapi_ctx * ctx ,
struct NetJoinDomain * r ) ;
NET_API_STATUS NetUnjoinDomain ( const char * server_name /* [in] [unique] */ ,
const char * account /* [in] [unique] */ ,
const char * password /* [in] [unique] */ ,
uint32_t unjoin_flags /* [in] */ ) ;
WERROR NetUnjoinDomain_r ( struct libnetapi_ctx * ctx ,
struct NetUnjoinDomain * r ) ;
WERROR NetUnjoinDomain_l ( struct libnetapi_ctx * ctx ,
struct NetUnjoinDomain * r ) ;
NET_API_STATUS NetGetJoinInformation ( const char * server_name /* [in] [unique] */ ,
const char * * name_buffer /* [out] [ref] */ ,
uint16_t * name_type /* [out] [ref] */ ) ;
WERROR NetGetJoinInformation_r ( struct libnetapi_ctx * ctx ,
struct NetGetJoinInformation * r ) ;
WERROR NetGetJoinInformation_l ( struct libnetapi_ctx * ctx ,
struct NetGetJoinInformation * r ) ;
NET_API_STATUS NetGetJoinableOUs ( const char * server_name /* [in] [unique] */ ,
const char * domain /* [in] [ref] */ ,
const char * account /* [in] [unique] */ ,
const char * password /* [in] [unique] */ ,
uint32_t * ou_count /* [out] [ref] */ ,
const char * * * ous /* [out] [ref] */ ) ;
WERROR NetGetJoinableOUs_r ( struct libnetapi_ctx * ctx ,
struct NetGetJoinableOUs * r ) ;
WERROR NetGetJoinableOUs_l ( struct libnetapi_ctx * ctx ,
struct NetGetJoinableOUs * r ) ;
2008-09-02 11:02:43 +02:00
NET_API_STATUS NetRenameMachineInDomain ( const char * server_name /* [in] */ ,
const char * new_machine_name /* [in] */ ,
const char * account /* [in] */ ,
const char * password /* [in] */ ,
uint32_t rename_options /* [in] */ ) ;
WERROR NetRenameMachineInDomain_r ( struct libnetapi_ctx * ctx ,
struct NetRenameMachineInDomain * r ) ;
WERROR NetRenameMachineInDomain_l ( struct libnetapi_ctx * ctx ,
struct NetRenameMachineInDomain * r ) ;
2008-04-08 02:42:50 +02:00
NET_API_STATUS NetServerGetInfo ( const char * server_name /* [in] [unique] */ ,
uint32_t level /* [in] */ ,
uint8_t * * buffer /* [out] [ref] */ ) ;
WERROR NetServerGetInfo_r ( struct libnetapi_ctx * ctx ,
struct NetServerGetInfo * r ) ;
WERROR NetServerGetInfo_l ( struct libnetapi_ctx * ctx ,
struct NetServerGetInfo * r ) ;
NET_API_STATUS NetServerSetInfo ( const char * server_name /* [in] [unique] */ ,
uint32_t level /* [in] */ ,
uint8_t * buffer /* [in] [ref] */ ,
uint32_t * parm_error /* [out] [ref] */ ) ;
WERROR NetServerSetInfo_r ( struct libnetapi_ctx * ctx ,
struct NetServerSetInfo * r ) ;
WERROR NetServerSetInfo_l ( struct libnetapi_ctx * ctx ,
struct NetServerSetInfo * r ) ;
NET_API_STATUS NetGetDCName ( const char * server_name /* [in] [unique] */ ,
const char * domain_name /* [in] [unique] */ ,
uint8_t * * buffer /* [out] [ref] */ ) ;
WERROR NetGetDCName_r ( struct libnetapi_ctx * ctx ,
struct NetGetDCName * r ) ;
WERROR NetGetDCName_l ( struct libnetapi_ctx * ctx ,
struct NetGetDCName * r ) ;
NET_API_STATUS NetGetAnyDCName ( const char * server_name /* [in] [unique] */ ,
const char * domain_name /* [in] [unique] */ ,
uint8_t * * buffer /* [out] [ref] */ ) ;
WERROR NetGetAnyDCName_r ( struct libnetapi_ctx * ctx ,
struct NetGetAnyDCName * r ) ;
WERROR NetGetAnyDCName_l ( struct libnetapi_ctx * ctx ,
struct NetGetAnyDCName * r ) ;
2008-04-08 18:43:51 +02:00
NET_API_STATUS DsGetDcName ( const char * server_name /* [in] [unique] */ ,
const char * domain_name /* [in] [ref] */ ,
struct GUID * domain_guid /* [in] [unique] */ ,
const char * site_name /* [in] [unique] */ ,
uint32_t flags /* [in] */ ,
struct DOMAIN_CONTROLLER_INFO * * dc_info /* [out] [ref] */ ) ;
WERROR DsGetDcName_r ( struct libnetapi_ctx * ctx ,
struct DsGetDcName * r ) ;
WERROR DsGetDcName_l ( struct libnetapi_ctx * ctx ,
struct DsGetDcName * r ) ;
2008-04-09 12:38:22 +02:00
NET_API_STATUS NetUserAdd ( const char * server_name /* [in] [unique] */ ,
uint32_t level /* [in] */ ,
uint8_t * buffer /* [in] [ref] */ ,
uint32_t * parm_error /* [out] [ref] */ ) ;
WERROR NetUserAdd_r ( struct libnetapi_ctx * ctx ,
struct NetUserAdd * r ) ;
WERROR NetUserAdd_l ( struct libnetapi_ctx * ctx ,
struct NetUserAdd * r ) ;
2008-04-09 13:35:49 +02:00
NET_API_STATUS NetUserDel ( const char * server_name /* [in] [unique] */ ,
const char * user_name /* [in] [ref] */ ) ;
WERROR NetUserDel_r ( struct libnetapi_ctx * ctx ,
struct NetUserDel * r ) ;
WERROR NetUserDel_l ( struct libnetapi_ctx * ctx ,
struct NetUserDel * r ) ;
2008-04-09 13:47:51 +02:00
NET_API_STATUS NetUserEnum ( const char * server_name /* [in] [unique] */ ,
uint32_t level /* [in] */ ,
uint32_t filter /* [in] */ ,
uint8_t * * buffer /* [out] [ref] */ ,
uint32_t prefmaxlen /* [in] */ ,
uint32_t * entries_read /* [out] [ref] */ ,
uint32_t * total_entries /* [out] [ref] */ ,
uint32_t * resume_handle /* [in,out] [ref] */ ) ;
WERROR NetUserEnum_r ( struct libnetapi_ctx * ctx ,
struct NetUserEnum * r ) ;
WERROR NetUserEnum_l ( struct libnetapi_ctx * ctx ,
struct NetUserEnum * r ) ;
2008-06-25 00:32:02 +02:00
NET_API_STATUS NetUserChangePassword ( const char * domain_name /* [in] */ ,
const char * user_name /* [in] */ ,
const char * old_password /* [in] */ ,
const char * new_password /* [in] */ ) ;
WERROR NetUserChangePassword_r ( struct libnetapi_ctx * ctx ,
struct NetUserChangePassword * r ) ;
WERROR NetUserChangePassword_l ( struct libnetapi_ctx * ctx ,
struct NetUserChangePassword * r ) ;
2008-07-16 10:47:38 +02:00
NET_API_STATUS NetUserGetInfo ( const char * server_name /* [in] */ ,
const char * user_name /* [in] */ ,
uint32_t level /* [in] */ ,
uint8_t * * buffer /* [out] [ref] */ ) ;
WERROR NetUserGetInfo_r ( struct libnetapi_ctx * ctx ,
struct NetUserGetInfo * r ) ;
WERROR NetUserGetInfo_l ( struct libnetapi_ctx * ctx ,
struct NetUserGetInfo * r ) ;
2008-07-17 01:00:33 +02:00
NET_API_STATUS NetUserSetInfo ( const char * server_name /* [in] */ ,
const char * user_name /* [in] */ ,
uint32_t level /* [in] */ ,
uint8_t * buffer /* [in] [ref] */ ,
uint32_t * parm_err /* [out] [ref] */ ) ;
WERROR NetUserSetInfo_r ( struct libnetapi_ctx * ctx ,
struct NetUserSetInfo * r ) ;
WERROR NetUserSetInfo_l ( struct libnetapi_ctx * ctx ,
struct NetUserSetInfo * r ) ;
2008-08-27 11:49:55 +02:00
NET_API_STATUS NetUserGetGroups ( const char * server_name /* [in] */ ,
const char * user_name /* [in] */ ,
uint32_t level /* [in] */ ,
uint8_t * * buffer /* [out] [ref] */ ,
uint32_t prefmaxlen /* [in] */ ,
uint32_t * entries_read /* [out] [ref] */ ,
uint32_t * total_entries /* [out] [ref] */ ) ;
WERROR NetUserGetGroups_r ( struct libnetapi_ctx * ctx ,
struct NetUserGetGroups * r ) ;
WERROR NetUserGetGroups_l ( struct libnetapi_ctx * ctx ,
struct NetUserGetGroups * r ) ;
2008-07-31 16:43:27 +02:00
NET_API_STATUS NetUserModalsGet ( const char * server_name /* [in] */ ,
uint32_t level /* [in] */ ,
uint8_t * * buffer /* [out] [ref] */ ) ;
WERROR NetUserModalsGet_r ( struct libnetapi_ctx * ctx ,
struct NetUserModalsGet * r ) ;
WERROR NetUserModalsGet_l ( struct libnetapi_ctx * ctx ,
struct NetUserModalsGet * r ) ;
NET_API_STATUS NetUserModalsSet ( const char * server_name /* [in] */ ,
uint32_t level /* [in] */ ,
uint8_t * buffer /* [in] [ref] */ ,
uint32_t * parm_err /* [out] [ref] */ ) ;
WERROR NetUserModalsSet_r ( struct libnetapi_ctx * ctx ,
struct NetUserModalsSet * r ) ;
WERROR NetUserModalsSet_l ( struct libnetapi_ctx * ctx ,
struct NetUserModalsSet * r ) ;
2008-04-13 19:04:18 +02:00
NET_API_STATUS NetQueryDisplayInformation ( const char * server_name /* [in] [unique] */ ,
uint32_t level /* [in] */ ,
uint32_t idx /* [in] */ ,
uint32_t entries_requested /* [in] */ ,
uint32_t prefmaxlen /* [in] */ ,
uint32_t * entries_read /* [out] [ref] */ ,
void * * buffer /* [out] [noprint,ref] */ ) ;
WERROR NetQueryDisplayInformation_r ( struct libnetapi_ctx * ctx ,
struct NetQueryDisplayInformation * r ) ;
WERROR NetQueryDisplayInformation_l ( struct libnetapi_ctx * ctx ,
struct NetQueryDisplayInformation * r ) ;
2008-05-27 12:11:28 +02:00
NET_API_STATUS NetGroupAdd ( const char * server_name /* [in] */ ,
uint32_t level /* [in] */ ,
2008-07-18 23:33:08 +02:00
uint8_t * buffer /* [in] [ref] */ ,
2008-05-27 12:11:28 +02:00
uint32_t * parm_err /* [out] [ref] */ ) ;
WERROR NetGroupAdd_r ( struct libnetapi_ctx * ctx ,
struct NetGroupAdd * r ) ;
WERROR NetGroupAdd_l ( struct libnetapi_ctx * ctx ,
struct NetGroupAdd * r ) ;
NET_API_STATUS NetGroupDel ( const char * server_name /* [in] */ ,
const char * group_name /* [in] */ ) ;
WERROR NetGroupDel_r ( struct libnetapi_ctx * ctx ,
struct NetGroupDel * r ) ;
WERROR NetGroupDel_l ( struct libnetapi_ctx * ctx ,
struct NetGroupDel * r ) ;
2008-07-01 20:11:02 +02:00
NET_API_STATUS NetGroupEnum ( const char * server_name /* [in] */ ,
uint32_t level /* [in] */ ,
uint8_t * * buffer /* [out] [ref] */ ,
uint32_t prefmaxlen /* [in] */ ,
uint32_t * entries_read /* [out] [ref] */ ,
uint32_t * total_entries /* [out] [ref] */ ,
uint32_t * resume_handle /* [in,out] [ref] */ ) ;
WERROR NetGroupEnum_r ( struct libnetapi_ctx * ctx ,
struct NetGroupEnum * r ) ;
WERROR NetGroupEnum_l ( struct libnetapi_ctx * ctx ,
struct NetGroupEnum * r ) ;
2008-06-02 12:54:17 +02:00
NET_API_STATUS NetGroupSetInfo ( const char * server_name /* [in] */ ,
const char * group_name /* [in] */ ,
uint32_t level /* [in] */ ,
2008-07-18 23:33:08 +02:00
uint8_t * buffer /* [in] [ref] */ ,
2008-06-02 12:54:17 +02:00
uint32_t * parm_err /* [out] [ref] */ ) ;
WERROR NetGroupSetInfo_r ( struct libnetapi_ctx * ctx ,
struct NetGroupSetInfo * r ) ;
WERROR NetGroupSetInfo_l ( struct libnetapi_ctx * ctx ,
struct NetGroupSetInfo * r ) ;
2008-06-02 13:04:15 +02:00
NET_API_STATUS NetGroupGetInfo ( const char * server_name /* [in] */ ,
const char * group_name /* [in] */ ,
uint32_t level /* [in] */ ,
2008-07-18 23:33:08 +02:00
uint8_t * * buffer /* [out] [ref] */ ) ;
2008-06-02 13:04:15 +02:00
WERROR NetGroupGetInfo_r ( struct libnetapi_ctx * ctx ,
struct NetGroupGetInfo * r ) ;
WERROR NetGroupGetInfo_l ( struct libnetapi_ctx * ctx ,
struct NetGroupGetInfo * r ) ;
2008-06-02 13:43:21 +02:00
NET_API_STATUS NetGroupAddUser ( const char * server_name /* [in] */ ,
const char * group_name /* [in] */ ,
const char * user_name /* [in] */ ) ;
WERROR NetGroupAddUser_r ( struct libnetapi_ctx * ctx ,
struct NetGroupAddUser * r ) ;
WERROR NetGroupAddUser_l ( struct libnetapi_ctx * ctx ,
struct NetGroupAddUser * r ) ;
NET_API_STATUS NetGroupDelUser ( const char * server_name /* [in] */ ,
const char * group_name /* [in] */ ,
const char * user_name /* [in] */ ) ;
WERROR NetGroupDelUser_r ( struct libnetapi_ctx * ctx ,
struct NetGroupDelUser * r ) ;
WERROR NetGroupDelUser_l ( struct libnetapi_ctx * ctx ,
struct NetGroupDelUser * r ) ;
2008-07-18 23:40:33 +02:00
NET_API_STATUS NetGroupGetUsers ( const char * server_name /* [in] */ ,
const char * group_name /* [in] */ ,
uint32_t level /* [in] */ ,
uint8_t * * buffer /* [out] [ref] */ ,
uint32_t prefmaxlen /* [in] */ ,
uint32_t * entries_read /* [out] [ref] */ ,
uint32_t * total_entries /* [out] [ref] */ ,
uint32_t * resume_handle /* [in,out] [ref] */ ) ;
WERROR NetGroupGetUsers_r ( struct libnetapi_ctx * ctx ,
struct NetGroupGetUsers * r ) ;
WERROR NetGroupGetUsers_l ( struct libnetapi_ctx * ctx ,
struct NetGroupGetUsers * r ) ;
2008-06-02 17:34:53 +02:00
NET_API_STATUS NetLocalGroupAdd ( const char * server_name /* [in] */ ,
uint32_t level /* [in] */ ,
2008-07-18 23:33:08 +02:00
uint8_t * buffer /* [in] [ref] */ ,
2008-06-02 17:34:53 +02:00
uint32_t * parm_err /* [out] [ref] */ ) ;
WERROR NetLocalGroupAdd_r ( struct libnetapi_ctx * ctx ,
struct NetLocalGroupAdd * r ) ;
WERROR NetLocalGroupAdd_l ( struct libnetapi_ctx * ctx ,
struct NetLocalGroupAdd * r ) ;
2008-06-02 19:20:25 +02:00
NET_API_STATUS NetLocalGroupDel ( const char * server_name /* [in] */ ,
const char * group_name /* [in] */ ) ;
WERROR NetLocalGroupDel_r ( struct libnetapi_ctx * ctx ,
struct NetLocalGroupDel * r ) ;
WERROR NetLocalGroupDel_l ( struct libnetapi_ctx * ctx ,
struct NetLocalGroupDel * r ) ;
2008-06-02 20:20:27 +02:00
NET_API_STATUS NetLocalGroupGetInfo ( const char * server_name /* [in] */ ,
const char * group_name /* [in] */ ,
uint32_t level /* [in] */ ,
2008-07-18 23:33:08 +02:00
uint8_t * * buffer /* [out] [ref] */ ) ;
2008-06-02 20:20:27 +02:00
WERROR NetLocalGroupGetInfo_r ( struct libnetapi_ctx * ctx ,
struct NetLocalGroupGetInfo * r ) ;
WERROR NetLocalGroupGetInfo_l ( struct libnetapi_ctx * ctx ,
struct NetLocalGroupGetInfo * r ) ;
2008-06-02 22:29:32 +02:00
NET_API_STATUS NetLocalGroupSetInfo ( const char * server_name /* [in] */ ,
const char * group_name /* [in] */ ,
uint32_t level /* [in] */ ,
2008-07-18 23:33:08 +02:00
uint8_t * buffer /* [in] [ref] */ ,
2008-06-02 22:29:32 +02:00
uint32_t * parm_err /* [out] [ref] */ ) ;
WERROR NetLocalGroupSetInfo_r ( struct libnetapi_ctx * ctx ,
struct NetLocalGroupSetInfo * r ) ;
WERROR NetLocalGroupSetInfo_l ( struct libnetapi_ctx * ctx ,
struct NetLocalGroupSetInfo * r ) ;
2008-07-18 01:23:26 +02:00
NET_API_STATUS NetLocalGroupEnum ( const char * server_name /* [in] */ ,
uint32_t level /* [in] */ ,
uint8_t * * buffer /* [out] [ref] */ ,
uint32_t prefmaxlen /* [in] */ ,
uint32_t * entries_read /* [out] [ref] */ ,
uint32_t * total_entries /* [out] [ref] */ ,
uint32_t * resume_handle /* [in,out] [ref] */ ) ;
WERROR NetLocalGroupEnum_r ( struct libnetapi_ctx * ctx ,
struct NetLocalGroupEnum * r ) ;
WERROR NetLocalGroupEnum_l ( struct libnetapi_ctx * ctx ,
struct NetLocalGroupEnum * r ) ;
2008-07-31 16:05:11 +02:00
NET_API_STATUS NetLocalGroupAddMembers ( const char * server_name /* [in] */ ,
const char * group_name /* [in] */ ,
uint32_t level /* [in] */ ,
uint8_t * buffer /* [in] [ref] */ ,
uint32_t total_entries /* [in] */ ) ;
WERROR NetLocalGroupAddMembers_r ( struct libnetapi_ctx * ctx ,
struct NetLocalGroupAddMembers * r ) ;
WERROR NetLocalGroupAddMembers_l ( struct libnetapi_ctx * ctx ,
struct NetLocalGroupAddMembers * r ) ;
NET_API_STATUS NetLocalGroupDelMembers ( const char * server_name /* [in] */ ,
const char * group_name /* [in] */ ,
uint32_t level /* [in] */ ,
uint8_t * buffer /* [in] [ref] */ ,
uint32_t total_entries /* [in] */ ) ;
WERROR NetLocalGroupDelMembers_r ( struct libnetapi_ctx * ctx ,
struct NetLocalGroupDelMembers * r ) ;
WERROR NetLocalGroupDelMembers_l ( struct libnetapi_ctx * ctx ,
struct NetLocalGroupDelMembers * r ) ;
NET_API_STATUS NetLocalGroupGetMembers ( const char * server_name /* [in] */ ,
const char * local_group_name /* [in] */ ,
uint32_t level /* [in] */ ,
uint8_t * * buffer /* [out] [ref] */ ,
uint32_t prefmaxlen /* [in] */ ,
uint32_t * entries_read /* [out] [ref] */ ,
uint32_t * total_entries /* [out] [ref] */ ,
uint32_t * resume_handle /* [in,out] [ref] */ ) ;
WERROR NetLocalGroupGetMembers_r ( struct libnetapi_ctx * ctx ,
struct NetLocalGroupGetMembers * r ) ;
WERROR NetLocalGroupGetMembers_l ( struct libnetapi_ctx * ctx ,
struct NetLocalGroupGetMembers * r ) ;
NET_API_STATUS NetLocalGroupSetMembers ( const char * server_name /* [in] */ ,
const char * group_name /* [in] */ ,
uint32_t level /* [in] */ ,
uint8_t * buffer /* [in] [ref] */ ,
uint32_t total_entries /* [in] */ ) ;
WERROR NetLocalGroupSetMembers_r ( struct libnetapi_ctx * ctx ,
struct NetLocalGroupSetMembers * r ) ;
WERROR NetLocalGroupSetMembers_l ( struct libnetapi_ctx * ctx ,
struct NetLocalGroupSetMembers * r ) ;
2008-06-06 13:50:39 +02:00
NET_API_STATUS NetRemoteTOD ( const char * server_name /* [in] */ ,
2008-07-18 23:33:08 +02:00
uint8_t * * buffer /* [out] [ref] */ ) ;
2008-06-06 13:50:39 +02:00
WERROR NetRemoteTOD_r ( struct libnetapi_ctx * ctx ,
struct NetRemoteTOD * r ) ;
WERROR NetRemoteTOD_l ( struct libnetapi_ctx * ctx ,
struct NetRemoteTOD * r ) ;
2008-08-28 01:01:11 +02:00
NET_API_STATUS NetShareAdd ( const char * server_name /* [in] */ ,
uint32_t level /* [in] */ ,
uint8_t * buffer /* [in] [ref] */ ,
uint32_t * parm_err /* [out] [ref] */ ) ;
WERROR NetShareAdd_r ( struct libnetapi_ctx * ctx ,
struct NetShareAdd * r ) ;
WERROR NetShareAdd_l ( struct libnetapi_ctx * ctx ,
struct NetShareAdd * r ) ;
2008-08-29 18:34:28 +02:00
NET_API_STATUS NetShareDel ( const char * server_name /* [in] */ ,
const char * net_name /* [in] */ ,
uint32_t reserved /* [in] */ ) ;
WERROR NetShareDel_r ( struct libnetapi_ctx * ctx ,
struct NetShareDel * r ) ;
WERROR NetShareDel_l ( struct libnetapi_ctx * ctx ,
struct NetShareDel * r ) ;
2008-08-29 18:58:32 +02:00
NET_API_STATUS NetShareEnum ( const char * server_name /* [in] */ ,
uint32_t level /* [in] */ ,
uint8_t * * buffer /* [out] [ref] */ ,
uint32_t prefmaxlen /* [in] */ ,
uint32_t * entries_read /* [out] [ref] */ ,
uint32_t * total_entries /* [out] [ref] */ ,
uint32_t * resume_handle /* [in,out] [ref] */ ) ;
WERROR NetShareEnum_r ( struct libnetapi_ctx * ctx ,
struct NetShareEnum * r ) ;
WERROR NetShareEnum_l ( struct libnetapi_ctx * ctx ,
struct NetShareEnum * r ) ;
2008-04-08 02:42:50 +02:00
# endif /* __LIBNETAPI_LIBNETAPI__ */