mimeinfo.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  7. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  8. #endif
  9. #include "rpc.h"
  10. #include "rpcndr.h"
  11. #ifndef __RPCNDR_H_VERSION__
  12. #error This stub requires an updated version of <rpcndr.h>
  13. #endif
  14. #ifndef COM_NO_WINDOWS_H
  15. #include "windows.h"
  16. #include "ole2.h"
  17. #endif
  18. #ifndef __mimeinfo_h__
  19. #define __mimeinfo_h__
  20. #ifndef __IMimeInfo_FWD_DEFINED__
  21. #define __IMimeInfo_FWD_DEFINED__
  22. typedef struct IMimeInfo IMimeInfo;
  23. #endif
  24. #include "objidl.h"
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. #ifndef __MIDL_user_allocate_free_DEFINED__
  29. #define __MIDL_user_allocate_free_DEFINED__
  30. void *__RPC_API MIDL_user_allocate(size_t);
  31. void __RPC_API MIDL_user_free(void *);
  32. #endif
  33. extern RPC_IF_HANDLE __MIDL_itf_mimeinfo_0000_v0_0_c_ifspec;
  34. extern RPC_IF_HANDLE __MIDL_itf_mimeinfo_0000_v0_0_s_ifspec;
  35. #ifndef __IMimeInfo_INTERFACE_DEFINED__
  36. #define __IMimeInfo_INTERFACE_DEFINED__
  37. typedef IMimeInfo *LPMIMEINFO;
  38. EXTERN_C const IID IID_IMimeInfo;
  39. #if defined(__cplusplus) && !defined(CINTERFACE)
  40. struct IMimeInfo : public IUnknown {
  41. public:
  42. virtual HRESULT WINAPI GetMimeCLSIDMapping(UINT *pcTypes,LPCSTR **ppszTypes,CLSID **ppclsID) = 0;
  43. };
  44. #else
  45. typedef struct IMimeInfoVtbl {
  46. BEGIN_INTERFACE
  47. HRESULT (WINAPI *QueryInterface)(IMimeInfo *This,REFIID riid,void **ppvObject);
  48. ULONG (WINAPI *AddRef)(IMimeInfo *This);
  49. ULONG (WINAPI *Release)(IMimeInfo *This);
  50. HRESULT (WINAPI *GetMimeCLSIDMapping)(IMimeInfo *This,UINT *pcTypes,LPCSTR **ppszTypes,CLSID **ppclsID);
  51. END_INTERFACE
  52. } IMimeInfoVtbl;
  53. struct IMimeInfo {
  54. CONST_VTBL struct IMimeInfoVtbl *lpVtbl;
  55. };
  56. #ifdef COBJMACROS
  57. #define IMimeInfo_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  58. #define IMimeInfo_AddRef(This) (This)->lpVtbl->AddRef(This)
  59. #define IMimeInfo_Release(This) (This)->lpVtbl->Release(This)
  60. #define IMimeInfo_GetMimeCLSIDMapping(This,pcTypes,ppszTypes,ppclsID) (This)->lpVtbl->GetMimeCLSIDMapping(This,pcTypes,ppszTypes,ppclsID)
  61. #endif
  62. #endif
  63. HRESULT WINAPI IMimeInfo_GetMimeCLSIDMapping_Proxy(IMimeInfo *This,UINT *pcTypes,LPCSTR **ppszTypes,CLSID **ppclsID);
  64. void __RPC_STUB IMimeInfo_GetMimeCLSIDMapping_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  65. #endif
  66. #define SID_IMimeInfo IID_IMimeInfo
  67. extern RPC_IF_HANDLE __MIDL_itf_mimeinfo_0093_v0_0_c_ifspec;
  68. extern RPC_IF_HANDLE __MIDL_itf_mimeinfo_0093_v0_0_s_ifspec;
  69. #ifdef __cplusplus
  70. }
  71. #endif
  72. #endif