summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-03-02 10:44:45 +0100
committerGünther Deschner <gd@samba.org>2011-03-02 12:12:31 +0100
commit8df12d405262cbefbc64edbc038a8651297d3ec9 (patch)
treead627174168218111f58369b36e222cda48e4d7b /librpc
parent8643683dd8c32be7327ac8a69b26f3a33d0ff203 (diff)
downloadsamba-8df12d405262cbefbc64edbc038a8651297d3ec9.tar.gz
rap: add rap_NetSessionEnum to IDL.
Guenther
Diffstat (limited to 'librpc')
-rw-r--r--librpc/idl/rap.idl30
1 files changed, 30 insertions, 0 deletions
diff --git a/librpc/idl/rap.idl b/librpc/idl/rap.idl
index 6b7316938e4..7e3698a0547 100644
--- a/librpc/idl/rap.idl
+++ b/librpc/idl/rap.idl
@@ -907,6 +907,36 @@ interface rap
[out,switch_is(level)] rap_netuser_info info
);
+ typedef struct {
+ [relative_short] astring *ComputerName;
+ uint16 ComputerNameHigh;
+ [relative_short] astring *UserName;
+ uint16 UserNameHigh;
+ uint16 num_conns;
+ uint16 num_opens;
+ uint16 num_users;
+ uint32 sess_time;
+ uint32 idle_time;
+ uint32 user_flags;
+ [relative_short] astring *CliTypeName;
+ uint16 CliTypeNameHigh;
+ } rap_session_info_2;
+
+ typedef [public,nodiscriminant] union {
+ [case(2)] rap_session_info_2 info2;
+ } rap_session_info;
+
+ /* not documented in MS-RAP */
+ [public] void rap_NetSessionEnum(
+ [in] uint16 level,
+ [in] uint16 bufsize,
+ [out] rap_status status,
+ [out] uint16 convert,
+ [out] uint16 count,
+ [out] uint16 available,
+ [out,switch_is(level)] rap_session_info info[count]
+ );
+
/* Parameter description strings for RAP calls */
/* Names are defined name for RAP call with _REQ */
/* appended to end. */