From ca7e4ce97a39f1536047478388302c708d34d372 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 16 Dec 2008 15:59:06 +0100 Subject: Move shared gen_ndr files to librpc/gen_ndr in the root. At the moment these files are used just by Samba 3, but the next step will be using them from Samba 4 as well. --- librpc/gen_ndr/cli_wkssvc.h | 230 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 230 insertions(+) create mode 100644 librpc/gen_ndr/cli_wkssvc.h (limited to 'librpc/gen_ndr/cli_wkssvc.h') diff --git a/librpc/gen_ndr/cli_wkssvc.h b/librpc/gen_ndr/cli_wkssvc.h new file mode 100644 index 0000000000..0d360abfeb --- /dev/null +++ b/librpc/gen_ndr/cli_wkssvc.h @@ -0,0 +1,230 @@ +#include "librpc/gen_ndr/ndr_wkssvc.h" +#ifndef __CLI_WKSSVC__ +#define __CLI_WKSSVC__ +NTSTATUS rpccli_wkssvc_NetWkstaGetInfo(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + uint32_t level /* [in] */, + union wkssvc_NetWkstaInfo *info /* [out] [ref,switch_is(level)] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetWkstaSetInfo(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + uint32_t level /* [in] */, + union wkssvc_NetWkstaInfo *info /* [in] [ref,switch_is(level)] */, + uint32_t *parm_error /* [in,out] [ref] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + struct wkssvc_NetWkstaEnumUsersInfo *info /* [in,out] [ref] */, + uint32_t prefmaxlen /* [in] */, + uint32_t *entries_read /* [out] [ref] */, + uint32_t *resume_handle /* [in,out] [unique] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrWkstaUserGetInfo(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *unknown /* [in] [unique,charset(UTF16)] */, + uint32_t level /* [in] */, + union wkssvc_NetrWkstaUserInfo *info /* [out] [ref,switch_is(level)] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrWkstaUserSetInfo(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *unknown /* [in] [unique,charset(UTF16)] */, + uint32_t level /* [in] */, + union wkssvc_NetrWkstaUserInfo *info /* [in] [ref,switch_is(level)] */, + uint32_t *parm_err /* [in,out] [unique] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + struct wkssvc_NetWkstaTransportInfo *info /* [in,out] [ref] */, + uint32_t max_buffer /* [in] */, + uint32_t *total_entries /* [out] [ref] */, + uint32_t *resume_handle /* [in,out] [unique] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrWkstaTransportAdd(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + uint32_t level /* [in] */, + struct wkssvc_NetWkstaTransportInfo0 *info0 /* [in] [ref] */, + uint32_t *parm_err /* [in,out] [unique] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrWkstaTransportDel(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char *transport_name /* [in] [unique,charset(UTF16)] */, + uint32_t unknown3 /* [in] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrUseAdd(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + uint32_t level /* [in] */, + union wkssvc_NetrUseGetInfoCtr *ctr /* [in] [ref,switch_is(level)] */, + uint32_t *parm_err /* [in,out] [unique] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrUseGetInfo(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char *use_name /* [in] [ref,charset(UTF16)] */, + uint32_t level /* [in] */, + union wkssvc_NetrUseGetInfoCtr *ctr /* [out] [ref,switch_is(level)] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrUseDel(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char *use_name /* [in] [ref,charset(UTF16)] */, + uint32_t force_cond /* [in] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrUseEnum(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + struct wkssvc_NetrUseEnumInfo *info /* [in,out] [ref] */, + uint32_t prefmaxlen /* [in] */, + uint32_t *entries_read /* [out] [ref] */, + uint32_t *resume_handle /* [in,out] [unique] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrMessageBufferSend(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char *message_name /* [in] [ref,charset(UTF16)] */, + const char *message_sender_name /* [in] [unique,charset(UTF16)] */, + uint8_t *message_buffer /* [in] [ref,size_is(message_size)] */, + uint32_t message_size /* [in] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrWorkstationStatisticsGet(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char *unknown2 /* [in] [unique,charset(UTF16)] */, + uint32_t unknown3 /* [in] */, + uint32_t unknown4 /* [in] */, + struct wkssvc_NetrWorkstationStatistics **info /* [out] [ref] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrLogonDomainNameAdd(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *domain_name /* [in] [ref,charset(UTF16)] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrLogonDomainNameDel(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *domain_name /* [in] [ref,charset(UTF16)] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrJoinDomain(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char *domain_name /* [in] [ref,charset(UTF16)] */, + const char *account_ou /* [in] [unique,charset(UTF16)] */, + const char *Account /* [in] [unique,charset(UTF16)] */, + const char *password /* [in] [unique,charset(UTF16)] */, + uint32_t join_flags /* [in] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrUnjoinDomain(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char *Account /* [in] [unique,charset(UTF16)] */, + const char *password /* [in] [unique,charset(UTF16)] */, + uint32_t unjoin_flags /* [in] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char *NewMachineName /* [in] [unique,charset(UTF16)] */, + const char *Account /* [in] [unique,charset(UTF16)] */, + const char *password /* [in] [unique,charset(UTF16)] */, + uint32_t RenameOptions /* [in] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrValidateName(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char *name /* [in] [ref,charset(UTF16)] */, + const char *Account /* [in] [unique,charset(UTF16)] */, + const char *Password /* [in] [unique,charset(UTF16)] */, + enum wkssvc_NetValidateNameType name_type /* [in] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrGetJoinInformation(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char **name_buffer /* [in,out] [ref,charset(UTF16)] */, + enum wkssvc_NetJoinStatus *name_type /* [out] [ref] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrGetJoinableOus(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char *domain_name /* [in] [ref,charset(UTF16)] */, + const char *Account /* [in] [unique,charset(UTF16)] */, + const char *unknown /* [in] [unique,charset(UTF16)] */, + uint32_t *num_ous /* [in,out] [ref] */, + const char ***ous /* [out] [ref,charset(UTF16),size_is(,*num_ous)] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char *domain_name /* [in] [ref,charset(UTF16)] */, + const char *account_ou /* [in] [unique,charset(UTF16)] */, + const char *admin_account /* [in] [unique,charset(UTF16)] */, + struct wkssvc_PasswordBuffer *encrypted_password /* [in] [unique] */, + uint32_t join_flags /* [in] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrUnjoinDomain2(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char *account /* [in] [unique,charset(UTF16)] */, + struct wkssvc_PasswordBuffer *encrypted_password /* [in] [unique] */, + uint32_t unjoin_flags /* [in] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain2(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char *NewMachineName /* [in] [unique,charset(UTF16)] */, + const char *Account /* [in] [unique,charset(UTF16)] */, + struct wkssvc_PasswordBuffer *EncryptedPassword /* [in] [unique] */, + uint32_t RenameOptions /* [in] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrValidateName2(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char *name /* [in] [ref,charset(UTF16)] */, + const char *Account /* [in] [unique,charset(UTF16)] */, + struct wkssvc_PasswordBuffer *EncryptedPassword /* [in] [unique] */, + enum wkssvc_NetValidateNameType name_type /* [in] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrGetJoinableOus2(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char *domain_name /* [in] [ref,charset(UTF16)] */, + const char *Account /* [in] [unique,charset(UTF16)] */, + struct wkssvc_PasswordBuffer *EncryptedPassword /* [in] [unique] */, + uint32_t *num_ous /* [in,out] [ref] */, + const char ***ous /* [out] [ref,charset(UTF16),size_is(,*num_ous)] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrAddAlternateComputerName(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char *NewAlternateMachineName /* [in] [unique,charset(UTF16)] */, + const char *Account /* [in] [unique,charset(UTF16)] */, + struct wkssvc_PasswordBuffer *EncryptedPassword /* [in] [unique] */, + uint32_t Reserved /* [in] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrRemoveAlternateComputerName(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char *AlternateMachineNameToRemove /* [in] [unique,charset(UTF16)] */, + const char *Account /* [in] [unique,charset(UTF16)] */, + struct wkssvc_PasswordBuffer *EncryptedPassword /* [in] [unique] */, + uint32_t Reserved /* [in] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrSetPrimaryComputername(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + const char *primary_name /* [in] [unique,charset(UTF16)] */, + const char *Account /* [in] [unique,charset(UTF16)] */, + struct wkssvc_PasswordBuffer *EncryptedPassword /* [in] [unique] */, + uint32_t Reserved /* [in] */, + WERROR *werror); +NTSTATUS rpccli_wkssvc_NetrEnumerateComputerNames(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *server_name /* [in] [unique,charset(UTF16)] */, + enum wkssvc_ComputerNameType name_type /* [in] */, + uint32_t Reserved /* [in] */, + struct wkssvc_ComputerNamesCtr **ctr /* [out] [ref] */, + WERROR *werror); +#endif /* __CLI_WKSSVC__ */ -- cgit