NTSTATUS rpccli_samr_QueryDomainInfo(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *domain_handle /* [in] [ref] */,
- uint16_t level /* [in] */,
+ enum samr_DomainInfoClass level /* [in] */,
union samr_DomainInfo **info /* [out] [ref,switch_is(level)] */)
{
struct samr_QueryDomainInfo r;
NTSTATUS rpccli_samr_SetDomainInfo(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *domain_handle /* [in] [ref] */,
- uint16_t level /* [in] */,
+ enum samr_DomainInfoClass level /* [in] */,
union samr_DomainInfo *info /* [in] [ref,switch_is(level)] */)
{
struct samr_SetDomainInfo r;
NTSTATUS rpccli_samr_QueryUserInfo(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *user_handle /* [in] [ref] */,
- uint16_t level /* [in] */,
+ enum samr_UserInfoLevel level /* [in] */,
union samr_UserInfo **info /* [out] [ref,switch_is(level)] */)
{
struct samr_QueryUserInfo r;
NTSTATUS rpccli_samr_SetUserInfo(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *user_handle /* [in] [ref] */,
- uint16_t level /* [in] */,
+ enum samr_UserInfoLevel level /* [in] */,
union samr_UserInfo *info /* [in] [ref,switch_is(level)] */)
{
struct samr_SetUserInfo r;
NTSTATUS rpccli_samr_QueryDomainInfo2(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *domain_handle /* [in] [ref] */,
- uint16_t level /* [in] */,
+ enum samr_DomainInfoClass level /* [in] */,
union samr_DomainInfo **info /* [out] [ref,switch_is(level)] */)
{
struct samr_QueryDomainInfo2 r;
NTSTATUS rpccli_samr_QueryUserInfo2(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *user_handle /* [in] [ref] */,
- uint16_t level /* [in] */,
+ enum samr_UserInfoLevel level /* [in] */,
union samr_UserInfo **info /* [out] [ref,switch_is(level)] */)
{
struct samr_QueryUserInfo2 r;
NTSTATUS rpccli_samr_SetUserInfo2(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *user_handle /* [in] [ref] */,
- uint16_t level /* [in] */,
+ enum samr_UserInfoLevel level /* [in] */,
union samr_UserInfo *info /* [in] [ref,switch_is(level)] */)
{
struct samr_SetUserInfo2 r;
NTSTATUS rpccli_samr_QueryDomainInfo(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *domain_handle /* [in] [ref] */,
- uint16_t level /* [in] */,
+ enum samr_DomainInfoClass level /* [in] */,
union samr_DomainInfo **info /* [out] [ref,switch_is(level)] */);
NTSTATUS rpccli_samr_SetDomainInfo(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *domain_handle /* [in] [ref] */,
- uint16_t level /* [in] */,
+ enum samr_DomainInfoClass level /* [in] */,
union samr_DomainInfo *info /* [in] [ref,switch_is(level)] */);
NTSTATUS rpccli_samr_CreateDomainGroup(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
NTSTATUS rpccli_samr_QueryUserInfo(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *user_handle /* [in] [ref] */,
- uint16_t level /* [in] */,
+ enum samr_UserInfoLevel level /* [in] */,
union samr_UserInfo **info /* [out] [ref,switch_is(level)] */);
NTSTATUS rpccli_samr_SetUserInfo(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *user_handle /* [in] [ref] */,
- uint16_t level /* [in] */,
+ enum samr_UserInfoLevel level /* [in] */,
union samr_UserInfo *info /* [in] [ref,switch_is(level)] */);
NTSTATUS rpccli_samr_ChangePasswordUser(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
NTSTATUS rpccli_samr_QueryDomainInfo2(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *domain_handle /* [in] [ref] */,
- uint16_t level /* [in] */,
+ enum samr_DomainInfoClass level /* [in] */,
union samr_DomainInfo **info /* [out] [ref,switch_is(level)] */);
NTSTATUS rpccli_samr_QueryUserInfo2(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *user_handle /* [in] [ref] */,
- uint16_t level /* [in] */,
+ enum samr_UserInfoLevel level /* [in] */,
union samr_UserInfo **info /* [out] [ref,switch_is(level)] */);
NTSTATUS rpccli_samr_QueryDisplayInfo2(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
NTSTATUS rpccli_samr_SetUserInfo2(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *user_handle /* [in] [ref] */,
- uint16_t level /* [in] */,
+ enum samr_UserInfoLevel level /* [in] */,
union samr_UserInfo *info /* [in] [ref,switch_is(level)] */);
NTSTATUS rpccli_samr_SetBootKeyInformation(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
ndr->depth--;
}
+static enum ndr_err_code ndr_push_samr_DomainInfoClass(struct ndr_push *ndr, int ndr_flags, enum samr_DomainInfoClass r)
+{
+ NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r));
+ return NDR_ERR_SUCCESS;
+}
+
+static enum ndr_err_code ndr_pull_samr_DomainInfoClass(struct ndr_pull *ndr, int ndr_flags, enum samr_DomainInfoClass *r)
+{
+ uint16_t v;
+ NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &v));
+ *r = v;
+ return NDR_ERR_SUCCESS;
+}
+
+_PUBLIC_ void ndr_print_samr_DomainInfoClass(struct ndr_print *ndr, const char *name, enum samr_DomainInfoClass r)
+{
+ const char *val = NULL;
+
+ switch (r) {
+ case DomainPasswordInformation: val = "DomainPasswordInformation"; break;
+ case DomainGeneralInformation: val = "DomainGeneralInformation"; break;
+ case DomainLogoffInformation: val = "DomainLogoffInformation"; break;
+ case DomainOemInformation: val = "DomainOemInformation"; break;
+ case DomainNameInformation: val = "DomainNameInformation"; break;
+ case DomainReplicationInformation: val = "DomainReplicationInformation"; break;
+ case DomainServerRoleInformation: val = "DomainServerRoleInformation"; break;
+ case DomainModifiedInformation: val = "DomainModifiedInformation"; break;
+ case DomainStateInformation: val = "DomainStateInformation"; break;
+ case DomainUasInformation: val = "DomainUasInformation"; break;
+ case DomainGeneralInformation2: val = "DomainGeneralInformation2"; break;
+ case DomainLockoutInformation: val = "DomainLockoutInformation"; break;
+ case DomainModifiedInformation2: val = "DomainModifiedInformation2"; break;
+ }
+ ndr_print_enum(ndr, name, "ENUM", val, r);
+}
+
static enum ndr_err_code ndr_push_samr_Role(struct ndr_push *ndr, int ndr_flags, enum samr_Role r)
{
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
}
}
+static enum ndr_err_code ndr_push_samr_UserInfoLevel(struct ndr_push *ndr, int ndr_flags, enum samr_UserInfoLevel r)
+{
+ NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r));
+ return NDR_ERR_SUCCESS;
+}
+
+static enum ndr_err_code ndr_pull_samr_UserInfoLevel(struct ndr_pull *ndr, int ndr_flags, enum samr_UserInfoLevel *r)
+{
+ uint16_t v;
+ NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &v));
+ *r = v;
+ return NDR_ERR_SUCCESS;
+}
+
+_PUBLIC_ void ndr_print_samr_UserInfoLevel(struct ndr_print *ndr, const char *name, enum samr_UserInfoLevel r)
+{
+ const char *val = NULL;
+
+ switch (r) {
+ case UserGeneralInformation: val = "UserGeneralInformation"; break;
+ case UserPreferencesInformation: val = "UserPreferencesInformation"; break;
+ case UserLogonInformation: val = "UserLogonInformation"; break;
+ case UserLogonHoursInformation: val = "UserLogonHoursInformation"; break;
+ case UserAccountInformation: val = "UserAccountInformation"; break;
+ case UserNameInformation: val = "UserNameInformation"; break;
+ case UserAccountNameInformation: val = "UserAccountNameInformation"; break;
+ case UserFullNameInformation: val = "UserFullNameInformation"; break;
+ case UserPrimaryGroupInformation: val = "UserPrimaryGroupInformation"; break;
+ case UserHomeInformation: val = "UserHomeInformation"; break;
+ case UserScriptInformation: val = "UserScriptInformation"; break;
+ case UserProfileInformation: val = "UserProfileInformation"; break;
+ case UserAdminCommentInformation: val = "UserAdminCommentInformation"; break;
+ case UserWorkStationsInformation: val = "UserWorkStationsInformation"; break;
+ case UserControlInformation: val = "UserControlInformation"; break;
+ case UserExpiresInformation: val = "UserExpiresInformation"; break;
+ case UserInternal1Information: val = "UserInternal1Information"; break;
+ case UserParametersInformation: val = "UserParametersInformation"; break;
+ case UserAllInformation: val = "UserAllInformation"; break;
+ case UserInternal4Information: val = "UserInternal4Information"; break;
+ case UserInternal5Information: val = "UserInternal5Information"; break;
+ case UserInternal4InformationNew: val = "UserInternal4InformationNew"; break;
+ case UserInternal5InformationNew: val = "UserInternal5InformationNew"; break;
+ }
+ ndr_print_enum(ndr, name, "ENUM", val, r);
+}
+
static enum ndr_err_code ndr_push_samr_UserInfo1(struct ndr_push *ndr, int ndr_flags, const struct samr_UserInfo1 *r)
{
if (ndr_flags & NDR_SCALARS) {
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
}
NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.domain_handle));
- NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
+ NDR_CHECK(ndr_push_samr_DomainInfoClass(ndr, NDR_SCALARS, r->in.level));
}
if (flags & NDR_OUT) {
if (r->out.info == NULL) {
NDR_PULL_SET_MEM_CTX(ndr, r->in.domain_handle, LIBNDR_FLAG_REF_ALLOC);
NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.domain_handle));
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domain_handle_0, LIBNDR_FLAG_REF_ALLOC);
- NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
+ NDR_CHECK(ndr_pull_samr_DomainInfoClass(ndr, NDR_SCALARS, &r->in.level));
NDR_PULL_ALLOC(ndr, r->out.info);
ZERO_STRUCTP(r->out.info);
}
ndr->depth++;
ndr_print_policy_handle(ndr, "domain_handle", r->in.domain_handle);
ndr->depth--;
- ndr_print_uint16(ndr, "level", r->in.level);
+ ndr_print_samr_DomainInfoClass(ndr, "level", r->in.level);
ndr->depth--;
}
if (flags & NDR_OUT) {
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
}
NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.domain_handle));
- NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
+ NDR_CHECK(ndr_push_samr_DomainInfoClass(ndr, NDR_SCALARS, r->in.level));
if (r->in.info == NULL) {
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
}
NDR_PULL_SET_MEM_CTX(ndr, r->in.domain_handle, LIBNDR_FLAG_REF_ALLOC);
NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.domain_handle));
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domain_handle_0, LIBNDR_FLAG_REF_ALLOC);
- NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
+ NDR_CHECK(ndr_pull_samr_DomainInfoClass(ndr, NDR_SCALARS, &r->in.level));
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
NDR_PULL_ALLOC(ndr, r->in.info);
}
ndr->depth++;
ndr_print_policy_handle(ndr, "domain_handle", r->in.domain_handle);
ndr->depth--;
- ndr_print_uint16(ndr, "level", r->in.level);
+ ndr_print_samr_DomainInfoClass(ndr, "level", r->in.level);
ndr_print_ptr(ndr, "info", r->in.info);
ndr->depth++;
ndr_print_set_switch_value(ndr, r->in.info, r->in.level);
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
}
NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.user_handle));
- NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
+ NDR_CHECK(ndr_push_samr_UserInfoLevel(ndr, NDR_SCALARS, r->in.level));
}
if (flags & NDR_OUT) {
if (r->out.info == NULL) {
NDR_PULL_SET_MEM_CTX(ndr, r->in.user_handle, LIBNDR_FLAG_REF_ALLOC);
NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.user_handle));
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_user_handle_0, LIBNDR_FLAG_REF_ALLOC);
- NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
+ NDR_CHECK(ndr_pull_samr_UserInfoLevel(ndr, NDR_SCALARS, &r->in.level));
NDR_PULL_ALLOC(ndr, r->out.info);
ZERO_STRUCTP(r->out.info);
}
ndr->depth++;
ndr_print_policy_handle(ndr, "user_handle", r->in.user_handle);
ndr->depth--;
- ndr_print_uint16(ndr, "level", r->in.level);
+ ndr_print_samr_UserInfoLevel(ndr, "level", r->in.level);
ndr->depth--;
}
if (flags & NDR_OUT) {
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
}
NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.user_handle));
- NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
+ NDR_CHECK(ndr_push_samr_UserInfoLevel(ndr, NDR_SCALARS, r->in.level));
if (r->in.info == NULL) {
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
}
NDR_PULL_SET_MEM_CTX(ndr, r->in.user_handle, LIBNDR_FLAG_REF_ALLOC);
NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.user_handle));
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_user_handle_0, LIBNDR_FLAG_REF_ALLOC);
- NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
+ NDR_CHECK(ndr_pull_samr_UserInfoLevel(ndr, NDR_SCALARS, &r->in.level));
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
NDR_PULL_ALLOC(ndr, r->in.info);
}
ndr->depth++;
ndr_print_policy_handle(ndr, "user_handle", r->in.user_handle);
ndr->depth--;
- ndr_print_uint16(ndr, "level", r->in.level);
+ ndr_print_samr_UserInfoLevel(ndr, "level", r->in.level);
ndr_print_ptr(ndr, "info", r->in.info);
ndr->depth++;
ndr_print_set_switch_value(ndr, r->in.info, r->in.level);
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
}
NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.domain_handle));
- NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
+ NDR_CHECK(ndr_push_samr_DomainInfoClass(ndr, NDR_SCALARS, r->in.level));
}
if (flags & NDR_OUT) {
if (r->out.info == NULL) {
NDR_PULL_SET_MEM_CTX(ndr, r->in.domain_handle, LIBNDR_FLAG_REF_ALLOC);
NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.domain_handle));
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domain_handle_0, LIBNDR_FLAG_REF_ALLOC);
- NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
+ NDR_CHECK(ndr_pull_samr_DomainInfoClass(ndr, NDR_SCALARS, &r->in.level));
NDR_PULL_ALLOC(ndr, r->out.info);
ZERO_STRUCTP(r->out.info);
}
ndr->depth++;
ndr_print_policy_handle(ndr, "domain_handle", r->in.domain_handle);
ndr->depth--;
- ndr_print_uint16(ndr, "level", r->in.level);
+ ndr_print_samr_DomainInfoClass(ndr, "level", r->in.level);
ndr->depth--;
}
if (flags & NDR_OUT) {
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
}
NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.user_handle));
- NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
+ NDR_CHECK(ndr_push_samr_UserInfoLevel(ndr, NDR_SCALARS, r->in.level));
}
if (flags & NDR_OUT) {
if (r->out.info == NULL) {
NDR_PULL_SET_MEM_CTX(ndr, r->in.user_handle, LIBNDR_FLAG_REF_ALLOC);
NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.user_handle));
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_user_handle_0, LIBNDR_FLAG_REF_ALLOC);
- NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
+ NDR_CHECK(ndr_pull_samr_UserInfoLevel(ndr, NDR_SCALARS, &r->in.level));
NDR_PULL_ALLOC(ndr, r->out.info);
ZERO_STRUCTP(r->out.info);
}
ndr->depth++;
ndr_print_policy_handle(ndr, "user_handle", r->in.user_handle);
ndr->depth--;
- ndr_print_uint16(ndr, "level", r->in.level);
+ ndr_print_samr_UserInfoLevel(ndr, "level", r->in.level);
ndr->depth--;
}
if (flags & NDR_OUT) {
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
}
NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.user_handle));
- NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
+ NDR_CHECK(ndr_push_samr_UserInfoLevel(ndr, NDR_SCALARS, r->in.level));
if (r->in.info == NULL) {
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
}
NDR_PULL_SET_MEM_CTX(ndr, r->in.user_handle, LIBNDR_FLAG_REF_ALLOC);
NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.user_handle));
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_user_handle_0, LIBNDR_FLAG_REF_ALLOC);
- NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
+ NDR_CHECK(ndr_pull_samr_UserInfoLevel(ndr, NDR_SCALARS, &r->in.level));
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
NDR_PULL_ALLOC(ndr, r->in.info);
}
ndr->depth++;
ndr_print_policy_handle(ndr, "user_handle", r->in.user_handle);
ndr->depth--;
- ndr_print_uint16(ndr, "level", r->in.level);
+ ndr_print_samr_UserInfoLevel(ndr, "level", r->in.level);
ndr_print_ptr(ndr, "info", r->in.info);
ndr->depth++;
ndr_print_set_switch_value(ndr, r->in.info, r->in.level);
struct samr_SamEntry *entries;/* [unique,size_is(count)] */
};
+enum samr_DomainInfoClass
+#ifndef USE_UINT_ENUMS
+ {
+ DomainPasswordInformation=1,
+ DomainGeneralInformation=2,
+ DomainLogoffInformation=3,
+ DomainOemInformation=4,
+ DomainNameInformation=5,
+ DomainReplicationInformation=6,
+ DomainServerRoleInformation=7,
+ DomainModifiedInformation=8,
+ DomainStateInformation=9,
+ DomainUasInformation=10,
+ DomainGeneralInformation2=11,
+ DomainLockoutInformation=12,
+ DomainModifiedInformation2=13
+}
+#else
+ { __donnot_use_enum_samr_DomainInfoClass=0x7FFFFFFF}
+#define DomainPasswordInformation ( 1 )
+#define DomainGeneralInformation ( 2 )
+#define DomainLogoffInformation ( 3 )
+#define DomainOemInformation ( 4 )
+#define DomainNameInformation ( 5 )
+#define DomainReplicationInformation ( 6 )
+#define DomainServerRoleInformation ( 7 )
+#define DomainModifiedInformation ( 8 )
+#define DomainStateInformation ( 9 )
+#define DomainUasInformation ( 10 )
+#define DomainGeneralInformation2 ( 11 )
+#define DomainLockoutInformation ( 12 )
+#define DomainModifiedInformation2 ( 13 )
+#endif
+;
+
enum samr_Role
#ifndef USE_UINT_ENUMS
{
struct lsa_String description;/* [case(ALIASINFODESCRIPTION)] */
}/* [switch_type(samr_AliasInfoEnum)] */;
+enum samr_UserInfoLevel
+#ifndef USE_UINT_ENUMS
+ {
+ UserGeneralInformation=1,
+ UserPreferencesInformation=2,
+ UserLogonInformation=3,
+ UserLogonHoursInformation=4,
+ UserAccountInformation=5,
+ UserNameInformation=6,
+ UserAccountNameInformation=7,
+ UserFullNameInformation=8,
+ UserPrimaryGroupInformation=9,
+ UserHomeInformation=10,
+ UserScriptInformation=11,
+ UserProfileInformation=12,
+ UserAdminCommentInformation=13,
+ UserWorkStationsInformation=14,
+ UserControlInformation=16,
+ UserExpiresInformation=17,
+ UserInternal1Information=18,
+ UserParametersInformation=20,
+ UserAllInformation=21,
+ UserInternal4Information=23,
+ UserInternal5Information=24,
+ UserInternal4InformationNew=25,
+ UserInternal5InformationNew=26
+}
+#else
+ { __donnot_use_enum_samr_UserInfoLevel=0x7FFFFFFF}
+#define UserGeneralInformation ( 1 )
+#define UserPreferencesInformation ( 2 )
+#define UserLogonInformation ( 3 )
+#define UserLogonHoursInformation ( 4 )
+#define UserAccountInformation ( 5 )
+#define UserNameInformation ( 6 )
+#define UserAccountNameInformation ( 7 )
+#define UserFullNameInformation ( 8 )
+#define UserPrimaryGroupInformation ( 9 )
+#define UserHomeInformation ( 10 )
+#define UserScriptInformation ( 11 )
+#define UserProfileInformation ( 12 )
+#define UserAdminCommentInformation ( 13 )
+#define UserWorkStationsInformation ( 14 )
+#define UserControlInformation ( 16 )
+#define UserExpiresInformation ( 17 )
+#define UserInternal1Information ( 18 )
+#define UserParametersInformation ( 20 )
+#define UserAllInformation ( 21 )
+#define UserInternal4Information ( 23 )
+#define UserInternal5Information ( 24 )
+#define UserInternal4InformationNew ( 25 )
+#define UserInternal5InformationNew ( 26 )
+#endif
+;
+
struct samr_UserInfo1 {
struct lsa_String account_name;
struct lsa_String full_name;
struct samr_QueryDomainInfo {
struct {
struct policy_handle *domain_handle;/* [ref] */
- uint16_t level;
+ enum samr_DomainInfoClass level;
} in;
struct {
struct samr_SetDomainInfo {
struct {
struct policy_handle *domain_handle;/* [ref] */
- uint16_t level;
+ enum samr_DomainInfoClass level;
union samr_DomainInfo *info;/* [ref,switch_is(level)] */
} in;
struct samr_QueryUserInfo {
struct {
struct policy_handle *user_handle;/* [ref] */
- uint16_t level;
+ enum samr_UserInfoLevel level;
} in;
struct {
struct samr_SetUserInfo {
struct {
struct policy_handle *user_handle;/* [ref] */
- uint16_t level;
+ enum samr_UserInfoLevel level;
union samr_UserInfo *info;/* [ref,switch_is(level)] */
} in;
struct samr_QueryDomainInfo2 {
struct {
struct policy_handle *domain_handle;/* [ref] */
- uint16_t level;
+ enum samr_DomainInfoClass level;
} in;
struct {
struct samr_QueryUserInfo2 {
struct {
struct policy_handle *user_handle;/* [ref] */
- uint16_t level;
+ enum samr_UserInfoLevel level;
} in;
struct {
struct samr_SetUserInfo2 {
struct {
struct policy_handle *user_handle;/* [ref] */
- uint16_t level;
+ enum samr_UserInfoLevel level;
union samr_UserInfo *info;/* [ref,switch_is(level)] */
} in;