Robert Shearman : include: Add types and definitions for RPC user callback routines.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jan 27 05:59:08 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 3433839b20974e9ebbcc81131280b1c89ccca10f
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=3433839b20974e9ebbcc81131280b1c89ccca10f

Author: Robert Shearman <rob at codeweavers.com>
Date:   Fri Jan 27 12:53:51 2006 +0100

include: Add types and definitions for RPC user callback routines.

---

 include/rpcndr.h |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/include/rpcndr.h b/include/rpcndr.h
index ce32fb4..87d5b51 100644
--- a/include/rpcndr.h
+++ b/include/rpcndr.h
@@ -254,6 +254,37 @@ typedef struct _USER_MARSHAL_ROUTINE_QUA
   USER_MARSHAL_FREEING_ROUTINE pfnFree;
 } USER_MARSHAL_ROUTINE_QUADRUPLE;
 
+/* 'USRC' */
+#define USER_MARSHAL_CB_SIGNATURE \
+	( (DWORD)'U'         | ( (DWORD)'S' << 8 ) | \
+	( (DWORD)'R' << 16 ) | ( (DWORD)'C' << 24 ) )
+
+typedef enum
+{
+    USER_MARSHAL_CB_BUFFER_SIZE,
+    USER_MARSHAL_CB_MARSHALL,
+    USER_MARSHAL_CB_UNMARSHALL,
+    USER_MARSHAL_CB_FREE
+} USER_MARSHAL_CB_TYPE;
+
+typedef struct _USER_MARSHAL_CB
+{
+    unsigned long Flags;
+    PMIDL_STUB_MESSAGE pStubMsg;
+    PFORMAT_STRING pReserve;
+    unsigned long Signature;
+    USER_MARSHAL_CB_TYPE CBType;
+    PFORMAT_STRING pFormat;
+    PFORMAT_STRING pTypeFormat;
+} USER_MARSHAL_CB;
+
+#define USER_CALL_CTXT_MASK(f) ((f) & 0x00ff)
+#define USER_CALL_AUX_MASK(f) ((f) & 0xff00)
+#define GET_USER_DATA_REP(f) HIWORD(f)
+
+#define USER_CALL_IS_ASYNC 0x0100
+#define USER_CALL_NEW_CORRELATION_DESC 0x0200
+
 typedef struct _MALLOC_FREE_STRUCT
 {
   void * (__RPC_USER *pfnAllocate)(size_t);




More information about the wine-cvs mailing list