VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/midles.h@ 33252

Last change on this file since 33252 was 16477, checked in by vboxsync, 16 years ago

LGPL disclaimer by filemuncher

  • Property svn:eol-style set to native
File size: 4.8 KB
Line 
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
36extern "C" {
37#endif
38
39typedef enum
40{
41 MES_ENCODE,
42 MES_DECODE
43} MIDL_ES_CODE;
44
45typedef enum
46{
47 MES_INCREMENTAL_HANDLE,
48 MES_FIXED_BUFFER_HANDLE,
49 MES_DYNAMIC_BUFFER_HANDLE
50} MIDL_ES_HANDLE_STYLE;
51
52typedef void (__RPC_USER * MIDL_ES_ALLOC)(void *,char **,unsigned int *);
53typedef void (__RPC_USER * MIDL_ES_WRITE)(void *,char *,unsigned int);
54typedef void (__RPC_USER * MIDL_ES_READ)(void *,char **,unsigned int *);
55
56typedef 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
79typedef PMIDL_ES_MESSAGE MIDL_ES_HANDLE;
80
81typedef 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
88RPC_STATUS RPC_ENTRY
89 MesEncodeIncrementalHandleCreate(void *,MIDL_ES_ALLOC,MIDL_ES_WRITE,handle_t *);
90RPC_STATUS RPC_ENTRY
91 MesDecodeIncrementalHandleCreate(void *,MIDL_ES_READ,handle_t *);
92RPC_STATUS RPC_ENTRY
93 MesIncrementalHandleReset(handle_t,void *,MIDL_ES_ALLOC,MIDL_ES_WRITE,MIDL_ES_READ,MIDL_ES_CODE);
94
95RPC_STATUS RPC_ENTRY
96 MesEncodeFixedBufferHandleCreate(char *,ULONG,ULONG *,handle_t *);
97RPC_STATUS RPC_ENTRY
98 MesEncodeDynBufferHandleCreate(char **,ULONG *,handle_t *);
99RPC_STATUS RPC_ENTRY
100 MesDecodeBufferHandleCreate(char *,ULONG,handle_t *);
101RPC_STATUS RPC_ENTRY
102 MesBufferHandleReset(handle_t,ULONG,MIDL_ES_CODE,char **,ULONG,ULONG *);
103
104RPC_STATUS RPC_ENTRY
105 MesHandleFree(handle_t);
106
107RPC_STATUS RPC_ENTRY
108 MesInqProcEncodingId(handle_t,PRPC_SYNTAX_IDENTIFIER,ULONG *);
109
110SIZE_T RPC_ENTRY
111 NdrMesSimpleTypeAlignSize(handle_t);
112void RPC_ENTRY
113 NdrMesSimpleTypeDecode(handle_t,void *,short);
114void RPC_ENTRY
115 NdrMesSimpleTypeEncode(handle_t,const MIDL_STUB_DESC *,const void *,short);
116
117SIZE_T RPC_ENTRY
118 NdrMesTypeAlignSize(handle_t,const MIDL_STUB_DESC *,PFORMAT_STRING,const void *);
119void RPC_ENTRY
120 NdrMesTypeEncode(handle_t,const MIDL_STUB_DESC *,PFORMAT_STRING,const void *);
121void RPC_ENTRY
122 NdrMesTypeDecode(handle_t,const MIDL_STUB_DESC *,PFORMAT_STRING,void *);
123
124SIZE_T RPC_ENTRY
125 NdrMesTypeAlignSize2(handle_t,const MIDL_TYPE_PICKLING_INFO *,const MIDL_STUB_DESC *,PFORMAT_STRING,const void *);
126void RPC_ENTRY
127 NdrMesTypeEncode2(handle_t,const MIDL_TYPE_PICKLING_INFO *,const MIDL_STUB_DESC *,PFORMAT_STRING,const void *);
128void RPC_ENTRY
129 NdrMesTypeDecode2(handle_t,const MIDL_TYPE_PICKLING_INFO *,const MIDL_STUB_DESC *,PFORMAT_STRING,void *);
130void RPC_ENTRY
131 NdrMesTypeFree2(handle_t,const MIDL_TYPE_PICKLING_INFO *,const MIDL_STUB_DESC *,PFORMAT_STRING,void *);
132
133void RPC_VAR_ENTRY
134 NdrMesProcEncodeDecode(handle_t,const MIDL_STUB_DESC *,PFORMAT_STRING,...);
135CLIENT_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__ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette