annotate win32/rpcndr.d @ 1:4a9dcbd9e54f

-files of 0.13 beta -fixes so that it now compiles with the current dmd version
author marton@basel.hu
date Tue, 05 Apr 2011 20:44:01 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
1 /***********************************************************************\
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
2 * rpcndr.d *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
3 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
4 * Windows API header module *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
5 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
6 * Translated from MinGW Windows headers *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
7 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
8 * Placed into public domain *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
9 \***********************************************************************/
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
10 module win32.rpcndr;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
11 pragma(lib, "rpcrt4.lib");
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
12
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
13 /* Translation notes:
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
14 RPC_CLIENT_ALLOC*, RPC_CLIENT_FREE* were replaced with PRPC_CLIENT_ALLOC, PRPC_CLIENT_FREE
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
15 */
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
16
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
17 // TODO: Bitfields in MIDL_STUB_MESSAGE.
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
18 // Macros need to be converted.
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
19 const __RPCNDR_H_VERSION__= 450;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
20
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
21 import win32.rpcnsip;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
22 private import win32.rpc, win32.rpcdce, win32.unknwn, win32.windef;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
23 private import win32.objidl; // for IRpcChannelBuffer, IRpcStubBuffer
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
24 private import win32.basetyps;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
25
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
26 extern (Windows):
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
27
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
28 const uint NDR_CHAR_REP_MASK = 0xF,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
29 NDR_INT_REP_MASK = 0xF0,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
30 NDR_FLOAT_REP_MASK = 0xFF00,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
31 NDR_LITTLE_ENDIAN = 0x10,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
32 NDR_BIG_ENDIAN = 0,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
33 NDR_IEEE_FLOAT = 0,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
34 NDR_VAX_FLOAT = 0x100,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
35 NDR_ASCII_CHAR = 0,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
36 NDR_EBCDIC_CHAR = 1,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
37 NDR_LOCAL_DATA_REPRESENTATION = 0x10,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
38 NDR_LOCAL_ENDIAN = NDR_LITTLE_ENDIAN;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
39
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
40 alias MIDL_user_allocate midl_user_allocate;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
41 alias MIDL_user_free midl_user_free;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
42
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
43 alias long hyper;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
44 alias ulong MIDL_uhyper;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
45 alias char small;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
46
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
47 const cbNDRContext=20;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
48 //MACRO #define NDRSContextValue(hContext) (&(hContext)->userContext)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
49 //MACRO #define byte_from_ndr(source, target) { *(target) = *(*(char**)&(source)->Buffer)++; }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
50
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
51 //MACRO #define byte_array_from_ndr(Source, LowerIndex, UpperIndex, Target) { NDRcopy ((((char *)(Target))+(LowerIndex)), (Source)->Buffer, (unsigned int)((UpperIndex)-(LowerIndex))); *(unsigned long *)&(Source)->Buffer += ((UpperIndex)-(LowerIndex)); }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
52
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
53 //MACRO #define boolean_from_ndr(source, target) { *(target) = *(*(char**)&(source)->Buffer)++; }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
54
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
55 //MACRO #define boolean_array_from_ndr(Source, LowerIndex, UpperIndex, Target) { NDRcopy ((((char *)(Target))+(LowerIndex)), (Source)->Buffer, (unsigned int)((UpperIndex)-(LowerIndex))); *(unsigned long *)&(Source)->Buffer += ((UpperIndex)-(LowerIndex)); }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
56
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
57 //MACRO #define small_from_ndr(source, target) { *(target) = *(*(char**)&(source)->Buffer)++; }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
58
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
59 //MACRO #define small_from_ndr_temp(source, target, format) { *(target) = *(*(char**)(source))++; }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
60
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
61 //MACRO #define small_array_from_ndr(Source, LowerIndex, UpperIndex, Target) { NDRcopy ((((char *)(Target))+(LowerIndex)), (Source)->Buffer, (unsigned int)((UpperIndex)-(LowerIndex))); *(unsigned long *)&(Source)->Buffer += ((UpperIndex)-(LowerIndex)); }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
62
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
63 //MACRO #define MIDL_ascii_strlen(string) strlen(string)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
64
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
65 //MACRO #define MIDL_ascii_strcpy(target,source) strcpy(target,source)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
66
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
67 //MACRO #define MIDL_memset(s,c,n) memset(s,c,n)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
68
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
69 //MACRO #define _midl_ma1( p, cast ) *(*( cast **)&p)++
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
70 //MACRO #define _midl_ma2( p, cast ) *(*( cast **)&p)++
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
71 //MACRO #define _midl_ma4( p, cast ) *(*( cast **)&p)++
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
72 //MACRO #define _midl_ma8( p, cast ) *(*( cast **)&p)++
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
73 //MACRO #define _midl_unma1( p, cast ) *(( cast *)p)++
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
74 //MACRO #define _midl_unma2( p, cast ) *(( cast *)p)++
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
75 //MACRO #define _midl_unma3( p, cast ) *(( cast *)p)++
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
76 //MACRO #define _midl_unma4( p, cast ) *(( cast *)p)++
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
77 //MACRO #define _midl_fa2( p ) (p = (RPC_BUFPTR )((unsigned long)(p+1) & 0xfffffffe))
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
78 //MACRO #define _midl_fa4( p ) (p = (RPC_BUFPTR )((unsigned long)(p+3) & 0xfffffffc))
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
79 //MACRO #define _midl_fa8( p ) (p = (RPC_BUFPTR )((unsigned long)(p+7) & 0xfffffff8))
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
80 //MACRO #define _midl_addp( p, n ) (p += n)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
81 //MACRO #define _midl_marsh_lhs( p, cast ) *(*( cast **)&p)++
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
82 //MACRO #define _midl_marsh_up( mp, p ) *(*(unsigned long **)&mp)++ = (unsigned long)p
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
83 //MACRO #define _midl_advmp( mp ) *(*(unsigned long **)&mp)++
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
84 //MACRO #define _midl_unmarsh_up( p ) (*(*(unsigned long **)&p)++)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
85
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
86 //MACRO #define NdrMarshConfStringHdr( p, s, l ) (_midl_ma4( p, unsigned long) = s, _midl_ma4( p, unsigned long) = 0, _midl_ma4( p, unsigned long) = l)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
87
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
88 //MACRO #define NdrUnMarshConfStringHdr(p, s, l) ((s=_midl_unma4(p,unsigned long), (_midl_addp(p,4)), (l=_midl_unma4(p,unsigned long))
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
89
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
90 //MACRO #define NdrMarshCCtxtHdl(pc,p) (NDRCContextMarshall( (NDR_CCONTEXT)pc, p ),p+20)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
91 //MACRO #define NdrUnMarshCCtxtHdl(pc,p,h,drep) (NDRCContextUnmarshall((NDR_CONTEXT)pc,h,p,drep), p+20)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
92 //MACRO #define NdrUnMarshSCtxtHdl(pc, p,drep) (pc = NdrSContextUnMarshall(p,drep ))
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
93 //MACRO #define NdrMarshSCtxtHdl(pc,p,rd) (NdrSContextMarshall((NDR_SCONTEXT)pc,p, (NDR_RUNDOWN)rd)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
94
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
95 //MACRO #define NdrFieldOffset(s,f) (long)(& (((s *)0)->f))
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
96 //MACRO #define NdrFieldPad(s,f,p,t) (NdrFieldOffset(s,f) - NdrFieldOffset(s,p) - sizeof(t))
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
97 //MACRO #define NdrFcShort(s) (unsigned char)(s & 0xff), (unsigned char)(s >> 8)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
98 //MACRO #define NdrFcLong(s) (unsigned char)(s & 0xff), (unsigned char)((s & 0x0000ff00) >> 8), (unsigned char)((s & 0x00ff0000) >> 16), (unsigned char)(s >> 24)
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
99
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
100 alias void * NDR_CCONTEXT;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
101 struct tagNDR_SCONTEXT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
102 void *pad[2];
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
103 void *userContext;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
104 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
105 alias tagNDR_SCONTEXT * NDR_SCONTEXT;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
106
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
107 struct SCONTEXT_QUEUE {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
108 uint NumberOfObjects;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
109 NDR_SCONTEXT *ArrayOfObjects;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
110 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
111 alias SCONTEXT_QUEUE * PSCONTEXT_QUEUE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
112
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
113 struct _MIDL_STUB_MESSAGE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
114 struct _MIDL_STUB_DESC;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
115 struct _FULL_PTR_XLAT_TABLES;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
116
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
117 alias ubyte *RPC_BUFPTR;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
118 alias uint RPC_LENGTH;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
119
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
120 alias ubyte *PFORMAT_STRING;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
121
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
122 struct ARRAY_INFO {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
123 int Dimension;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
124 uint *BufferConformanceMark;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
125 uint *BufferVarianceMark;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
126 uint *MaxCountArray;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
127 uint *OffsetArray;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
128 uint *ActualCountArray;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
129 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
130 alias ARRAY_INFO * PARRAY_INFO;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
131
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
132 RPC_BINDING_HANDLE NDRCContextBinding(NDR_CCONTEXT);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
133 void NDRCContextMarshall(NDR_CCONTEXT,void*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
134 void NDRCContextUnmarshall(NDR_CCONTEXT*,RPC_BINDING_HANDLE,void*,uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
135 void NDRSContextMarshall(NDR_SCONTEXT,void*,NDR_RUNDOWN);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
136 NDR_SCONTEXT NDRSContextUnmarshall(void*pBuff,uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
137 void RpcSsDestroyClientContext(void**);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
138 void NDRcopy(void*,void*,uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
139 uint MIDL_wchar_strlen(wchar *);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
140 void MIDL_wchar_strcpy(void*,wchar *);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
141 void char_from_ndr(PRPC_MESSAGE,ubyte*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
142 void char_array_from_ndr(PRPC_MESSAGE,uint,uint,ubyte*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
143 void short_from_ndr(PRPC_MESSAGE,ushort*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
144 void short_array_from_ndr(PRPC_MESSAGE,uint,uint,ushort*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
145 void short_from_ndr_temp(ubyte**,ushort*,uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
146 void int_from_ndr(PRPC_MESSAGE,uint*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
147 void int_array_from_ndr(PRPC_MESSAGE,uint,uint,uint*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
148 void int_from_ndr_temp(ubyte**,uint*,uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
149 void enum_from_ndr(PRPC_MESSAGE,uint*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
150 void float_from_ndr(PRPC_MESSAGE,void*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
151 void float_array_from_ndr(PRPC_MESSAGE,uint,uint,void*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
152 void double_from_ndr(PRPC_MESSAGE,void*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
153 void double_array_from_ndr(PRPC_MESSAGE,uint,uint,void*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
154 void hyper_from_ndr(PRPC_MESSAGE,hyper*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
155 void hyper_array_from_ndr(PRPC_MESSAGE,uint,uint,hyper*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
156 void hyper_from_ndr_temp(ubyte**,hyper*,uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
157 void data_from_ndr(PRPC_MESSAGE,void*,char*,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
158 void data_into_ndr(void*,PRPC_MESSAGE,char*,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
159 void tree_into_ndr(void*,PRPC_MESSAGE,char*,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
160 void data_size_ndr(void*,PRPC_MESSAGE,char*,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
161 void tree_size_ndr(void*,PRPC_MESSAGE,char*,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
162 void tree_peek_ndr(PRPC_MESSAGE,ubyte**,char*,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
163 void * midl_allocate(int);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
164
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
165 align(4):
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
166 struct MIDL_STUB_MESSAGE {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
167 PRPC_MESSAGE RpcMsg;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
168 ubyte *Buffer;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
169 ubyte *BufferStart;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
170 ubyte *BufferEnd;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
171 ubyte *BufferMark;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
172 uint BufferLength;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
173 uint MemorySize;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
174 ubyte *Memory;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
175 int IsClient;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
176 int ReuseBuffer;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
177 ubyte *AllocAllNodesMemory;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
178 ubyte *AllocAllNodesMemoryEnd;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
179 int IgnoreEmbeddedPointers;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
180 ubyte *PointerBufferMark;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
181 ubyte fBufferValid;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
182 ubyte Unused;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
183 uint MaxCount;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
184 uint Offset;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
185 uint ActualCount;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
186 void* function (uint) pfnAllocate;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
187 void function (void*) pfnFree;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
188 ubyte * StackTop;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
189 ubyte * pPresentedType;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
190 ubyte * pTransmitType;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
191 handle_t SavedHandle;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
192 _MIDL_STUB_DESC *StubDesc;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
193 _FULL_PTR_XLAT_TABLES *FullPtrXlatTables;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
194 uint FullPtrRefId;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
195 int fCheckBounds;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
196 // FIXME:
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
197 byte bit_fields_for_D; // FIXME: Bitfields
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
198 // int fInDontFree :1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
199 // int fDontCallFreeInst :1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
200 // int fInOnlyParam :1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
201 // int fHasReturn :1;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
202 uint dwDestContext;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
203 void* pvDestContext;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
204 NDR_SCONTEXT * SavedContextHandles;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
205 int ParamNumber;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
206 IRpcChannelBuffer * pRpcChannelBuffer;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
207 PARRAY_INFO pArrayInfo;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
208 uint * SizePtrCountArray;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
209 uint * SizePtrOffsetArray;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
210 uint * SizePtrLengthArray;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
211 void* pArgQueue;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
212 uint dwStubPhase;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
213 uint w2kReserved[5];
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
214 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
215 alias MIDL_STUB_MESSAGE * PMIDL_STUB_MESSAGE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
216
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
217 extern (Windows) {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
218 alias void* function (void*) GENERIC_BINDING_ROUTINE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
219 alias void function (void*,ubyte*) GENERIC_UNBIND_ROUTINE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
220 alias uint function (uint *,uint,void *) USER_MARSHAL_SIZING_ROUTINE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
221 alias ubyte * function (uint *,ubyte *,void *) USER_MARSHAL_MARSHALLING_ROUTINE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
222 alias ubyte * function (uint *,ubyte *,void *) USER_MARSHAL_UNMARSHALLING_ROUTINE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
223 alias void function (uint *,void *) USER_MARSHAL_FREEING_ROUTINE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
224 alias void function () NDR_NOTIFY_ROUTINE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
225 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
226
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
227 align:
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
228 struct GENERIC_BINDING_ROUTINE_PAIR {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
229 GENERIC_BINDING_ROUTINE pfnBind;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
230 GENERIC_UNBIND_ROUTINE pfnUnbind;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
231 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
232 alias GENERIC_BINDING_ROUTINE_PAIR * PGENERIC_BINDING_ROUTINE_PAIR;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
233
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
234 struct GENERIC_BINDING_INFO {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
235 void *pObj;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
236 uint Size;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
237 GENERIC_BINDING_ROUTINE pfnBind;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
238 GENERIC_UNBIND_ROUTINE pfnUnbind;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
239 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
240 alias GENERIC_BINDING_INFO * PGENERIC_BINDING_INFO;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
241
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
242
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
243 struct XMIT_ROUTINE_QUINTUPLE {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
244 XMIT_HELPER_ROUTINE pfnTranslateToXmit;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
245 XMIT_HELPER_ROUTINE pfnTranslateFromXmit;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
246 XMIT_HELPER_ROUTINE pfnFreeXmit;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
247 XMIT_HELPER_ROUTINE pfnFreeInst;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
248 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
249 alias XMIT_ROUTINE_QUINTUPLE * PXMIT_ROUTINE_QUINTUPLE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
250
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
251 struct MALLOC_FREE_STRUCT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
252 void* function (uint) pfnAllocate;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
253 void function (void*) pfnFree;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
254 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
255
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
256 struct COMM_FAULT_OFFSETS {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
257 short CommOffset;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
258 short FaultOffset;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
259 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
260
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
261 struct USER_MARSHAL_ROUTINE_QUADRUPLE {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
262 USER_MARSHAL_SIZING_ROUTINE pfnBufferSize;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
263 USER_MARSHAL_MARSHALLING_ROUTINE pfnMarshall;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
264 USER_MARSHAL_UNMARSHALLING_ROUTINE pfnUnmarshall;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
265 USER_MARSHAL_FREEING_ROUTINE pfnFree;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
266 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
267
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
268 enum IDL_CS_CONVERT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
269 IDL_CS_NO_CONVERT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
270 IDL_CS_IN_PLACE_CONVERT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
271 IDL_CS_NEW_BUFFER_CONVERT
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
272 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
273
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
274 struct NDR_CS_SIZE_CONVERT_ROUTINES {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
275 CS_TYPE_NET_SIZE_ROUTINE pfnNetSize;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
276 CS_TYPE_TO_NETCS_ROUTINE pfnToNetCs;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
277 CS_TYPE_LOCAL_SIZE_ROUTINE pfnLocalSize;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
278 CS_TYPE_FROM_NETCS_ROUTINE pfnFromNetCs;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
279 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
280
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
281 struct NDR_CS_ROUTINES {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
282 NDR_CS_SIZE_CONVERT_ROUTINES *pSizeConvertRoutines;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
283 CS_TAG_GETTING_ROUTINE *pTagGettingRoutines;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
284 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
285
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
286 struct MIDL_STUB_DESC {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
287 void* RpcInterfaceInformation;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
288 void* function(uint) pfnAllocate;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
289 void function (void*) pfnFree;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
290 union _IMPLICIT_HANDLE_INFO {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
291 handle_t *pAutoHandle;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
292 handle_t *pPrimitiveHandle;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
293 PGENERIC_BINDING_INFO pGenericBindingInfo;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
294 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
295 _IMPLICIT_HANDLE_INFO IMPLICIT_HANDLE_INFO;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
296 NDR_RUNDOWN *apfnNdrRundownRoutines;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
297 GENERIC_BINDING_ROUTINE_PAIR *aGenericBindingRoutinePairs;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
298 EXPR_EVAL *apfnExprEval;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
299 XMIT_ROUTINE_QUINTUPLE *aXmitQuintuple;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
300 ubyte *pFormatTypes;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
301 int fCheckBounds;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
302 uint Version;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
303 MALLOC_FREE_STRUCT *pMallocFreeStruct;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
304 int MIDLVersion;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
305 COMM_FAULT_OFFSETS *CommFaultOffsets;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
306 USER_MARSHAL_ROUTINE_QUADRUPLE *aUserMarshalQuadruple;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
307 NDR_NOTIFY_ROUTINE *NotifyRoutineTable;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
308 ULONG_PTR mFlags;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
309 NDR_CS_ROUTINES *CsRoutineTables;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
310 void *Reserved4;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
311 ULONG_PTR Reserved5;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
312 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
313 alias MIDL_STUB_DESC * PMIDL_STUB_DESC;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
314
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
315 alias void * PMIDL_XMIT_TYPE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
316
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
317 struct MIDL_FORMAT_STRING {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
318 short Pad;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
319 ubyte Format[1];
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
320 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
321
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
322 struct MIDL_SERVER_INFO {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
323 PMIDL_STUB_DESC pStubDesc;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
324 SERVER_ROUTINE *DispatchTable;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
325 PFORMAT_STRING ProcString;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
326 ushort *FmtStringOffset;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
327 STUB_THUNK *ThunkTable;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
328 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
329 alias MIDL_SERVER_INFO * PMIDL_SERVER_INFO;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
330
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
331 struct MIDL_STUBLESS_PROXY_INFO {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
332 PMIDL_STUB_DESC pStubDesc;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
333 PFORMAT_STRING ProcFormatString;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
334 ushort *FormatStringOffset;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
335 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
336 alias MIDL_STUBLESS_PROXY_INFO *PMIDL_STUBLESS_PROXY_INFO;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
337
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
338 union CLIENT_CALL_RETURN {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
339 void *Pointer;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
340 int Simple;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
341 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
342
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
343 enum XLAT_SIDE {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
344 XLAT_SERVER = 1,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
345 XLAT_CLIENT
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
346 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
347 struct FULL_PTR_TO_REFID_ELEMENT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
348 FULL_PTR_TO_REFID_ELEMENT * Next;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
349 void* Pointer;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
350 uint RefId;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
351 ubyte State;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
352 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
353 alias FULL_PTR_TO_REFID_ELEMENT * PFULL_PTR_TO_REFID_ELEMENT;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
354
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
355 struct FULL_PTR_XLAT_TABLES {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
356 struct RefIdToPointer {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
357 void **XlatTable;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
358 ubyte *StateTable;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
359 uint NumberOfEntries;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
360 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
361 struct PointerToRefId {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
362 PFULL_PTR_TO_REFID_ELEMENT *XlatTable;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
363 uint NumberOfBuckets;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
364 uint HashMask;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
365 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
366 uint NextRefId;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
367 XLAT_SIDE XlatSide;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
368 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
369 alias FULL_PTR_XLAT_TABLES * PFULL_PTR_XLAT_TABLES;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
370
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
371
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
372 enum STUB_PHASE {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
373 STUB_UNMARSHAL,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
374 STUB_CALL_SERVER,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
375 STUB_MARSHAL,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
376 STUB_CALL_SERVER_NO_HRESULT
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
377 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
378
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
379 enum PROXY_PHASE {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
380 PROXY_CALCSIZE,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
381 PROXY_GETBUFFER,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
382 PROXY_MARSHAL,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
383 PROXY_SENDRECEIVE,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
384 PROXY_UNMARSHAL
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
385 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
386
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
387 typedef void * RPC_SS_THREAD_HANDLE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
388
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
389 extern (Windows) {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
390 alias void function (void*) NDR_RUNDOWN;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
391 alias void function (_MIDL_STUB_MESSAGE*) EXPR_EVAL;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
392 alias void function(PMIDL_STUB_MESSAGE) XMIT_HELPER_ROUTINE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
393 alias void function (RPC_BINDING_HANDLE,uint,uint,IDL_CS_CONVERT*,uint*,error_status_t*) CS_TYPE_NET_SIZE_ROUTINE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
394 alias void function (RPC_BINDING_HANDLE,uint,uint,IDL_CS_CONVERT*,uint*,error_status_t*) CS_TYPE_LOCAL_SIZE_ROUTINE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
395 alias void function (RPC_BINDING_HANDLE,uint,void*,uint,byte*,uint*,error_status_t*) CS_TYPE_TO_NETCS_ROUTINE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
396 alias void function (RPC_BINDING_HANDLE,uint,byte*,uint,uint,void*,uint*,error_status_t*) CS_TYPE_FROM_NETCS_ROUTINE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
397 alias void function (RPC_BINDING_HANDLE,int,uint*,uint*,uint*,error_status_t*) CS_TAG_GETTING_ROUTINE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
398
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
399 //alias void* RPC_CLIENT_ALLOC(uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
400 //alias void RPC_CLIENT_FREE(void*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
401 alias void* function(uint) PRPC_CLIENT_ALLOC;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
402 alias void function(void*) PRPC_CLIENT_FREE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
403
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
404 alias void function (PMIDL_STUB_MESSAGE) STUB_THUNK;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
405 alias int function() SERVER_ROUTINE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
406 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
407
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
408 void NdrSimpleTypeMarshall(PMIDL_STUB_MESSAGE,ubyte*,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
409 ubyte * NdrPointerMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING pFormat);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
410 ubyte * NdrSimpleStructMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
411 ubyte * NdrConformantStructMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
412 ubyte * NdrConformantVaryingStructMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
413 ubyte * NdrHardStructMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
414 ubyte * NdrComplexStructMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
415 ubyte * NdrFixedArrayMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
416 ubyte * NdrConformantArrayMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
417 ubyte * NdrConformantVaryingArrayMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
418 ubyte * NdrVaryingArrayMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
419 ubyte * NdrComplexArrayMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
420 ubyte * NdrNonConformantStringMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
421 ubyte * NdrConformantStringMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
422 ubyte * NdrEncapsulatedUnionMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
423 ubyte * NdrNonEncapsulatedUnionMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
424 ubyte * NdrByteCountPointerMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
425 ubyte * NdrXmitOrRepAsMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
426 ubyte * NdrInterfacePointerMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
427 void NdrClientContextMarshall(PMIDL_STUB_MESSAGE,NDR_CCONTEXT,int);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
428 void NdrServerContextMarshall(PMIDL_STUB_MESSAGE,NDR_SCONTEXT,NDR_RUNDOWN);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
429 void NdrSimpleTypeUnmarshall(PMIDL_STUB_MESSAGE,ubyte*,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
430 ubyte * NdrPointerUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
431 ubyte * NdrSimpleStructUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
432 ubyte * NdrConformantStructUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
433 ubyte * NdrConformantVaryingStructUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
434 ubyte * NdrHardStructUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
435 ubyte * NdrComplexStructUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
436 ubyte * NdrFixedArrayUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
437 ubyte * NdrConformantArrayUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
438 ubyte * NdrConformantVaryingArrayUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
439 ubyte * NdrVaryingArrayUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
440 ubyte * NdrComplexArrayUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
441 ubyte * NdrNonConformantStringUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
442 ubyte * NdrConformantStringUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
443 ubyte * NdrEncapsulatedUnionUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
444 ubyte * NdrNonEncapsulatedUnionUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
445 ubyte * NdrByteCountPointerUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
446 ubyte * NdrXmitOrRepAsUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
447 ubyte * NdrInterfacePointerUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
448 void NdrClientContextUnmarshall(PMIDL_STUB_MESSAGE,NDR_CCONTEXT*,RPC_BINDING_HANDLE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
449 NDR_SCONTEXT NdrServerContextUnmarshall(PMIDL_STUB_MESSAGE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
450 void NdrPointerBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
451 void NdrSimpleStructBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
452 void NdrConformantStructBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
453 void NdrConformantVaryingStructBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
454 void NdrHardStructBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
455 void NdrComplexStructBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
456 void NdrFixedArrayBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
457 void NdrConformantArrayBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
458 void NdrConformantVaryingArrayBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
459 void NdrVaryingArrayBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
460 void NdrComplexArrayBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
461 void NdrConformantStringBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
462 void NdrNonConformantStringBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
463 void NdrEncapsulatedUnionBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
464 void NdrNonEncapsulatedUnionBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
465 void NdrByteCountPointerBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
466 void NdrXmitOrRepAsBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
467 void NdrInterfacePointerBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
468 void NdrContextHandleSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
469 uint NdrPointerMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
470 uint NdrSimpleStructMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
471 uint NdrConformantStructMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
472 uint NdrConformantVaryingStructMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
473 uint NdrHardStructMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
474 uint NdrComplexStructMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
475 uint NdrFixedArrayMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
476 uint NdrConformantArrayMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
477 uint NdrConformantVaryingArrayMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
478 uint NdrVaryingArrayMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
479 uint NdrComplexArrayMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
480 uint NdrConformantStringMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
481 uint NdrNonConformantStringMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
482 uint NdrEncapsulatedUnionMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
483 uint NdrNonEncapsulatedUnionMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
484 uint NdrXmitOrRepAsMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
485 uint NdrInterfacePointerMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
486 void NdrPointerFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
487 void NdrSimpleStructFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
488 void NdrConformantStructFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
489 void NdrConformantVaryingStructFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
490 void NdrHardStructFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
491 void NdrComplexStructFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
492 void NdrFixedArrayFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
493 void NdrConformantArrayFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
494 void NdrConformantVaryingArrayFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
495 void NdrVaryingArrayFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
496 void NdrComplexArrayFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
497 void NdrEncapsulatedUnionFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
498 void NdrNonEncapsulatedUnionFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
499 void NdrByteCountPointerFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
500 void NdrXmitOrRepAsFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
501 void NdrInterfacePointerFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
502 void NdrConvert(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
503 void NdrClientInitializeNew(PRPC_MESSAGE,PMIDL_STUB_MESSAGE,PMIDL_STUB_DESC,uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
504 ubyte * NdrServerInitializeNew(PRPC_MESSAGE,PMIDL_STUB_MESSAGE,PMIDL_STUB_DESC);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
505 void NdrClientInitialize(PRPC_MESSAGE,PMIDL_STUB_MESSAGE,PMIDL_STUB_DESC,uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
506 ubyte * NdrServerInitialize(PRPC_MESSAGE,PMIDL_STUB_MESSAGE,PMIDL_STUB_DESC);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
507 ubyte * NdrServerInitializeUnmarshall(PMIDL_STUB_MESSAGE,PMIDL_STUB_DESC,PRPC_MESSAGE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
508 void NdrServerInitializeMarshall(PRPC_MESSAGE,PMIDL_STUB_MESSAGE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
509 ubyte * NdrGetBuffer(PMIDL_STUB_MESSAGE,uint,RPC_BINDING_HANDLE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
510 ubyte * NdrNsGetBuffer(PMIDL_STUB_MESSAGE,uint,RPC_BINDING_HANDLE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
511 ubyte * NdrSendReceive(PMIDL_STUB_MESSAGE,ubyte*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
512 ubyte * NdrNsSendReceive(PMIDL_STUB_MESSAGE,ubyte*,RPC_BINDING_HANDLE*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
513 void NdrFreeBuffer(PMIDL_STUB_MESSAGE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
514
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
515 CLIENT_CALL_RETURN NdrClientCall(PMIDL_STUB_DESC,PFORMAT_STRING,...);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
516
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
517 int NdrStubCall(IRpcStubBuffer*, IRpcChannelBuffer*,PRPC_MESSAGE,uint*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
518 void NdrServerCall(PRPC_MESSAGE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
519 int NdrServerUnmarshall(IRpcChannelBuffer*, PRPC_MESSAGE,PMIDL_STUB_MESSAGE,PMIDL_STUB_DESC,PFORMAT_STRING,void*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
520 void NdrServerMarshall(IRpcStubBuffer*, IRpcChannelBuffer*,PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
521 RPC_STATUS NdrMapCommAndFaultStatus(PMIDL_STUB_MESSAGE,uint*,uint*,RPC_STATUS);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
522 int NdrSH_UPDecision(PMIDL_STUB_MESSAGE,ubyte**,RPC_BUFPTR);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
523 int NdrSH_TLUPDecision(PMIDL_STUB_MESSAGE,ubyte**);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
524 int NdrSH_TLUPDecisionBuffer(PMIDL_STUB_MESSAGE,ubyte**);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
525 int NdrSH_IfAlloc(PMIDL_STUB_MESSAGE,ubyte**,uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
526 int NdrSH_IfAllocRef(PMIDL_STUB_MESSAGE,ubyte**,uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
527 int NdrSH_IfAllocSet(PMIDL_STUB_MESSAGE,ubyte**,uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
528 RPC_BUFPTR NdrSH_IfCopy(PMIDL_STUB_MESSAGE,ubyte**,uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
529 RPC_BUFPTR NdrSH_IfAllocCopy(PMIDL_STUB_MESSAGE,ubyte**,uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
530 uint NdrSH_Copy(ubyte*,ubyte*,uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
531 void NdrSH_IfFree(PMIDL_STUB_MESSAGE,ubyte*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
532 RPC_BUFPTR NdrSH_StringMarshall(PMIDL_STUB_MESSAGE,ubyte*,uint,int);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
533 RPC_BUFPTR NdrSH_StringUnMarshall(PMIDL_STUB_MESSAGE,ubyte**,int);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
534 void* RpcSsAllocate(uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
535 void RpcSsDisableAllocate();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
536 void RpcSsEnableAllocate();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
537 void RpcSsFree(void*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
538 RPC_SS_THREAD_HANDLE RpcSsGetThreadHandle();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
539 void RpcSsSetClientAllocFree(PRPC_CLIENT_ALLOC,PRPC_CLIENT_FREE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
540 void RpcSsSetThreadHandle(RPC_SS_THREAD_HANDLE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
541 void RpcSsSwapClientAllocFree(PRPC_CLIENT_ALLOC,PRPC_CLIENT_FREE,PRPC_CLIENT_ALLOC*,PRPC_CLIENT_FREE*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
542 void* RpcSmAllocate(uint,RPC_STATUS*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
543 RPC_STATUS RpcSmClientFree(void*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
544 RPC_STATUS RpcSmDestroyClientContext(void**);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
545 RPC_STATUS RpcSmDisableAllocate();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
546 RPC_STATUS RpcSmEnableAllocate();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
547 RPC_STATUS RpcSmFree(void*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
548 RPC_SS_THREAD_HANDLE RpcSmGetThreadHandle(RPC_STATUS*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
549 RPC_STATUS RpcSmSetClientAllocFree(PRPC_CLIENT_ALLOC,PRPC_CLIENT_FREE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
550 RPC_STATUS RpcSmSetThreadHandle(RPC_SS_THREAD_HANDLE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
551 RPC_STATUS RpcSmSwapClientAllocFree(PRPC_CLIENT_ALLOC,PRPC_CLIENT_FREE,PRPC_CLIENT_ALLOC*,PRPC_CLIENT_FREE*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
552 void NdrRpcSsEnableAllocate(PMIDL_STUB_MESSAGE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
553 void NdrRpcSsDisableAllocate(PMIDL_STUB_MESSAGE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
554 void NdrRpcSmSetClientToOsf(PMIDL_STUB_MESSAGE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
555 void* NdrRpcSmClientAllocate(uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
556 void NdrRpcSmClientFree(void*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
557 void* NdrRpcSsDefaultAllocate(uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
558 void NdrRpcSsDefaultFree(void*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
559 PFULL_PTR_XLAT_TABLES NdrFullPointerXlatInit(uint,XLAT_SIDE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
560 void NdrFullPointerXlatFree(PFULL_PTR_XLAT_TABLES);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
561 int NdrFullPointerQueryPointer(PFULL_PTR_XLAT_TABLES,void*,ubyte,uint*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
562 int NdrFullPointerQueryRefId(PFULL_PTR_XLAT_TABLES,uint,ubyte,void**);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
563 void NdrFullPointerInsertRefId(PFULL_PTR_XLAT_TABLES,uint,void*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
564 int NdrFullPointerFree(PFULL_PTR_XLAT_TABLES,void*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
565 void* NdrAllocate(PMIDL_STUB_MESSAGE,uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
566 void NdrClearOutParameters(PMIDL_STUB_MESSAGE,PFORMAT_STRING,void*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
567 void* NdrOleAllocate(uint);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
568 void NdrOleFree(void*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
569 ubyte* NdrUserMarshalMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
570 ubyte* NdrUserMarshalUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
571 void NdrUserMarshalBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
572 uint NdrUserMarshalMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
573 void NdrUserMarshalFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);