1 /*** Autogenerated by WIDL 1.6 from include/wsdattachment.idl - Do not edit ***/ 2 3 #ifndef __REQUIRED_RPCNDR_H_VERSION__ 4 #define __REQUIRED_RPCNDR_H_VERSION__ 475 5 #endif 6 7 #include <rpc.h> 8 #include <rpcndr.h> 9 10 #ifndef COM_NO_WINDOWS_H 11 #include <windows.h> 12 #include <ole2.h> 13 #endif 14 15 #ifndef __wsdattachment_h__ 16 #define __wsdattachment_h__ 17 18 /* Forward declarations */ 19 20 #ifndef __IWSDAttachment_FWD_DEFINED__ 21 #define __IWSDAttachment_FWD_DEFINED__ 22 typedef interface IWSDAttachment IWSDAttachment; 23 #endif 24 25 #ifndef __IWSDInboundAttachment_FWD_DEFINED__ 26 #define __IWSDInboundAttachment_FWD_DEFINED__ 27 typedef interface IWSDInboundAttachment IWSDInboundAttachment; 28 #endif 29 30 #ifndef __IWSDOutboundAttachment_FWD_DEFINED__ 31 #define __IWSDOutboundAttachment_FWD_DEFINED__ 32 typedef interface IWSDOutboundAttachment IWSDOutboundAttachment; 33 #endif 34 35 /* Headers for imported files */ 36 37 #include <objidl.h> 38 39 #ifdef __cplusplus 40 extern "C" { 41 #endif 42 43 #include <winapifamily.h> 44 45 #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) 46 47 #ifndef _INC_WSDAPI 48 #error Please include wsdapi.h instead of this header. This header cannot be used directly. 49 #endif 50 51 #ifndef __IWSDAttachment_FWD_DEFINED__ 52 #define __IWSDAttachment_FWD_DEFINED__ 53 typedef interface IWSDAttachment IWSDAttachment; 54 #endif 55 56 #ifndef __IWSDInboundAttachment_FWD_DEFINED__ 57 #define __IWSDInboundAttachment_FWD_DEFINED__ 58 typedef interface IWSDInboundAttachment IWSDInboundAttachment; 59 #endif 60 61 #ifndef __IWSDOutboundAttachment_FWD_DEFINED__ 62 #define __IWSDOutboundAttachment_FWD_DEFINED__ 63 typedef interface IWSDOutboundAttachment IWSDOutboundAttachment; 64 #endif 65 66 67 /***************************************************************************** 68 * IWSDAttachment interface 69 */ 70 #ifndef __IWSDAttachment_INTERFACE_DEFINED__ 71 #define __IWSDAttachment_INTERFACE_DEFINED__ 72 73 DEFINE_GUID(IID_IWSDAttachment, 0x5d55a616, 0x9df8, 0x4b09, 0xb1,0x56, 0x9b,0xa3,0x51,0xa4,0x8b,0x76); 74 #if defined(__cplusplus) && !defined(CINTERFACE) 75 MIDL_INTERFACE("5d55a616-9df8-4b09-b156-9ba351a48b76") 76 IWSDAttachment : public IUnknown 77 { 78 }; 79 #ifdef __CRT_UUID_DECL 80 __CRT_UUID_DECL(IWSDAttachment, 0x5d55a616, 0x9df8, 0x4b09, 0xb1,0x56, 0x9b,0xa3,0x51,0xa4,0x8b,0x76) 81 #endif 82 #else 83 typedef struct IWSDAttachmentVtbl { 84 BEGIN_INTERFACE 85 86 /*** IUnknown methods ***/ 87 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 88 IWSDAttachment* This, 89 REFIID riid, 90 void **ppvObject); 91 92 ULONG (STDMETHODCALLTYPE *AddRef)( 93 IWSDAttachment* This); 94 95 ULONG (STDMETHODCALLTYPE *Release)( 96 IWSDAttachment* This); 97 98 END_INTERFACE 99 } IWSDAttachmentVtbl; 100 interface IWSDAttachment { 101 CONST_VTBL IWSDAttachmentVtbl* lpVtbl; 102 }; 103 104 #ifdef COBJMACROS 105 #ifndef WIDL_C_INLINE_WRAPPERS 106 /*** IUnknown methods ***/ 107 #define IWSDAttachment_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 108 #define IWSDAttachment_AddRef(This) (This)->lpVtbl->AddRef(This) 109 #define IWSDAttachment_Release(This) (This)->lpVtbl->Release(This) 110 #else 111 /*** IUnknown methods ***/ 112 static FORCEINLINE HRESULT IWSDAttachment_QueryInterface(IWSDAttachment* This,REFIID riid,void **ppvObject) { 113 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 114 } 115 static FORCEINLINE ULONG IWSDAttachment_AddRef(IWSDAttachment* This) { 116 return This->lpVtbl->AddRef(This); 117 } 118 static FORCEINLINE ULONG IWSDAttachment_Release(IWSDAttachment* This) { 119 return This->lpVtbl->Release(This); 120 } 121 #endif 122 #endif 123 124 #endif 125 126 127 #endif /* __IWSDAttachment_INTERFACE_DEFINED__ */ 128 129 130 /***************************************************************************** 131 * IWSDInboundAttachment interface 132 */ 133 #ifndef __IWSDInboundAttachment_INTERFACE_DEFINED__ 134 #define __IWSDInboundAttachment_INTERFACE_DEFINED__ 135 136 DEFINE_GUID(IID_IWSDInboundAttachment, 0x5bd6ca65, 0x233c, 0x4fb8, 0x9f,0x7a, 0x26,0x41,0x61,0x96,0x55,0xc9); 137 #if defined(__cplusplus) && !defined(CINTERFACE) 138 MIDL_INTERFACE("5bd6ca65-233c-4fb8-9f7a-2641619655c9") 139 IWSDInboundAttachment : public IWSDAttachment 140 { 141 virtual HRESULT STDMETHODCALLTYPE Read( 142 BYTE *pBuffer, 143 DWORD dwBytesToRead, 144 LPDWORD pdwNumberOfBytesRead) = 0; 145 146 virtual HRESULT STDMETHODCALLTYPE Close( 147 ) = 0; 148 149 }; 150 #ifdef __CRT_UUID_DECL 151 __CRT_UUID_DECL(IWSDInboundAttachment, 0x5bd6ca65, 0x233c, 0x4fb8, 0x9f,0x7a, 0x26,0x41,0x61,0x96,0x55,0xc9) 152 #endif 153 #else 154 typedef struct IWSDInboundAttachmentVtbl { 155 BEGIN_INTERFACE 156 157 /*** IUnknown methods ***/ 158 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 159 IWSDInboundAttachment* This, 160 REFIID riid, 161 void **ppvObject); 162 163 ULONG (STDMETHODCALLTYPE *AddRef)( 164 IWSDInboundAttachment* This); 165 166 ULONG (STDMETHODCALLTYPE *Release)( 167 IWSDInboundAttachment* This); 168 169 /*** IWSDInboundAttachment methods ***/ 170 HRESULT (STDMETHODCALLTYPE *Read)( 171 IWSDInboundAttachment* This, 172 BYTE *pBuffer, 173 DWORD dwBytesToRead, 174 LPDWORD pdwNumberOfBytesRead); 175 176 HRESULT (STDMETHODCALLTYPE *Close)( 177 IWSDInboundAttachment* This); 178 179 END_INTERFACE 180 } IWSDInboundAttachmentVtbl; 181 interface IWSDInboundAttachment { 182 CONST_VTBL IWSDInboundAttachmentVtbl* lpVtbl; 183 }; 184 185 #ifdef COBJMACROS 186 #ifndef WIDL_C_INLINE_WRAPPERS 187 /*** IUnknown methods ***/ 188 #define IWSDInboundAttachment_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 189 #define IWSDInboundAttachment_AddRef(This) (This)->lpVtbl->AddRef(This) 190 #define IWSDInboundAttachment_Release(This) (This)->lpVtbl->Release(This) 191 /*** IWSDInboundAttachment methods ***/ 192 #define IWSDInboundAttachment_Read(This,pBuffer,dwBytesToRead,pdwNumberOfBytesRead) (This)->lpVtbl->Read(This,pBuffer,dwBytesToRead,pdwNumberOfBytesRead) 193 #define IWSDInboundAttachment_Close(This) (This)->lpVtbl->Close(This) 194 #else 195 /*** IUnknown methods ***/ 196 static FORCEINLINE HRESULT IWSDInboundAttachment_QueryInterface(IWSDInboundAttachment* This,REFIID riid,void **ppvObject) { 197 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 198 } 199 static FORCEINLINE ULONG IWSDInboundAttachment_AddRef(IWSDInboundAttachment* This) { 200 return This->lpVtbl->AddRef(This); 201 } 202 static FORCEINLINE ULONG IWSDInboundAttachment_Release(IWSDInboundAttachment* This) { 203 return This->lpVtbl->Release(This); 204 } 205 /*** IWSDInboundAttachment methods ***/ 206 static FORCEINLINE HRESULT IWSDInboundAttachment_Read(IWSDInboundAttachment* This,BYTE *pBuffer,DWORD dwBytesToRead,LPDWORD pdwNumberOfBytesRead) { 207 return This->lpVtbl->Read(This,pBuffer,dwBytesToRead,pdwNumberOfBytesRead); 208 } 209 static FORCEINLINE HRESULT IWSDInboundAttachment_Close(IWSDInboundAttachment* This) { 210 return This->lpVtbl->Close(This); 211 } 212 #endif 213 #endif 214 215 #endif 216 217 HRESULT STDMETHODCALLTYPE IWSDInboundAttachment_Read_Proxy( 218 IWSDInboundAttachment* This, 219 BYTE *pBuffer, 220 DWORD dwBytesToRead, 221 LPDWORD pdwNumberOfBytesRead); 222 void __RPC_STUB IWSDInboundAttachment_Read_Stub( 223 IRpcStubBuffer* This, 224 IRpcChannelBuffer* pRpcChannelBuffer, 225 PRPC_MESSAGE pRpcMessage, 226 DWORD* pdwStubPhase); 227 HRESULT STDMETHODCALLTYPE IWSDInboundAttachment_Close_Proxy( 228 IWSDInboundAttachment* This); 229 void __RPC_STUB IWSDInboundAttachment_Close_Stub( 230 IRpcStubBuffer* This, 231 IRpcChannelBuffer* pRpcChannelBuffer, 232 PRPC_MESSAGE pRpcMessage, 233 DWORD* pdwStubPhase); 234 235 #endif /* __IWSDInboundAttachment_INTERFACE_DEFINED__ */ 236 237 238 /***************************************************************************** 239 * IWSDOutboundAttachment interface 240 */ 241 #ifndef __IWSDOutboundAttachment_INTERFACE_DEFINED__ 242 #define __IWSDOutboundAttachment_INTERFACE_DEFINED__ 243 244 DEFINE_GUID(IID_IWSDOutboundAttachment, 0xaa302f8d, 0x5a22, 0x4ba5, 0xb3,0x92, 0xaa,0x84,0x86,0xf4,0xc1,0x5d); 245 #if defined(__cplusplus) && !defined(CINTERFACE) 246 MIDL_INTERFACE("aa302f8d-5a22-4ba5-b392-aa8486f4c15d") 247 IWSDOutboundAttachment : public IWSDAttachment 248 { 249 virtual HRESULT STDMETHODCALLTYPE Write( 250 const BYTE *pBuffer, 251 DWORD dwBytesToWrite, 252 LPDWORD pdwNumberOfBytesWritten) = 0; 253 254 virtual HRESULT STDMETHODCALLTYPE Close( 255 ) = 0; 256 257 virtual HRESULT STDMETHODCALLTYPE Abort( 258 ) = 0; 259 260 }; 261 #ifdef __CRT_UUID_DECL 262 __CRT_UUID_DECL(IWSDOutboundAttachment, 0xaa302f8d, 0x5a22, 0x4ba5, 0xb3,0x92, 0xaa,0x84,0x86,0xf4,0xc1,0x5d) 263 #endif 264 #else 265 typedef struct IWSDOutboundAttachmentVtbl { 266 BEGIN_INTERFACE 267 268 /*** IUnknown methods ***/ 269 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 270 IWSDOutboundAttachment* This, 271 REFIID riid, 272 void **ppvObject); 273 274 ULONG (STDMETHODCALLTYPE *AddRef)( 275 IWSDOutboundAttachment* This); 276 277 ULONG (STDMETHODCALLTYPE *Release)( 278 IWSDOutboundAttachment* This); 279 280 /*** IWSDOutboundAttachment methods ***/ 281 HRESULT (STDMETHODCALLTYPE *Write)( 282 IWSDOutboundAttachment* This, 283 const BYTE *pBuffer, 284 DWORD dwBytesToWrite, 285 LPDWORD pdwNumberOfBytesWritten); 286 287 HRESULT (STDMETHODCALLTYPE *Close)( 288 IWSDOutboundAttachment* This); 289 290 HRESULT (STDMETHODCALLTYPE *Abort)( 291 IWSDOutboundAttachment* This); 292 293 END_INTERFACE 294 } IWSDOutboundAttachmentVtbl; 295 interface IWSDOutboundAttachment { 296 CONST_VTBL IWSDOutboundAttachmentVtbl* lpVtbl; 297 }; 298 299 #ifdef COBJMACROS 300 #ifndef WIDL_C_INLINE_WRAPPERS 301 /*** IUnknown methods ***/ 302 #define IWSDOutboundAttachment_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 303 #define IWSDOutboundAttachment_AddRef(This) (This)->lpVtbl->AddRef(This) 304 #define IWSDOutboundAttachment_Release(This) (This)->lpVtbl->Release(This) 305 /*** IWSDOutboundAttachment methods ***/ 306 #define IWSDOutboundAttachment_Write(This,pBuffer,dwBytesToWrite,pdwNumberOfBytesWritten) (This)->lpVtbl->Write(This,pBuffer,dwBytesToWrite,pdwNumberOfBytesWritten) 307 #define IWSDOutboundAttachment_Close(This) (This)->lpVtbl->Close(This) 308 #define IWSDOutboundAttachment_Abort(This) (This)->lpVtbl->Abort(This) 309 #else 310 /*** IUnknown methods ***/ 311 static FORCEINLINE HRESULT IWSDOutboundAttachment_QueryInterface(IWSDOutboundAttachment* This,REFIID riid,void **ppvObject) { 312 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 313 } 314 static FORCEINLINE ULONG IWSDOutboundAttachment_AddRef(IWSDOutboundAttachment* This) { 315 return This->lpVtbl->AddRef(This); 316 } 317 static FORCEINLINE ULONG IWSDOutboundAttachment_Release(IWSDOutboundAttachment* This) { 318 return This->lpVtbl->Release(This); 319 } 320 /*** IWSDOutboundAttachment methods ***/ 321 static FORCEINLINE HRESULT IWSDOutboundAttachment_Write(IWSDOutboundAttachment* This,const BYTE *pBuffer,DWORD dwBytesToWrite,LPDWORD pdwNumberOfBytesWritten) { 322 return This->lpVtbl->Write(This,pBuffer,dwBytesToWrite,pdwNumberOfBytesWritten); 323 } 324 static FORCEINLINE HRESULT IWSDOutboundAttachment_Close(IWSDOutboundAttachment* This) { 325 return This->lpVtbl->Close(This); 326 } 327 static FORCEINLINE HRESULT IWSDOutboundAttachment_Abort(IWSDOutboundAttachment* This) { 328 return This->lpVtbl->Abort(This); 329 } 330 #endif 331 #endif 332 333 #endif 334 335 HRESULT STDMETHODCALLTYPE IWSDOutboundAttachment_Write_Proxy( 336 IWSDOutboundAttachment* This, 337 const BYTE *pBuffer, 338 DWORD dwBytesToWrite, 339 LPDWORD pdwNumberOfBytesWritten); 340 void __RPC_STUB IWSDOutboundAttachment_Write_Stub( 341 IRpcStubBuffer* This, 342 IRpcChannelBuffer* pRpcChannelBuffer, 343 PRPC_MESSAGE pRpcMessage, 344 DWORD* pdwStubPhase); 345 HRESULT STDMETHODCALLTYPE IWSDOutboundAttachment_Close_Proxy( 346 IWSDOutboundAttachment* This); 347 void __RPC_STUB IWSDOutboundAttachment_Close_Stub( 348 IRpcStubBuffer* This, 349 IRpcChannelBuffer* pRpcChannelBuffer, 350 PRPC_MESSAGE pRpcMessage, 351 DWORD* pdwStubPhase); 352 HRESULT STDMETHODCALLTYPE IWSDOutboundAttachment_Abort_Proxy( 353 IWSDOutboundAttachment* This); 354 void __RPC_STUB IWSDOutboundAttachment_Abort_Stub( 355 IRpcStubBuffer* This, 356 IRpcChannelBuffer* pRpcChannelBuffer, 357 PRPC_MESSAGE pRpcMessage, 358 DWORD* pdwStubPhase); 359 360 #endif /* __IWSDOutboundAttachment_INTERFACE_DEFINED__ */ 361 362 363 HRESULT WINAPI WSDCreateOutboundAttachment(IWSDOutboundAttachment **ppAttachment); 364 #endif 365 /* Begin additional prototypes for all interfaces */ 366 367 368 /* End additional prototypes */ 369 370 #ifdef __cplusplus 371 } 372 #endif 373 374 #endif /* __wsdattachment_h__ */ 375