diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-03-17 20:28:01 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:11:05 -0500 |
commit | ef213b02482194a8fed7f37123e08624072694b2 (patch) | |
tree | 12e82a6e21263f07cf87432701dc7af776daef6f /source4/librpc/idl | |
parent | 85943483fbcbe5e8a4cfb93eb65ac50f73eff28c (diff) | |
download | samba-ef213b02482194a8fed7f37123e08624072694b2.tar.gz samba-ef213b02482194a8fed7f37123e08624072694b2.tar.bz2 samba-ef213b02482194a8fed7f37123e08624072694b2.zip |
r5866: Add InitShutdown IDL and torture test.
Implement push side of NDR_LEN4|NDR_NOTERM strings (pull side was already present)
(This used to be commit ea61ec1122841716ed5d90085ba79e7bf691bd6a)
Diffstat (limited to 'source4/librpc/idl')
-rw-r--r-- | source4/librpc/idl/initshutdown.idl | 46 | ||||
-rw-r--r-- | source4/librpc/idl/winreg.idl | 6 |
2 files changed, 49 insertions, 3 deletions
diff --git a/source4/librpc/idl/initshutdown.idl b/source4/librpc/idl/initshutdown.idl new file mode 100644 index 0000000000..e84edb47b8 --- /dev/null +++ b/source4/librpc/idl/initshutdown.idl @@ -0,0 +1,46 @@ +#include "idl_types.h" + +/* + initshutdown interface definition +*/ + +[ + uuid("894de0c0-0d55-11d3-a322-00c04fa321a1"), + version(1.0), + endpoint("ncacn_np:[\\pipe\\InitShutdown]"), + pointer_default(unique), + helpstring("Init shutdown service") +] interface initshutdown +{ + typedef struct { + [value(strlen_m_term(r->name))] uint32 name_size; + [flag(STR_LEN4|STR_NOTERM)] string name; + } initshutdown_String_sub; + + typedef [public] struct { + [value(strlen_m(r->name->name)*2)] uint16 name_len; + [value(strlen_m_term(r->name->name)*2)] uint16 name_size; + initshutdown_String_sub *name; + } initshutdown_String; + + WERROR initshutdown_Init( + [in] uint16 *hostname, + [in] initshutdown_String *message, + [in] uint32 timeout, + [in] uint8 force_apps, + [in] uint8 reboot + ); + + WERROR initshutdown_Abort( + [in] uint16 *server + ); + + WERROR initshutdown_InitEx( + [in] uint16 *hostname, + [in] initshutdown_String *message, + [in] uint32 timeout, + [in] uint8 force_apps, + [in] uint8 reboot, + [in] uint32 reason + ); +} diff --git a/source4/librpc/idl/winreg.idl b/source4/librpc/idl/winreg.idl index 3d11af790b..47531d4710 100644 --- a/source4/librpc/idl/winreg.idl +++ b/source4/librpc/idl/winreg.idl @@ -10,7 +10,7 @@ endpoint("ncacn_np:[\\pipe\\winreg]","ncacn_ip_tcp:","ncalrpc:"), pointer_default(unique), helpstring("Remote Registry Service"), - depends(lsa) + depends(lsa,initshutdown) ] interface winreg { typedef struct { @@ -270,7 +270,7 @@ /* Function: 0x18 */ WERROR winreg_InitiateSystemShutdown( [in] uint16 *hostname, - [in] winreg_String *message, + [in] initshutdown_String *message, [in] uint32 timeout, [in] uint8 force_apps, [in] uint8 reboot @@ -326,7 +326,7 @@ /* Function: 0x1e */ WERROR winreg_InitiateSystemShutdownEx( [in] uint16 *hostname, - [in] winreg_String *message, + [in] initshutdown_String *message, [in] uint32 timeout, [in] uint8 force_apps, [in] uint8 reboot, |