a94b24d1370b03e527a20dfc5ef4fa7bae45008f
[mat/samba.git] / testprogs / win32 / rpcecho-win32-pipe / rpcecho.h
1
2
3 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
4
5
6  /* File created by MIDL compiler version 7.00.0555 */
7 /* at Fri Sep 20 18:05:28 2013
8  */
9 /* Compiler settings for rpcecho.idl, rpcecho.acf:
10     Oicf, W1, Zp8, env=Win64 (32b run), target_arch=AMD64 7.00.0555
11     protocol : dce , ms_ext, c_ext, robust
12     error checks: allocation ref bounds_check enum stub_data
13     VC __declspec() decoration level:
14          __declspec(uuid()), __declspec(selectany), __declspec(novtable)
15          DECLSPEC_UUID(), MIDL_INTERFACE()
16 */
17 /* @@MIDL_FILE_HEADING(  ) */
18
19 #pragma warning( disable: 4049 )  /* more than 64k source lines */
20
21
22 /* verify that the <rpcndr.h> version is high enough to compile this file*/
23 #ifndef __REQUIRED_RPCNDR_H_VERSION__
24 #define __REQUIRED_RPCNDR_H_VERSION__ 475
25 #endif
26
27 #include "rpc.h"
28 #include "rpcndr.h"
29
30 #ifndef __RPCNDR_H_VERSION__
31 #error this stub requires an updated version of <rpcndr.h>
32 #endif // __RPCNDR_H_VERSION__
33
34
35 #ifndef __rpcecho_h__
36 #define __rpcecho_h__
37
38 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
39 #pragma once
40 #endif
41
42 /* Forward Declarations */
43
44 #ifdef __cplusplus
45 extern "C"{
46 #endif
47
48
49 #ifndef __rpcecho_INTERFACE_DEFINED__
50 #define __rpcecho_INTERFACE_DEFINED__
51
52 /* interface rpcecho */
53 /* [implicit_handle][unique][version][uuid] */
54
55 void AddOne(
56     /* [in] */ long in_data,
57     /* [out] */ int *out_data);
58
59 void EchoData(
60     /* [in] */ int len,
61     /* [size_is][in] */ unsigned char in_data[  ],
62     /* [size_is][out] */ unsigned char out_data[  ]);
63
64 void SinkData(
65     /* [in] */ int len,
66     /* [size_is][in] */ unsigned char in_data[  ]);
67
68 void SourceData(
69     /* [in] */ int len,
70     /* [size_is][out] */ unsigned char out_data[  ]);
71
72 #define myconstant      ( 42 )
73
74 void TestCall(
75     /* [string][in] */ wchar_t **s1,
76     /* [string][out] */ wchar_t **s2);
77
78 typedef /* [public][public][public][public][public][public] */ struct __MIDL_rpcecho_0001
79     {
80     unsigned char v;
81     }   echo_info1;
82
83 typedef /* [public][public][public] */ struct __MIDL_rpcecho_0002
84     {
85     short v;
86     }   echo_info2;
87
88 typedef /* [public][public][public] */ struct __MIDL_rpcecho_0003
89     {
90     long v;
91     }   echo_info3;
92
93 typedef /* [public][public][public][public][public][public] */ struct __MIDL_rpcecho_0004
94     {
95     hyper v;
96     }   echo_info4;
97
98 typedef /* [public][public][public] */ struct __MIDL_rpcecho_0005
99     {
100     unsigned char v1;
101     hyper v2;
102     }   echo_info5;
103
104 typedef /* [public][public][public] */ struct __MIDL_rpcecho_0006
105     {
106     unsigned char v1;
107     echo_info1 info1;
108     }   echo_info6;
109
110 typedef /* [public][public][public] */ struct __MIDL_rpcecho_0007
111     {
112     unsigned char v1;
113     echo_info4 info4;
114     }   echo_info7;
115
116 typedef /* [public][public] */ /* [switch_type] */ union __MIDL_rpcecho_0008
117     {
118     echo_info1 info1;
119     echo_info2 info2;
120     echo_info3 info3;
121     echo_info4 info4;
122     echo_info5 info5;
123     echo_info6 info6;
124     echo_info7 info7;
125     }   echo_Info;
126
127 long TestCall2(
128     /* [in] */ short level,
129     /* [switch_is][out] */ echo_Info **info);
130
131 long TestSleep(
132     /* [in] */ long seconds);
133
134 typedef /* [public][public][public][public][public][public][public][public] */
135 enum __MIDL_rpcecho_0009
136     {   ECHO_ENUM1      = 1,
137         ECHO_ENUM2      = 2
138     }   Enum1;
139
140 typedef /* [public][public][public][public][public][v1_enum] */
141 enum __MIDL_rpcecho_0010
142     {   ECHO_ENUM1_32   = 1,
143         ECHO_ENUM2_32   = 2
144     }   Enum1_32;
145
146 typedef /* [public][public][public][public] */ struct __MIDL_rpcecho_0011
147     {
148     Enum1 e1;
149     Enum1_32 e2;
150     }   Enum2;
151
152 typedef /* [public][public] */ /* [switch_type] */ union __MIDL_rpcecho_0012
153     {
154     Enum1 e1;
155     Enum2 e2;
156     }   Enum3;
157
158 void TestEnum(
159     /* [ref][out][in] */ Enum1 *foo1,
160     /* [ref][out][in] */ Enum2 *foo2,
161     /* [switch_is][ref][out][in] */ Enum3 *foo3);
162
163 typedef /* [public][public] */ struct __MIDL_rpcecho_0013
164     {
165     long x;
166     short surrounding[ 1 ];
167     }   Surrounding;
168
169 void TestSurrounding(
170     /* [ref][out][in] */ Surrounding *data);
171
172 short TestDoublePointer(
173     /* [ref][in] */ short ***data);
174
175 typedef struct ASYNC_pipe_BYTE_PIPE
176     {
177     RPC_STATUS (__RPC_USER * pull) (
178         char * state,
179         byte * buf,
180         unsigned long esize,
181         unsigned long * ecount );
182     RPC_STATUS (__RPC_USER * push) (
183         char * state,
184         byte * buf,
185         unsigned long ecount );
186     RPC_STATUS (__RPC_USER * alloc) (
187         char * state,
188         unsigned long bsize,
189         byte * * buf,
190         unsigned long * bcount );
191     char * state;
192     }   ASYNC_BYTE_PIPE;
193
194 typedef struct pipe_BYTE_PIPE
195     {
196     void (__RPC_USER * pull) (
197         char * state,
198         byte * buf,
199         unsigned long esize,
200         unsigned long * ecount );
201     void (__RPC_USER * push) (
202         char * state,
203         byte * buf,
204         unsigned long ecount );
205     void (__RPC_USER * alloc) (
206         char * state,
207         unsigned long bsize,
208         byte * * buf,
209         unsigned long * bcount );
210     char * state;
211     }   BYTE_PIPE;
212
213 /* [async] */ void  TestBytePipeIn(
214     /* [in] */ PRPC_ASYNC_STATE TestBytePipeIn_AsyncHandle,
215     /* [in] */ long count,
216     /* [ref][in] */ ASYNC_BYTE_PIPE *in_pipe);
217
218
219 extern handle_t rpcecho_IfHandle;
220
221
222 extern RPC_IF_HANDLE rpcecho_v1_0_c_ifspec;
223 extern RPC_IF_HANDLE rpcecho_v1_0_s_ifspec;
224 #endif /* __rpcecho_INTERFACE_DEFINED__ */
225
226 /* Additional Prototypes for ALL interfaces */
227
228 /* end of Additional Prototypes */
229
230 #ifdef __cplusplus
231 }
232 #endif
233
234 #endif