1 | /*
|
---|
2 | * NDR Serialization Services
|
---|
3 | *
|
---|
4 | * Copyright (c) 2007 Robert Shearman for CodeWeavers
|
---|
5 | *
|
---|
6 | * This library is free software; you can redistribute it and/or
|
---|
7 | * modify it under the terms of the GNU Lesser General Public
|
---|
8 | * License as published by the Free Software Foundation; either
|
---|
9 | * version 2.1 of the License, or (at your option) any later version.
|
---|
10 | *
|
---|
11 | * This library is distributed in the hope that it will be useful,
|
---|
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
14 | * Lesser General Public License for more details.
|
---|
15 | *
|
---|
16 | * You should have received a copy of the GNU Lesser General Public
|
---|
17 | * License along with this library; if not, write to the Free Software
|
---|
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
19 | */
|
---|
20 |
|
---|
21 | /*
|
---|
22 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
23 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
24 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
25 | * a choice of LGPL license versions is made available with the language indicating
|
---|
26 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
27 | * of the LGPL is applied is otherwise unspecified.
|
---|
28 | */
|
---|
29 |
|
---|
30 | #ifndef __WINE_MIDLES_H__
|
---|
31 | #define __WINE_MIDLES_H__
|
---|
32 |
|
---|
33 | #include <rpcndr.h>
|
---|
34 |
|
---|
35 | #ifdef __cplusplus
|
---|
36 | extern "C" {
|
---|
37 | #endif
|
---|
38 |
|
---|
39 | typedef enum
|
---|
40 | {
|
---|
41 | MES_ENCODE,
|
---|
42 | MES_DECODE
|
---|
43 | } MIDL_ES_CODE;
|
---|
44 |
|
---|
45 | typedef enum
|
---|
46 | {
|
---|
47 | MES_INCREMENTAL_HANDLE,
|
---|
48 | MES_FIXED_BUFFER_HANDLE,
|
---|
49 | MES_DYNAMIC_BUFFER_HANDLE
|
---|
50 | } MIDL_ES_HANDLE_STYLE;
|
---|
51 |
|
---|
52 | typedef void (__RPC_USER * MIDL_ES_ALLOC)(void *,char **,unsigned int *);
|
---|
53 | typedef void (__RPC_USER * MIDL_ES_WRITE)(void *,char *,unsigned int);
|
---|
54 | typedef void (__RPC_USER * MIDL_ES_READ)(void *,char **,unsigned int *);
|
---|
55 |
|
---|
56 | typedef struct _MIDL_ES_MESSAGE
|
---|
57 | {
|
---|
58 | MIDL_STUB_MESSAGE StubMsg;
|
---|
59 | MIDL_ES_CODE Operation;
|
---|
60 | void *UserState;
|
---|
61 | ULONG MesVersion : 8;
|
---|
62 | ULONG HandleStyle : 8;
|
---|
63 | ULONG HandleFlags : 8;
|
---|
64 | ULONG Reserve : 8;
|
---|
65 | MIDL_ES_ALLOC Alloc;
|
---|
66 | MIDL_ES_WRITE Write;
|
---|
67 | MIDL_ES_READ Read;
|
---|
68 | unsigned char *Buffer;
|
---|
69 | ULONG BufferSize;
|
---|
70 | unsigned char **pDynBuffer;
|
---|
71 | ULONG *pEncodedSize;
|
---|
72 | RPC_SYNTAX_IDENTIFIER InterfaceId;
|
---|
73 | ULONG ProcNumber;
|
---|
74 | ULONG AlienDataRep;
|
---|
75 | ULONG IncrDataSize;
|
---|
76 | ULONG ByteCount;
|
---|
77 | } MIDL_ES_MESSAGE, *PMIDL_ES_MESSAGE;
|
---|
78 |
|
---|
79 | typedef PMIDL_ES_MESSAGE MIDL_ES_HANDLE;
|
---|
80 |
|
---|
81 | typedef struct _MIDL_TYPE_PICKLING_INFO
|
---|
82 | {
|
---|
83 | ULONG Version;
|
---|
84 | ULONG Flags;
|
---|
85 | UINT_PTR Reserved[3];
|
---|
86 | } MIDL_TYPE_PICKLING_INFO, *PMIDL_TYPE_PICKLING_INFO;
|
---|
87 |
|
---|
88 | RPC_STATUS RPC_ENTRY
|
---|
89 | MesEncodeIncrementalHandleCreate(void *,MIDL_ES_ALLOC,MIDL_ES_WRITE,handle_t *);
|
---|
90 | RPC_STATUS RPC_ENTRY
|
---|
91 | MesDecodeIncrementalHandleCreate(void *,MIDL_ES_READ,handle_t *);
|
---|
92 | RPC_STATUS RPC_ENTRY
|
---|
93 | MesIncrementalHandleReset(handle_t,void *,MIDL_ES_ALLOC,MIDL_ES_WRITE,MIDL_ES_READ,MIDL_ES_CODE);
|
---|
94 |
|
---|
95 | RPC_STATUS RPC_ENTRY
|
---|
96 | MesEncodeFixedBufferHandleCreate(char *,ULONG,ULONG *,handle_t *);
|
---|
97 | RPC_STATUS RPC_ENTRY
|
---|
98 | MesEncodeDynBufferHandleCreate(char **,ULONG *,handle_t *);
|
---|
99 | RPC_STATUS RPC_ENTRY
|
---|
100 | MesDecodeBufferHandleCreate(char *,ULONG,handle_t *);
|
---|
101 | RPC_STATUS RPC_ENTRY
|
---|
102 | MesBufferHandleReset(handle_t,ULONG,MIDL_ES_CODE,char **,ULONG,ULONG *);
|
---|
103 |
|
---|
104 | RPC_STATUS RPC_ENTRY
|
---|
105 | MesHandleFree(handle_t);
|
---|
106 |
|
---|
107 | RPC_STATUS RPC_ENTRY
|
---|
108 | MesInqProcEncodingId(handle_t,PRPC_SYNTAX_IDENTIFIER,ULONG *);
|
---|
109 |
|
---|
110 | SIZE_T RPC_ENTRY
|
---|
111 | NdrMesSimpleTypeAlignSize(handle_t);
|
---|
112 | void RPC_ENTRY
|
---|
113 | NdrMesSimpleTypeDecode(handle_t,void *,short);
|
---|
114 | void RPC_ENTRY
|
---|
115 | NdrMesSimpleTypeEncode(handle_t,const MIDL_STUB_DESC *,const void *,short);
|
---|
116 |
|
---|
117 | SIZE_T RPC_ENTRY
|
---|
118 | NdrMesTypeAlignSize(handle_t,const MIDL_STUB_DESC *,PFORMAT_STRING,const void *);
|
---|
119 | void RPC_ENTRY
|
---|
120 | NdrMesTypeEncode(handle_t,const MIDL_STUB_DESC *,PFORMAT_STRING,const void *);
|
---|
121 | void RPC_ENTRY
|
---|
122 | NdrMesTypeDecode(handle_t,const MIDL_STUB_DESC *,PFORMAT_STRING,void *);
|
---|
123 |
|
---|
124 | SIZE_T RPC_ENTRY
|
---|
125 | NdrMesTypeAlignSize2(handle_t,const MIDL_TYPE_PICKLING_INFO *,const MIDL_STUB_DESC *,PFORMAT_STRING,const void *);
|
---|
126 | void RPC_ENTRY
|
---|
127 | NdrMesTypeEncode2(handle_t,const MIDL_TYPE_PICKLING_INFO *,const MIDL_STUB_DESC *,PFORMAT_STRING,const void *);
|
---|
128 | void RPC_ENTRY
|
---|
129 | NdrMesTypeDecode2(handle_t,const MIDL_TYPE_PICKLING_INFO *,const MIDL_STUB_DESC *,PFORMAT_STRING,void *);
|
---|
130 | void RPC_ENTRY
|
---|
131 | NdrMesTypeFree2(handle_t,const MIDL_TYPE_PICKLING_INFO *,const MIDL_STUB_DESC *,PFORMAT_STRING,void *);
|
---|
132 |
|
---|
133 | void RPC_VAR_ENTRY
|
---|
134 | NdrMesProcEncodeDecode(handle_t,const MIDL_STUB_DESC *,PFORMAT_STRING,...);
|
---|
135 | CLIENT_CALL_RETURN RPC_VAR_ENTRY
|
---|
136 | NdrMesProcEncodeDeocde2(handle_t,const MIDL_STUB_DESC *,PFORMAT_STRING,...);
|
---|
137 |
|
---|
138 | #ifdef __cplusplus
|
---|
139 | }
|
---|
140 | #endif
|
---|
141 |
|
---|
142 | #endif /* __WINE_MIDLES_H__ */
|
---|