1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r18641: Checking in the wkssvc files after updating the [out]

pointers.  Waiting on on srvsvc files before it can actually compile.
(This used to be commit 1dbfb25d0a)
This commit is contained in:
Gerald Carter 2006-09-18 22:20:37 +00:00 committed by Gerald (Jerry) Carter
parent 47e6b7733a
commit 768e7cb043
8 changed files with 7757 additions and 6 deletions

View File

@ -0,0 +1,586 @@
/*
* Unix SMB/CIFS implementation.
* client auto-generated by pidl. DO NOT MODIFY!
*/
#include "includes.h"
#include "librpc/gen_ndr/cli_wkssvc.h"
NTSTATUS rpccli_wkssvc_NetWkstaGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, union wkssvc_NetWkstaInfo *info)
{
struct wkssvc_NetWkstaGetInfo r;
NTSTATUS status;
/* In parameters */
r.in.server_name = server_name;
r.in.level = level;
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETWKSTAGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetWkstaGetInfo, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetWkstaGetInfo);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
*info = *r.out.info;
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_wkssvc_NetWkstaSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, union wkssvc_NetWkstaInfo *info, uint32_t *parm_error)
{
struct wkssvc_NetWkstaSetInfo r;
NTSTATUS status;
/* In parameters */
r.in.server_name = server_name;
r.in.level = level;
r.in.info = info;
r.in.parm_error = parm_error;
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETWKSTASETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetWkstaSetInfo, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetWkstaSetInfo);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
*parm_error = *r.out.parm_error;
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, union WKS_USER_ENUM_UNION *users, uint32_t prefmaxlen, uint32_t *entriesread, uint32_t *totalentries, uint32_t *resumehandle)
{
struct wkssvc_NetWkstaEnumUsers r;
NTSTATUS status;
/* In parameters */
r.in.server_name = server_name;
r.in.level = level;
r.in.users = users;
r.in.prefmaxlen = prefmaxlen;
r.in.resumehandle = resumehandle;
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETWKSTAENUMUSERS, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetWkstaEnumUsers, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetWkstaEnumUsers);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
*users = *r.out.users;
*entriesread = *r.out.entriesread;
*totalentries = *r.out.totalentries;
*resumehandle = *r.out.resumehandle;
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRWKSTAUSERGETINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRWKSTAUSERGETINFO r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWKSTAUSERGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWKSTAUSERGETINFO, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWKSTAUSERGETINFO);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRWKSTAUSERSETINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRWKSTAUSERSETINFO r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWKSTAUSERSETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWKSTAUSERSETINFO, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWKSTAUSERSETINFO);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t *level, union wkssvc_NetWkstaTransportCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle)
{
struct wkssvc_NetWkstaTransportEnum r;
NTSTATUS status;
/* In parameters */
r.in.server_name = server_name;
r.in.level = level;
r.in.ctr = ctr;
r.in.max_buffer = max_buffer;
r.in.resume_handle = resume_handle;
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETWKSTATRANSPORTENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetWkstaTransportEnum, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetWkstaTransportEnum);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
*level = *r.out.level;
*ctr = *r.out.ctr;
*totalentries = *r.out.totalentries;
*resume_handle = *r.out.resume_handle;
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRWKSTATRANSPORTADD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRWKSTATRANSPORTADD r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWKSTATRANSPORTADD, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWKSTATRANSPORTADD, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWKSTATRANSPORTADD);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRWKSTATRANSPORTDEL(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRWKSTATRANSPORTDEL r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWKSTATRANSPORTDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWKSTATRANSPORTDEL, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWKSTATRANSPORTDEL);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRUSEADD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRUSEADD r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUSEADD, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUSEADD, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUSEADD);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRUSEGETINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRUSEGETINFO r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUSEGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUSEGETINFO, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUSEGETINFO);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRUSEDEL(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRUSEDEL r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUSEDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUSEDEL, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUSEDEL);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRUSEENUM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRUSEENUM r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUSEENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUSEENUM, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUSEENUM);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRMESSAGEBUFFERSEND(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRMESSAGEBUFFERSEND r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRMESSAGEBUFFERSEND, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRMESSAGEBUFFERSEND, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRMESSAGEBUFFERSEND);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRWORKSTATIONSTATISTICSGET(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRWORKSTATIONSTATISTICSGET r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWORKSTATIONSTATISTICSGET, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWORKSTATIONSTATISTICSGET, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWORKSTATIONSTATISTICSGET);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRLOGONDOMAINNAMEADD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRLOGONDOMAINNAMEADD r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRLOGONDOMAINNAMEADD, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRLOGONDOMAINNAMEADD, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRLOGONDOMAINNAMEADD);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRLOGONDOMAINNAMEDEL(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRLOGONDOMAINNAMEDEL r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRLOGONDOMAINNAMEDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRLOGONDOMAINNAMEDEL, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRLOGONDOMAINNAMEDEL);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRJOINDOMAIN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRJOINDOMAIN r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRJOINDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRJOINDOMAIN, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRJOINDOMAIN);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRUNJOINDOMAIN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRUNJOINDOMAIN r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUNJOINDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUNJOINDOMAIN, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUNJOINDOMAIN);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRRENAMEMACHINEINDOMAIN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRRENAMEMACHINEINDOMAIN r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRRENAMEMACHINEINDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRRENAMEMACHINEINDOMAIN, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRRENAMEMACHINEINDOMAIN);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRVALIDATENAME(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRVALIDATENAME r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRVALIDATENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRVALIDATENAME, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRVALIDATENAME);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRGETJOININFORMATION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRGETJOININFORMATION r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRGETJOININFORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRGETJOININFORMATION, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRGETJOININFORMATION);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRGETJOINABLEOUS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRGETJOINABLEOUS r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRGETJOINABLEOUS, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRGETJOINABLEOUS, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRGETJOINABLEOUS);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *domain_name, const char *account_name, const char *admin_account, struct wkssvc_PasswordBuffer *encrypted_password, uint32_t join_flags)
{
struct wkssvc_NetrJoinDomain2 r;
NTSTATUS status;
/* In parameters */
r.in.server_name = server_name;
r.in.domain_name = domain_name;
r.in.account_name = account_name;
r.in.admin_account = admin_account;
r.in.encrypted_password = encrypted_password;
r.in.join_flags = join_flags;
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRJOINDOMAIN2, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrJoinDomain2, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrJoinDomain2);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_wkssvc_NetrUnjoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account, struct wkssvc_PasswordBuffer *encrypted_password, uint32_t unjoin_flags)
{
struct wkssvc_NetrUnjoinDomain2 r;
NTSTATUS status;
/* In parameters */
r.in.server_name = server_name;
r.in.account = account;
r.in.encrypted_password = encrypted_password;
r.in.unjoin_flags = unjoin_flags;
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUNJOINDOMAIN2, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrUnjoinDomain2, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrUnjoinDomain2);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *NewMachineName, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t RenameOptions)
{
struct wkssvc_NetrRenameMachineInDomain2 r;
NTSTATUS status;
/* In parameters */
r.in.server_name = server_name;
r.in.NewMachineName = NewMachineName;
r.in.Account = Account;
r.in.EncryptedPassword = EncryptedPassword;
r.in.RenameOptions = RenameOptions;
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRRENAMEMACHINEINDOMAIN2, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrRenameMachineInDomain2, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrRenameMachineInDomain2);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRVALIDATENAME2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRVALIDATENAME2 r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRVALIDATENAME2, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRVALIDATENAME2, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRVALIDATENAME2);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRGETJOINABLEOUS2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRGETJOINABLEOUS2 r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRGETJOINABLEOUS2, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRGETJOINABLEOUS2, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRGETJOINABLEOUS2);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_wkssvc_NetrAddAlternateComputerName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *NewAlternateMachineName, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved)
{
struct wkssvc_NetrAddAlternateComputerName r;
NTSTATUS status;
/* In parameters */
r.in.server_name = server_name;
r.in.NewAlternateMachineName = NewAlternateMachineName;
r.in.Account = Account;
r.in.EncryptedPassword = EncryptedPassword;
r.in.Reserved = Reserved;
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRADDALTERNATECOMPUTERNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrAddAlternateComputerName, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrAddAlternateComputerName);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_wkssvc_NetrRemoveAlternateComputerName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *AlternateMachineNameToRemove, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved)
{
struct wkssvc_NetrRemoveAlternateComputerName r;
NTSTATUS status;
/* In parameters */
r.in.server_name = server_name;
r.in.AlternateMachineNameToRemove = AlternateMachineNameToRemove;
r.in.Account = Account;
r.in.EncryptedPassword = EncryptedPassword;
r.in.Reserved = Reserved;
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrRemoveAlternateComputerName, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrRemoveAlternateComputerName);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRSETPRIMARYCOMPUTERNAME(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRSETPRIMARYCOMPUTERNAME r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRSETPRIMARYCOMPUTERNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRSETPRIMARYCOMPUTERNAME, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRSETPRIMARYCOMPUTERNAME);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}
NTSTATUS rpccli_WKSSVC_NETRENUMERATECOMPUTERNAMES(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
{
struct WKSSVC_NETRENUMERATECOMPUTERNAMES r;
NTSTATUS status;
/* In parameters */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRENUMERATECOMPUTERNAMES, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRENUMERATECOMPUTERNAMES, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRENUMERATECOMPUTERNAMES);
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus(r.out.result);
}

View File

@ -0,0 +1,35 @@
#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, uint32_t level, union wkssvc_NetWkstaInfo *info);
NTSTATUS rpccli_wkssvc_NetWkstaSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, union wkssvc_NetWkstaInfo *info, uint32_t *parm_error);
NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t level, union WKS_USER_ENUM_UNION *users, uint32_t prefmaxlen, uint32_t *entriesread, uint32_t *totalentries, uint32_t *resumehandle);
NTSTATUS rpccli_WKSSVC_NETRWKSTAUSERGETINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_WKSSVC_NETRWKSTAUSERSETINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, uint32_t *level, union wkssvc_NetWkstaTransportCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle);
NTSTATUS rpccli_WKSSVC_NETRWKSTATRANSPORTADD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_WKSSVC_NETRWKSTATRANSPORTDEL(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_WKSSVC_NETRUSEADD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_WKSSVC_NETRUSEGETINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_WKSSVC_NETRUSEDEL(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_WKSSVC_NETRUSEENUM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_WKSSVC_NETRMESSAGEBUFFERSEND(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_WKSSVC_NETRWORKSTATIONSTATISTICSGET(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_WKSSVC_NETRLOGONDOMAINNAMEADD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_WKSSVC_NETRLOGONDOMAINNAMEDEL(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_WKSSVC_NETRJOINDOMAIN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_WKSSVC_NETRUNJOINDOMAIN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_WKSSVC_NETRRENAMEMACHINEINDOMAIN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_WKSSVC_NETRVALIDATENAME(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_WKSSVC_NETRGETJOININFORMATION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_WKSSVC_NETRGETJOINABLEOUS(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *domain_name, const char *account_name, const char *admin_account, struct wkssvc_PasswordBuffer *encrypted_password, uint32_t join_flags);
NTSTATUS rpccli_wkssvc_NetrUnjoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *account, struct wkssvc_PasswordBuffer *encrypted_password, uint32_t unjoin_flags);
NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *NewMachineName, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t RenameOptions);
NTSTATUS rpccli_WKSSVC_NETRVALIDATENAME2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_WKSSVC_NETRGETJOINABLEOUS2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_wkssvc_NetrAddAlternateComputerName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *NewAlternateMachineName, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved);
NTSTATUS rpccli_wkssvc_NetrRemoveAlternateComputerName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_name, const char *AlternateMachineNameToRemove, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved);
NTSTATUS rpccli_WKSSVC_NETRSETPRIMARYCOMPUTERNAME(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
NTSTATUS rpccli_WKSSVC_NETRENUMERATECOMPUTERNAMES(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx);
#endif /* __CLI_WKSSVC__ */

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,133 @@
/* header auto-generated by pidl */
#include "librpc/gen_ndr/wkssvc.h"
#ifndef _HEADER_NDR_wkssvc
#define _HEADER_NDR_wkssvc
#include "librpc/ndr/libndr.h"
#define DCERPC_WKSSVC_UUID "6bffd098-a112-3610-9833-46c3f87e345a"
#define DCERPC_WKSSVC_VERSION 1.0
#define DCERPC_WKSSVC_NAME "wkssvc"
#define DCERPC_WKSSVC_HELPSTRING "Workstation Service"
extern const struct dcerpc_interface_table dcerpc_table_wkssvc;
NTSTATUS dcerpc_server_wkssvc_init(void);
#define DCERPC_WKSSVC_NETWKSTAGETINFO (0x00)
#define DCERPC_WKSSVC_NETWKSTASETINFO (0x01)
#define DCERPC_WKSSVC_NETWKSTAENUMUSERS (0x02)
#define DCERPC_WKSSVC_NETRWKSTAUSERGETINFO (0x03)
#define DCERPC_WKSSVC_NETRWKSTAUSERSETINFO (0x04)
#define DCERPC_WKSSVC_NETWKSTATRANSPORTENUM (0x05)
#define DCERPC_WKSSVC_NETRWKSTATRANSPORTADD (0x06)
#define DCERPC_WKSSVC_NETRWKSTATRANSPORTDEL (0x07)
#define DCERPC_WKSSVC_NETRUSEADD (0x08)
#define DCERPC_WKSSVC_NETRUSEGETINFO (0x09)
#define DCERPC_WKSSVC_NETRUSEDEL (0x0a)
#define DCERPC_WKSSVC_NETRUSEENUM (0x0b)
#define DCERPC_WKSSVC_NETRMESSAGEBUFFERSEND (0x0c)
#define DCERPC_WKSSVC_NETRWORKSTATIONSTATISTICSGET (0x0d)
#define DCERPC_WKSSVC_NETRLOGONDOMAINNAMEADD (0x0e)
#define DCERPC_WKSSVC_NETRLOGONDOMAINNAMEDEL (0x0f)
#define DCERPC_WKSSVC_NETRJOINDOMAIN (0x10)
#define DCERPC_WKSSVC_NETRUNJOINDOMAIN (0x11)
#define DCERPC_WKSSVC_NETRRENAMEMACHINEINDOMAIN (0x12)
#define DCERPC_WKSSVC_NETRVALIDATENAME (0x13)
#define DCERPC_WKSSVC_NETRGETJOININFORMATION (0x14)
#define DCERPC_WKSSVC_NETRGETJOINABLEOUS (0x15)
#define DCERPC_WKSSVC_NETRJOINDOMAIN2 (0x16)
#define DCERPC_WKSSVC_NETRUNJOINDOMAIN2 (0x17)
#define DCERPC_WKSSVC_NETRRENAMEMACHINEINDOMAIN2 (0x18)
#define DCERPC_WKSSVC_NETRVALIDATENAME2 (0x19)
#define DCERPC_WKSSVC_NETRGETJOINABLEOUS2 (0x1a)
#define DCERPC_WKSSVC_NETRADDALTERNATECOMPUTERNAME (0x1b)
#define DCERPC_WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME (0x1c)
#define DCERPC_WKSSVC_NETRSETPRIMARYCOMPUTERNAME (0x1d)
#define DCERPC_WKSSVC_NETRENUMERATECOMPUTERNAMES (0x1e)
#define DCERPC_WKSSVC_CALL_COUNT (31)
void ndr_print_wkssvc_NetWkstaInfo100(struct ndr_print *ndr, const char *name, const struct wkssvc_NetWkstaInfo100 *r);
void ndr_print_wkssvc_NetWkstaInfo101(struct ndr_print *ndr, const char *name, const struct wkssvc_NetWkstaInfo101 *r);
void ndr_print_wkssvc_NetWkstaInfo102(struct ndr_print *ndr, const char *name, const struct wkssvc_NetWkstaInfo102 *r);
void ndr_print_wkssvc_NetWkstaInfo502(struct ndr_print *ndr, const char *name, const struct wkssvc_NetWkstaInfo502 *r);
void ndr_print_wkssvc_NetWkstaInfo1010(struct ndr_print *ndr, const char *name, const struct wkssvc_NetWkstaInfo1010 *r);
void ndr_print_wkssvc_NetWkstaInfo1011(struct ndr_print *ndr, const char *name, const struct wkssvc_NetWkstaInfo1011 *r);
void ndr_print_wkssvc_NetWkstaInfo1012(struct ndr_print *ndr, const char *name, const struct wkssvc_NetWkstaInfo1012 *r);
void ndr_print_wkssvc_NetWkstaInfo1013(struct ndr_print *ndr, const char *name, const struct wkssvc_NetWkstaInfo1013 *r);
void ndr_print_wkssvc_NetWkstaInfo1018(struct ndr_print *ndr, const char *name, const struct wkssvc_NetWkstaInfo1018 *r);
void ndr_print_wkssvc_NetWkstaInfo1023(struct ndr_print *ndr, const char *name, const struct wkssvc_NetWkstaInfo1023 *r);
void ndr_print_wkssvc_NetWkstaInfo1027(struct ndr_print *ndr, const char *name, const struct wkssvc_NetWkstaInfo1027 *r);
void ndr_print_wkssvc_NetWkstaInfo1033(struct ndr_print *ndr, const char *name, const struct wkssvc_NetWkstaInfo1033 *r);
void ndr_print_wkssvc_NetWkstaInfo(struct ndr_print *ndr, const char *name, const union wkssvc_NetWkstaInfo *r);
void ndr_print_USER_INFO_0(struct ndr_print *ndr, const char *name, const struct USER_INFO_0 *r);
void ndr_print_USER_INFO_0_CONTAINER(struct ndr_print *ndr, const char *name, const struct USER_INFO_0_CONTAINER *r);
void ndr_print_USER_INFO_1(struct ndr_print *ndr, const char *name, const struct USER_INFO_1 *r);
void ndr_print_USER_INFO_1_CONTAINER(struct ndr_print *ndr, const char *name, const struct USER_INFO_1_CONTAINER *r);
void ndr_print_WKS_USER_ENUM_UNION(struct ndr_print *ndr, const char *name, const union WKS_USER_ENUM_UNION *r);
void ndr_print_wkssvc_NetWkstaTransportInfo0(struct ndr_print *ndr, const char *name, const struct wkssvc_NetWkstaTransportInfo0 *r);
void ndr_print_wkssvc_NetWkstaTransportCtr0(struct ndr_print *ndr, const char *name, const struct wkssvc_NetWkstaTransportCtr0 *r);
void ndr_print_wkssvc_NetWkstaTransportCtr(struct ndr_print *ndr, const char *name, const union wkssvc_NetWkstaTransportCtr *r);
void ndr_print_wkssvc_PasswordBuffer(struct ndr_print *ndr, const char *name, const struct wkssvc_PasswordBuffer *r);
void ndr_print_wkssvc_joinflags(struct ndr_print *ndr, const char *name, uint32_t r);
void ndr_print_wkssvc_renameflags(struct ndr_print *ndr, const char *name, uint32_t r);
void ndr_print_wkssvc_NetWkstaGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct wkssvc_NetWkstaGetInfo *r);
void ndr_print_wkssvc_NetWkstaSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct wkssvc_NetWkstaSetInfo *r);
void ndr_print_wkssvc_NetWkstaEnumUsers(struct ndr_print *ndr, const char *name, int flags, const struct wkssvc_NetWkstaEnumUsers *r);
void ndr_print_WKSSVC_NETRWKSTAUSERGETINFO(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRWKSTAUSERGETINFO *r);
void ndr_print_WKSSVC_NETRWKSTAUSERSETINFO(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRWKSTAUSERSETINFO *r);
void ndr_print_wkssvc_NetWkstaTransportEnum(struct ndr_print *ndr, const char *name, int flags, const struct wkssvc_NetWkstaTransportEnum *r);
void ndr_print_WKSSVC_NETRWKSTATRANSPORTADD(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRWKSTATRANSPORTADD *r);
void ndr_print_WKSSVC_NETRWKSTATRANSPORTDEL(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRWKSTATRANSPORTDEL *r);
void ndr_print_WKSSVC_NETRUSEADD(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRUSEADD *r);
void ndr_print_WKSSVC_NETRUSEGETINFO(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRUSEGETINFO *r);
void ndr_print_WKSSVC_NETRUSEDEL(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRUSEDEL *r);
void ndr_print_WKSSVC_NETRUSEENUM(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRUSEENUM *r);
void ndr_print_WKSSVC_NETRMESSAGEBUFFERSEND(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRMESSAGEBUFFERSEND *r);
void ndr_print_WKSSVC_NETRWORKSTATIONSTATISTICSGET(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRWORKSTATIONSTATISTICSGET *r);
void ndr_print_WKSSVC_NETRLOGONDOMAINNAMEADD(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRLOGONDOMAINNAMEADD *r);
void ndr_print_WKSSVC_NETRLOGONDOMAINNAMEDEL(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRLOGONDOMAINNAMEDEL *r);
void ndr_print_WKSSVC_NETRJOINDOMAIN(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRJOINDOMAIN *r);
void ndr_print_WKSSVC_NETRUNJOINDOMAIN(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRUNJOINDOMAIN *r);
void ndr_print_WKSSVC_NETRRENAMEMACHINEINDOMAIN(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRRENAMEMACHINEINDOMAIN *r);
void ndr_print_WKSSVC_NETRVALIDATENAME(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRVALIDATENAME *r);
void ndr_print_WKSSVC_NETRGETJOININFORMATION(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRGETJOININFORMATION *r);
void ndr_print_WKSSVC_NETRGETJOINABLEOUS(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRGETJOINABLEOUS *r);
void ndr_print_wkssvc_NetrJoinDomain2(struct ndr_print *ndr, const char *name, int flags, const struct wkssvc_NetrJoinDomain2 *r);
void ndr_print_wkssvc_NetrUnjoinDomain2(struct ndr_print *ndr, const char *name, int flags, const struct wkssvc_NetrUnjoinDomain2 *r);
void ndr_print_wkssvc_NetrRenameMachineInDomain2(struct ndr_print *ndr, const char *name, int flags, const struct wkssvc_NetrRenameMachineInDomain2 *r);
void ndr_print_WKSSVC_NETRVALIDATENAME2(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRVALIDATENAME2 *r);
void ndr_print_WKSSVC_NETRGETJOINABLEOUS2(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRGETJOINABLEOUS2 *r);
void ndr_print_wkssvc_NetrAddAlternateComputerName(struct ndr_print *ndr, const char *name, int flags, const struct wkssvc_NetrAddAlternateComputerName *r);
void ndr_print_wkssvc_NetrRemoveAlternateComputerName(struct ndr_print *ndr, const char *name, int flags, const struct wkssvc_NetrRemoveAlternateComputerName *r);
void ndr_print_WKSSVC_NETRSETPRIMARYCOMPUTERNAME(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRSETPRIMARYCOMPUTERNAME *r);
void ndr_print_WKSSVC_NETRENUMERATECOMPUTERNAMES(struct ndr_print *ndr, const char *name, int flags, const struct WKSSVC_NETRENUMERATECOMPUTERNAMES *r);
#endif /* _HEADER_NDR_wkssvc */

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,37 @@
#include "librpc/gen_ndr/ndr_wkssvc.h"
#ifndef __SRV_WKSSVC__
#define __SRV_WKSSVC__
WERROR _wkssvc_NetWkstaGetInfo(pipes_struct *p, const char *server_name, uint32_t level, union wkssvc_NetWkstaInfo *info);
WERROR _wkssvc_NetWkstaSetInfo(pipes_struct *p, const char *server_name, uint32_t level, union wkssvc_NetWkstaInfo *info, uint32_t *parm_error);
WERROR _wkssvc_NetWkstaEnumUsers(pipes_struct *p, const char *server_name, uint32_t level, union WKS_USER_ENUM_UNION *users, uint32_t prefmaxlen, uint32_t *entriesread, uint32_t *totalentries, uint32_t *resumehandle);
WERROR _WKSSVC_NETRWKSTAUSERGETINFO(pipes_struct *p);
WERROR _WKSSVC_NETRWKSTAUSERSETINFO(pipes_struct *p);
WERROR _wkssvc_NetWkstaTransportEnum(pipes_struct *p, const char *server_name, uint32_t *level, union wkssvc_NetWkstaTransportCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle);
WERROR _WKSSVC_NETRWKSTATRANSPORTADD(pipes_struct *p);
WERROR _WKSSVC_NETRWKSTATRANSPORTDEL(pipes_struct *p);
WERROR _WKSSVC_NETRUSEADD(pipes_struct *p);
WERROR _WKSSVC_NETRUSEGETINFO(pipes_struct *p);
WERROR _WKSSVC_NETRUSEDEL(pipes_struct *p);
WERROR _WKSSVC_NETRUSEENUM(pipes_struct *p);
WERROR _WKSSVC_NETRMESSAGEBUFFERSEND(pipes_struct *p);
WERROR _WKSSVC_NETRWORKSTATIONSTATISTICSGET(pipes_struct *p);
WERROR _WKSSVC_NETRLOGONDOMAINNAMEADD(pipes_struct *p);
WERROR _WKSSVC_NETRLOGONDOMAINNAMEDEL(pipes_struct *p);
WERROR _WKSSVC_NETRJOINDOMAIN(pipes_struct *p);
WERROR _WKSSVC_NETRUNJOINDOMAIN(pipes_struct *p);
WERROR _WKSSVC_NETRRENAMEMACHINEINDOMAIN(pipes_struct *p);
WERROR _WKSSVC_NETRVALIDATENAME(pipes_struct *p);
WERROR _WKSSVC_NETRGETJOININFORMATION(pipes_struct *p);
WERROR _WKSSVC_NETRGETJOINABLEOUS(pipes_struct *p);
WERROR _wkssvc_NetrJoinDomain2(pipes_struct *p, const char *server_name, const char *domain_name, const char *account_name, const char *admin_account, struct wkssvc_PasswordBuffer *encrypted_password, uint32_t join_flags);
WERROR _wkssvc_NetrUnjoinDomain2(pipes_struct *p, const char *server_name, const char *account, struct wkssvc_PasswordBuffer *encrypted_password, uint32_t unjoin_flags);
WERROR _wkssvc_NetrRenameMachineInDomain2(pipes_struct *p, const char *server_name, const char *NewMachineName, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t RenameOptions);
WERROR _WKSSVC_NETRVALIDATENAME2(pipes_struct *p);
WERROR _WKSSVC_NETRGETJOINABLEOUS2(pipes_struct *p);
WERROR _wkssvc_NetrAddAlternateComputerName(pipes_struct *p, const char *server_name, const char *NewAlternateMachineName, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved);
WERROR _wkssvc_NetrRemoveAlternateComputerName(pipes_struct *p, const char *server_name, const char *AlternateMachineNameToRemove, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved);
WERROR _WKSSVC_NETRSETPRIMARYCOMPUTERNAME(pipes_struct *p);
WERROR _WKSSVC_NETRENUMERATECOMPUTERNAMES(pipes_struct *p);
void wkssvc_get_pipe_fns(struct api_struct **fns, int *n_fns);
NTSTATUS rpc_wkssvc_init(void);
#endif /* __SRV_WKSSVC__ */

View File

@ -0,0 +1,505 @@
/* header auto-generated by pidl */
#ifndef _HEADER_wkssvc
#define _HEADER_wkssvc
#include "librpc/gen_ndr/srvsvc.h"
struct wkssvc_NetWkstaInfo100 {
uint16_t platform_id;/* [keepref] */
const char *server_name;/* [unique,keepref,charset(UTF16)] */
const char *domain_name;/* [unique,keepref,charset(UTF16)] */
uint32_t version_major;/* [keepref] */
uint32_t version_minor;/* [keepref] */
};
struct wkssvc_NetWkstaInfo101 {
uint16_t platform_id;/* [keepref] */
const char *server_name;/* [unique,keepref,charset(UTF16)] */
const char *domain_name;/* [unique,keepref,charset(UTF16)] */
uint32_t version_major;/* [keepref] */
uint32_t version_minor;/* [keepref] */
const char *lan_root;/* [unique,keepref,charset(UTF16)] */
};
struct wkssvc_NetWkstaInfo102 {
uint16_t platform_id;/* [keepref] */
const char *server_name;/* [unique,keepref,charset(UTF16)] */
const char *domain_name;/* [unique,keepref,charset(UTF16)] */
uint32_t version_major;/* [keepref] */
uint32_t version_minor;/* [keepref] */
const char *lan_root;/* [unique,keepref,charset(UTF16)] */
uint32_t logged_on_users;/* [keepref] */
};
struct wkssvc_NetWkstaInfo502 {
uint32_t char_wait;/* [keepref] */
uint32_t collection_time;/* [keepref] */
uint32_t maximum_collection_count;/* [keepref] */
uint32_t keep_connection;/* [keepref] */
uint32_t max_commands;/* [keepref] */
uint32_t session_timeout;/* [keepref] */
uint32_t size_char_buf;/* [keepref] */
uint32_t max_threads;/* [keepref] */
uint32_t lock_quota;/* [keepref] */
uint32_t lock_increment;/* [keepref] */
uint32_t lock_maximum;/* [keepref] */
uint32_t pipe_increment;/* [keepref] */
uint32_t pipe_maximum;/* [keepref] */
uint32_t cache_file_timeout;/* [keepref] */
uint32_t dormant_file_limit;/* [keepref] */
uint32_t read_ahead_throughput;/* [keepref] */
uint32_t num_mailslot_buffers;/* [keepref] */
uint32_t num_srv_announce_buffers;/* [keepref] */
uint32_t max_illegal_dgram_events;/* [keepref] */
uint32_t dgram_event_reset_freq;/* [keepref] */
uint32_t log_election_packets;/* [keepref] */
uint32_t use_opportunistic_locking;/* [keepref] */
uint32_t use_unlock_behind;/* [keepref] */
uint32_t use_close_behind;/* [keepref] */
uint32_t buf_named_pipes;/* [keepref] */
uint32_t use_lock_read_unlock;/* [keepref] */
uint32_t utilize_nt_caching;/* [keepref] */
uint32_t use_raw_read;/* [keepref] */
uint32_t use_raw_write;/* [keepref] */
uint32_t use_write_raw_data;/* [keepref] */
uint32_t use_encryption;/* [keepref] */
uint32_t buf_files_deny_write;/* [keepref] */
uint32_t buf_read_only_files;/* [keepref] */
uint32_t force_core_create_mode;/* [keepref] */
uint32_t use_512_byte_max_transfer;/* [keepref] */
};
struct wkssvc_NetWkstaInfo1010 {
uint32_t char_wait;/* [keepref] */
};
struct wkssvc_NetWkstaInfo1011 {
uint32_t collection_time;/* [keepref] */
};
struct wkssvc_NetWkstaInfo1012 {
uint32_t maximum_collection_count;/* [keepref] */
};
struct wkssvc_NetWkstaInfo1013 {
uint32_t keep_connection;/* [keepref] */
};
struct wkssvc_NetWkstaInfo1018 {
uint32_t session_timeout;/* [keepref] */
};
struct wkssvc_NetWkstaInfo1023 {
uint32_t size_char_buf;/* [keepref] */
};
struct wkssvc_NetWkstaInfo1027 {
uint32_t errorlog_sz;/* [keepref] */
};
struct wkssvc_NetWkstaInfo1033 {
uint32_t max_threads;/* [keepref] */
};
union wkssvc_NetWkstaInfo {
struct wkssvc_NetWkstaInfo100 *info100;/* [unique,keepref,case(100)] */
struct wkssvc_NetWkstaInfo101 *info101;/* [unique,keepref,case(101)] */
struct wkssvc_NetWkstaInfo102 *info102;/* [unique,keepref,case(102)] */
struct wkssvc_NetWkstaInfo502 *info502;/* [unique,keepref,case(502)] */
struct wkssvc_NetWkstaInfo1010 *info1010;/* [unique,keepref,case(1010)] */
struct wkssvc_NetWkstaInfo1011 *info1011;/* [unique,keepref,case(1011)] */
struct wkssvc_NetWkstaInfo1012 *info1012;/* [unique,keepref,case(1012)] */
struct wkssvc_NetWkstaInfo1013 *info1013;/* [unique,keepref,case(1013)] */
struct wkssvc_NetWkstaInfo1018 *info1018;/* [unique,keepref,case(1018)] */
struct wkssvc_NetWkstaInfo1023 *info1023;/* [unique,keepref,case(1023)] */
struct wkssvc_NetWkstaInfo1027 *info1027;/* [unique,keepref,case(1027)] */
struct wkssvc_NetWkstaInfo1033 *info1033;/* [unique,keepref,case(1033)] */
};
struct USER_INFO_0 {
const char *user;/* [unique,keepref,charset(UTF16)] */
};
struct USER_INFO_0_CONTAINER {
uint32_t entries_read;/* [keepref] */
struct USER_INFO_0 *user0;/* [unique,keepref,size_is(entries_read)] */
};
struct USER_INFO_1 {
const char *user_name;/* [unique,keepref,charset(UTF16)] */
const char *logon_domain;/* [unique,keepref,charset(UTF16)] */
const char *other_domains;/* [unique,keepref,charset(UTF16)] */
const char *logon_server;/* [unique,keepref,charset(UTF16)] */
};
struct USER_INFO_1_CONTAINER {
uint32_t entries_read;/* [keepref] */
struct USER_INFO_1 *user1;/* [unique,keepref,size_is(entries_read)] */
};
union WKS_USER_ENUM_UNION {
struct USER_INFO_0_CONTAINER *user0;/* [unique,keepref,case(0)] */
struct USER_INFO_1_CONTAINER *user1;/* [unique,keepref,case] */
}/* [switch_type(uint32)] */;
struct wkssvc_NetWkstaTransportInfo0 {
uint32_t quality_of_service;/* [keepref] */
uint32_t vc_count;/* [keepref] */
const char *name;/* [unique,keepref,charset(UTF16)] */
const char *address;/* [unique,keepref,charset(UTF16)] */
uint32_t wan_link;/* [keepref] */
};
struct wkssvc_NetWkstaTransportCtr0 {
uint32_t count;/* [keepref] */
struct wkssvc_NetWkstaTransportInfo0 *array;/* [unique,keepref,size_is(count)] */
};
union wkssvc_NetWkstaTransportCtr {
struct wkssvc_NetWkstaTransportCtr0 *ctr0;/* [unique,keepref,case(0)] */
};
struct wkssvc_PasswordBuffer {
uint8_t data[524];/* [keepref] */
};
/* bitmap wkssvc_joinflags */
#define WKSSVC_JOIN_FLAGS_DEFER_SPN ( 0x00000100 )
#define WKSSVC_JOIN_FLAGS_MACHINE_PWD_PASSED ( 0x00000080 )
#define WKSSVC_JOIN_FLAGS_JOIN_UNSECURE ( 0x00000040 )
#define WKSSVC_JOIN_FLAGS_DOMAIN_JOIN_IF_JOINED ( 0x00000020 )
#define WKSSVC_JOIN_FLAGS_WIN9X_UPGRADE ( 0x00000010 )
#define WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE ( 0x00000004 )
#define WKSSVC_JOIN_FLAGS_ACCOUNT_CREATE ( 0x00000002 )
#define WKSSVC_JOIN_FLAGS_JOIN_TYPE ( 0x00000001 )
/* bitmap wkssvc_renameflags */
#define WKSSVC_JOIN_FLAGS_ACCOUNT_CREATE ( 0x00000002 )
struct wkssvc_NetWkstaGetInfo {
struct {
const char *server_name;/* [unique,keepref,charset(UTF16)] */
uint32_t level;/* [keepref] */
} in;
struct {
union wkssvc_NetWkstaInfo *info;/* [keepref,ref,switch_is(level)] */
WERROR result;
} out;
};
struct wkssvc_NetWkstaSetInfo {
struct {
const char *server_name;/* [unique,keepref,charset(UTF16)] */
uint32_t level;/* [keepref] */
union wkssvc_NetWkstaInfo *info;/* [keepref,ref,switch_is(level)] */
uint32_t *parm_error;/* [keepref,ref] */
} in;
struct {
uint32_t *parm_error;/* [keepref,ref] */
WERROR result;
} out;
};
struct wkssvc_NetWkstaEnumUsers {
struct {
const char *server_name;/* [unique,keepref,charset(UTF16)] */
uint32_t level;/* [keepref] */
union WKS_USER_ENUM_UNION *users;/* [keepref,ref] */
uint32_t prefmaxlen;/* [keepref] */
uint32_t *resumehandle;/* [keepref,ref] */
} in;
struct {
union WKS_USER_ENUM_UNION *users;/* [keepref,ref] */
uint32_t *entriesread;/* [unique,keepref] */
uint32_t *totalentries;/* [unique,keepref] */
uint32_t *resumehandle;/* [keepref,ref] */
WERROR result;
} out;
};
struct WKSSVC_NETRWKSTAUSERGETINFO {
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRWKSTAUSERSETINFO {
struct {
WERROR result;
} out;
};
struct wkssvc_NetWkstaTransportEnum {
struct {
const char *server_name;/* [unique,keepref,charset(UTF16)] */
uint32_t *level;/* [unique,keepref] */
union wkssvc_NetWkstaTransportCtr *ctr;/* [keepref,ref,switch_is(level)] */
uint32_t max_buffer;/* [keepref] */
uint32_t *resume_handle;/* [unique,keepref] */
} in;
struct {
uint32_t *level;/* [unique,keepref] */
union wkssvc_NetWkstaTransportCtr *ctr;/* [keepref,ref,switch_is(level)] */
uint32_t *totalentries;/* [unique,keepref] */
uint32_t *resume_handle;/* [unique,keepref] */
WERROR result;
} out;
};
struct WKSSVC_NETRWKSTATRANSPORTADD {
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRWKSTATRANSPORTDEL {
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRUSEADD {
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRUSEGETINFO {
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRUSEDEL {
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRUSEENUM {
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRMESSAGEBUFFERSEND {
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRWORKSTATIONSTATISTICSGET {
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRLOGONDOMAINNAMEADD {
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRLOGONDOMAINNAMEDEL {
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRJOINDOMAIN {
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRUNJOINDOMAIN {
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRRENAMEMACHINEINDOMAIN {
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRVALIDATENAME {
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRGETJOININFORMATION {
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRGETJOINABLEOUS {
struct {
WERROR result;
} out;
};
struct wkssvc_NetrJoinDomain2 {
struct {
const char *server_name;/* [unique,keepref,charset(UTF16)] */
const char *domain_name;/* [keepref,ref,charset(UTF16)] */
const char *account_name;/* [unique,keepref,charset(UTF16)] */
const char *admin_account;/* [unique,keepref,charset(UTF16)] */
struct wkssvc_PasswordBuffer *encrypted_password;/* [unique,keepref] */
uint32_t join_flags;/* [keepref] */
} in;
struct {
WERROR result;
} out;
};
struct wkssvc_NetrUnjoinDomain2 {
struct {
const char *server_name;/* [unique,keepref,charset(UTF16)] */
const char *account;/* [unique,keepref,charset(UTF16)] */
struct wkssvc_PasswordBuffer *encrypted_password;/* [unique,keepref] */
uint32_t unjoin_flags;/* [keepref] */
} in;
struct {
WERROR result;
} out;
};
struct wkssvc_NetrRenameMachineInDomain2 {
struct {
const char *server_name;/* [unique,keepref,charset(UTF16)] */
const char *NewMachineName;/* [unique,keepref,charset(UTF16)] */
const char *Account;/* [unique,keepref,charset(UTF16)] */
struct wkssvc_PasswordBuffer *EncryptedPassword;/* [unique,keepref] */
uint32_t RenameOptions;/* [keepref] */
} in;
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRVALIDATENAME2 {
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRGETJOINABLEOUS2 {
struct {
WERROR result;
} out;
};
struct wkssvc_NetrAddAlternateComputerName {
struct {
const char *server_name;/* [unique,keepref,charset(UTF16)] */
const char *NewAlternateMachineName;/* [unique,keepref,charset(UTF16)] */
const char *Account;/* [unique,keepref,charset(UTF16)] */
struct wkssvc_PasswordBuffer *EncryptedPassword;/* [unique,keepref] */
uint32_t Reserved;/* [keepref] */
} in;
struct {
WERROR result;
} out;
};
struct wkssvc_NetrRemoveAlternateComputerName {
struct {
const char *server_name;/* [unique,keepref,charset(UTF16)] */
const char *AlternateMachineNameToRemove;/* [unique,keepref,charset(UTF16)] */
const char *Account;/* [unique,keepref,charset(UTF16)] */
struct wkssvc_PasswordBuffer *EncryptedPassword;/* [unique,keepref] */
uint32_t Reserved;/* [keepref] */
} in;
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRSETPRIMARYCOMPUTERNAME {
struct {
WERROR result;
} out;
};
struct WKSSVC_NETRENUMERATECOMPUTERNAMES {
struct {
WERROR result;
} out;
};
#endif /* _HEADER_wkssvc */

View File

@ -11,7 +11,6 @@
keepref keepref
] interface wkssvc ] interface wkssvc
{ {
declare [v1_enum] enum srvsvc_PlatformId;
#define BOOL uint32 #define BOOL uint32
@ -19,7 +18,7 @@
/* Function: 0x00 */ /* Function: 0x00 */
typedef struct { typedef struct {
srvsvc_PlatformId platform_id; uint16 platform_id;
[string,charset(UTF16)] uint16 *server_name; [string,charset(UTF16)] uint16 *server_name;
[string,charset(UTF16)] uint16 *domain_name; [string,charset(UTF16)] uint16 *domain_name;
uint32 version_major; uint32 version_major;
@ -27,7 +26,7 @@
} wkssvc_NetWkstaInfo100; } wkssvc_NetWkstaInfo100;
typedef struct { typedef struct {
srvsvc_PlatformId platform_id; uint16 platform_id;
[string,charset(UTF16)] uint16 *server_name; [string,charset(UTF16)] uint16 *server_name;
[string,charset(UTF16)] uint16 *domain_name; [string,charset(UTF16)] uint16 *domain_name;
uint32 version_major; uint32 version_major;
@ -36,7 +35,7 @@
} wkssvc_NetWkstaInfo101; } wkssvc_NetWkstaInfo101;
typedef struct { typedef struct {
srvsvc_PlatformId platform_id; uint16 platform_id;
[string,charset(UTF16)] uint16 *server_name; [string,charset(UTF16)] uint16 *server_name;
[string,charset(UTF16)] uint16 *domain_name; [string,charset(UTF16)] uint16 *domain_name;
uint32 version_major; uint32 version_major;
@ -218,10 +217,10 @@
WERROR wkssvc_NetWkstaTransportEnum ( WERROR wkssvc_NetWkstaTransportEnum (
[in] [string,charset(UTF16)] uint16 *server_name, [in] [string,charset(UTF16)] uint16 *server_name,
[in,out] uint32 level, [in,out] uint32 *level,
[in,out,switch_is(level),ref] wkssvc_NetWkstaTransportCtr *ctr, [in,out,switch_is(level),ref] wkssvc_NetWkstaTransportCtr *ctr,
[in] uint32 max_buffer, [in] uint32 max_buffer,
[out] uint32 totalentries, [out] uint32 *totalentries,
[in,out] uint32 *resume_handle [in,out] uint32 *resume_handle
); );