From 4bba087298b45b3dd403a8ee0a50179bff72f6c4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 9 Nov 2003 09:44:06 +0000 Subject: added lsa_EnumPrivs idl and test code (This used to be commit fe12f81ba4583b1121bf128db55c4763736a205c) --- source4/librpc/idl/lsa.idl | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) (limited to 'source4/librpc/idl/lsa.idl') diff --git a/source4/librpc/idl/lsa.idl b/source4/librpc/idl/lsa.idl index 8a1b4d546f..7d652e2449 100644 --- a/source4/librpc/idl/lsa.idl +++ b/source4/librpc/idl/lsa.idl @@ -16,11 +16,36 @@ /******************/ /* Function: 0x01 */ - NTSTATUS lsa_Delete (); + NTSTATUS lsa_Delete ( + [in,ref] policy_handle *handle + ); /******************/ /* Function: 0x02 */ - NTSTATUS lsa_EnumPrivs (); + + typedef struct { + uint16 name_len; + uint16 name_size; + unistr_noterm *name; + } lsa_Name; + + typedef struct { + lsa_Name name; + uint32 luid_low; + uint32 luid_high; + } lsa_PrivEntry; + + typedef struct { + uint32 count; + [size_is(count)] lsa_PrivEntry *privs; + } lsa_PrivArray; + + NTSTATUS lsa_EnumPrivs ( + [in,ref] policy_handle *handle, + [in,out,ref] uint32 *resume_handle, + [in] uint32 max_count, + [out,ref] lsa_PrivArray *privs + ); /******************/ /* Function: 0x03 */ @@ -112,12 +137,6 @@ /******************/ /* Function: 0x0e */ - typedef struct { - uint16 name_len; - uint16 name_size; - unistr_noterm *name; - } lsa_Name; - typedef struct { uint16 sid_type; uint32 rid; -- cgit