From 4801d0c6f3cd08cbbfc0d68d36632044356e9d12 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 9 Apr 2008 13:47:51 +0200 Subject: Add NetUserEnum to libnetapi. Guenther (This used to be commit 6c933d0b3838808aeee7f4b29ee89aab8d203538) --- source3/lib/netapi/netapi.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'source3/lib/netapi/netapi.h') diff --git a/source3/lib/netapi/netapi.h b/source3/lib/netapi/netapi.h index 67919eeb01..483973566f 100644 --- a/source3/lib/netapi/netapi.h +++ b/source3/lib/netapi/netapi.h @@ -23,11 +23,12 @@ /**************************************************************** NET_API_STATUS ****************************************************************/ - typedef enum { NET_API_STATUS_SUCCESS = 0 } NET_API_STATUS; +#define ERROR_MORE_DATA ( 234L ) + /**************************************************************** ****************************************************************/ @@ -208,4 +209,17 @@ NET_API_STATUS NetUserAdd(const char * server_name /* [in] */, NET_API_STATUS NetUserDel(const char * server_name /* [in] */, const char * user_name /* [in] */); +/**************************************************************** + NetUserEnum +****************************************************************/ + +NET_API_STATUS NetUserEnum(const char * server_name /* [in] */, + uint32_t level /* [in] */, + uint32_t filter /* [in] */, + uint8_t **buffer /* [out] [ref] */, + uint32_t prefmaxlen /* [in] */, + uint32_t *entries_read /* [out] [ref] */, + uint32_t *total_entries /* [out] [ref] */, + uint32_t *resume_handle /* [in,out] [ref] */); + #endif -- cgit