summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-07-19 19:21:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:44 -0500
commit4f3d66b0dfe49d5485eafce52f3abf4c6581bf57 (patch)
tree449a97550743787963164c4515082568f2439b86 /source4/librpc
parent728033178b74cbda9574ccdfe2329bae45312a60 (diff)
downloadsamba-4f3d66b0dfe49d5485eafce52f3abf4c6581bf57.tar.gz
samba-4f3d66b0dfe49d5485eafce52f3abf4c6581bf57.tar.bz2
samba-4f3d66b0dfe49d5485eafce52f3abf4c6581bf57.zip
r8614: Add COMRESULT/HRESULT scalar type
(This used to be commit 8637a85e6a349cce15a298154500921e9a0183a3)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/idl/orpc.idl14
-rw-r--r--source4/librpc/ndr/ndr_orpc.h2
2 files changed, 16 insertions, 0 deletions
diff --git a/source4/librpc/idl/orpc.idl b/source4/librpc/idl/orpc.idl
index 1934a3cbed..377f71b34f 100644
--- a/source4/librpc/idl/orpc.idl
+++ b/source4/librpc/idl/orpc.idl
@@ -200,4 +200,18 @@ interface ObjectRpcBaseTypes
uint32 size;
[subcontext(4)] OBJREF obj;
} MInterfacePointer;
+
+ typedef [v1_enum,public] enum
+ {
+ COM_OK = 0x00000000,
+ COM_OUTOFMEMORY = 0x80000002,
+ COM_INVALIDARG = 0x80000003,
+ COM_NOINTERFACE = 0x80000004,
+ COM_ACCESSDENIED = 0x80000005,
+ COM_INVALID_OXID = 0x80070776,
+ COM_INVALID_OID = 0x80070777,
+ COM_INVALID_SET = 0x80070778,
+ COM_UNEXPECTED = 0x8000FFFF,
+ COM_CLSNOTFOUND = 0x80040154
+ } COMRESULT;
}
diff --git a/source4/librpc/ndr/ndr_orpc.h b/source4/librpc/ndr/ndr_orpc.h
index d1817969a4..ab91432aec 100644
--- a/source4/librpc/ndr/ndr_orpc.h
+++ b/source4/librpc/ndr/ndr_orpc.h
@@ -23,6 +23,8 @@
#ifndef __NDR_ORPC_H__
#define __NDR_ORPC_H__
+typedef enum COMRESULT COMRESULT;
+
struct STRINGARRAY
{
struct STRINGBINDING **stringbindings;