diff options
author | Günther Deschner <gd@samba.org> | 2008-09-09 13:44:09 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-09-11 14:30:49 +0200 |
commit | f87901f7e402a067daec2caaad4e3070c0caedc3 (patch) | |
tree | 05c3b965b1a68019baa663960c6a252b1c74730f | |
parent | 40e9ddd6e422f2fa6d0ffa43dc4c78bef5489b7a (diff) | |
download | samba-f87901f7e402a067daec2caaad4e3070c0caedc3.tar.gz samba-f87901f7e402a067daec2caaad4e3070c0caedc3.tar.bz2 samba-f87901f7e402a067daec2caaad4e3070c0caedc3.zip |
netapi: add NetUserGetLocalGroups to public header.
Guenther
(This used to be commit 299f76f4ce9d6f617431149e2502c27faa4431aa)
-rw-r--r-- | source3/lib/netapi/netapi.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/source3/lib/netapi/netapi.h b/source3/lib/netapi/netapi.h index c82dc9af5a..6e4edab6c6 100644 --- a/source3/lib/netapi/netapi.h +++ b/source3/lib/netapi/netapi.h @@ -574,6 +574,10 @@ struct LOCALGROUP_MEMBERS_INFO_3 { const char * lgrmi3_domainandname; }; +struct LOCALGROUP_USERS_INFO_0 { + const char * lgrui0_name; +}; + struct TIME_OF_DAY_INFO { uint32_t tod_elapsedt; uint32_t tod_msecs; @@ -1173,6 +1177,34 @@ NET_API_STATUS NetUserSetGroups(const char * server_name /* [in] */, /************************************************************//** * + * NetUserGetLocalGroups + * + * @brief Enumerate local grouplist of a user on a server + * + * @param[in] server_name The server name to connect to + * @param[in] user_name The user name to query + * @param[in] level The enumeration level used for the query + * @param[in] flags The flags used for the query + * @param[out] buffer The returned enumeration buffer + * @param[in] prefmaxlen The requested maximal buffer size + * @param[out] entries_read The number of returned entries + * @param[out] total_entries The number of total entries + * @return NET_API_STATUS + * + * example user/user_getlocalgroups.c + ***************************************************************/ + +NET_API_STATUS NetUserGetLocalGroups(const char * server_name /* [in] */, + const char * user_name /* [in] */, + uint32_t level /* [in] */, + uint32_t flags /* [in] */, + uint8_t **buffer /* [out] [ref] */, + uint32_t prefmaxlen /* [in] */, + uint32_t *entries_read /* [out] [ref] */, + uint32_t *total_entries /* [out] [ref] */); + +/************************************************************//** + * * NetQueryDisplayInformation * * @brief Enumerate accounts on a server |