1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

netapi: add skeleton for NetUserModalsGet and NetUserModalsSet.

Guenther
(This used to be commit 5648145bec)
This commit is contained in:
Günther Deschner
2008-07-31 16:43:27 +02:00
parent 9f0de21071
commit 974250cd03
3 changed files with 140 additions and 0 deletions

View File

@ -725,6 +725,96 @@ NET_API_STATUS NetUserSetInfo(const char * server_name /* [in] */,
return r.out.result; return r.out.result;
} }
/****************************************************************
NetUserModalsGet
****************************************************************/
NET_API_STATUS NetUserModalsGet(const char * server_name /* [in] */,
uint32_t level /* [in] */,
uint8_t **buffer /* [out] [ref] */)
{
struct NetUserModalsGet r;
struct libnetapi_ctx *ctx = NULL;
NET_API_STATUS status;
WERROR werr;
status = libnetapi_getctx(&ctx);
if (status != 0) {
return status;
}
/* In parameters */
r.in.server_name = server_name;
r.in.level = level;
/* Out parameters */
r.out.buffer = buffer;
if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(NetUserModalsGet, &r);
}
if (LIBNETAPI_LOCAL_SERVER(server_name)) {
werr = NetUserModalsGet_l(ctx, &r);
} else {
werr = NetUserModalsGet_r(ctx, &r);
}
r.out.result = W_ERROR_V(werr);
if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(NetUserModalsGet, &r);
}
return r.out.result;
}
/****************************************************************
NetUserModalsSet
****************************************************************/
NET_API_STATUS NetUserModalsSet(const char * server_name /* [in] */,
uint32_t level /* [in] */,
uint8_t *buffer /* [in] [ref] */,
uint32_t *parm_err /* [out] [ref] */)
{
struct NetUserModalsSet r;
struct libnetapi_ctx *ctx = NULL;
NET_API_STATUS status;
WERROR werr;
status = libnetapi_getctx(&ctx);
if (status != 0) {
return status;
}
/* In parameters */
r.in.server_name = server_name;
r.in.level = level;
r.in.buffer = buffer;
/* Out parameters */
r.out.parm_err = parm_err;
if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(NetUserModalsSet, &r);
}
if (LIBNETAPI_LOCAL_SERVER(server_name)) {
werr = NetUserModalsSet_l(ctx, &r);
} else {
werr = NetUserModalsSet_r(ctx, &r);
}
r.out.result = W_ERROR_V(werr);
if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(NetUserModalsSet, &r);
}
return r.out.result;
}
/**************************************************************** /****************************************************************
NetQueryDisplayInformation NetQueryDisplayInformation
****************************************************************/ ****************************************************************/

View File

@ -125,6 +125,21 @@ WERROR NetUserSetInfo_r(struct libnetapi_ctx *ctx,
struct NetUserSetInfo *r); struct NetUserSetInfo *r);
WERROR NetUserSetInfo_l(struct libnetapi_ctx *ctx, WERROR NetUserSetInfo_l(struct libnetapi_ctx *ctx,
struct NetUserSetInfo *r); struct NetUserSetInfo *r);
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);
NET_API_STATUS NetQueryDisplayInformation(const char * server_name /* [in] [unique] */, NET_API_STATUS NetQueryDisplayInformation(const char * server_name /* [in] [unique] */,
uint32_t level /* [in] */, uint32_t level /* [in] */,
uint32_t idx /* [in] */, uint32_t idx /* [in] */,

View File

@ -1408,3 +1408,38 @@ WERROR NetUserSetInfo_l(struct libnetapi_ctx *ctx,
return WERR_NOT_SUPPORTED; return WERR_NOT_SUPPORTED;
} }
/****************************************************************
****************************************************************/
WERROR NetUserModalsGet_r(struct libnetapi_ctx *ctx,
struct NetUserModalsGet *r)
{
return WERR_NOT_SUPPORTED;
}
/****************************************************************
****************************************************************/
WERROR NetUserModalsGet_l(struct libnetapi_ctx *ctx,
struct NetUserModalsGet *r)
{
return WERR_NOT_SUPPORTED;
}
/****************************************************************
****************************************************************/
WERROR NetUserModalsSet_r(struct libnetapi_ctx *ctx,
struct NetUserModalsSet *r)
{
return WERR_NOT_SUPPORTED;
}
/****************************************************************
****************************************************************/
WERROR NetUserModalsSet_l(struct libnetapi_ctx *ctx,
struct NetUserModalsSet *r)
{
return WERR_NOT_SUPPORTED;
}