certmod.h 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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__ 475
  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 __certmod_h__
  19. #define __certmod_h__
  20. #ifndef __ICertManageModule_FWD_DEFINED__
  21. #define __ICertManageModule_FWD_DEFINED__
  22. typedef struct ICertManageModule ICertManageModule;
  23. #endif
  24. #include "wtypes.h"
  25. #include "oaidl.h"
  26. #ifdef __cplusplus
  27. extern "C"{
  28. #endif
  29. #ifndef __MIDL_user_allocate_free_DEFINED__
  30. #define __MIDL_user_allocate_free_DEFINED__
  31. void *__RPC_API MIDL_user_allocate(size_t);
  32. void __RPC_API MIDL_user_free(void *);
  33. #endif
  34. #define CMM_REFRESHONLY (0x1)
  35. #define CMM_READONLY (0x2)
  36. const WCHAR wszCMM_PROP_NAME[] = L"Name";
  37. const WCHAR wszCMM_PROP_DESCRIPTION[] = L"Description";
  38. const WCHAR wszCMM_PROP_COPYRIGHT[] = L"Copyright";
  39. const WCHAR wszCMM_PROP_FILEVER[] = L"File Version";
  40. const WCHAR wszCMM_PROP_PRODUCTVER[] = L"Product Version";
  41. const WCHAR wszCMM_PROP_DISPLAY_HWND[] = L"HWND";
  42. const WCHAR wszCMM_PROP_ISMULTITHREADED[] = L"IsMultiThreaded";
  43. extern RPC_IF_HANDLE __MIDL_itf_certmod_0000_v0_0_c_ifspec;
  44. extern RPC_IF_HANDLE __MIDL_itf_certmod_0000_v0_0_s_ifspec;
  45. #ifndef __ICertManageModule_INTERFACE_DEFINED__
  46. #define __ICertManageModule_INTERFACE_DEFINED__
  47. EXTERN_C const IID IID_ICertManageModule;
  48. #if defined(__cplusplus) && !defined(CINTERFACE)
  49. struct ICertManageModule : public IDispatch {
  50. public:
  51. virtual HRESULT WINAPI GetProperty(const BSTR strConfig,BSTR strStorageLocation,BSTR strPropertyName,LONG Flags,VARIANT *pvarProperty) = 0;
  52. virtual HRESULT WINAPI SetProperty(const BSTR strConfig,BSTR strStorageLocation,BSTR strPropertyName,LONG Flags,const VARIANT *pvarProperty) = 0;
  53. virtual HRESULT WINAPI Configure(const BSTR strConfig,BSTR strStorageLocation,LONG Flags) = 0;
  54. };
  55. #else
  56. typedef struct ICertManageModuleVtbl {
  57. BEGIN_INTERFACE
  58. HRESULT (WINAPI *QueryInterface)(ICertManageModule *This,REFIID riid,void **ppvObject);
  59. ULONG (WINAPI *AddRef)(ICertManageModule *This);
  60. ULONG (WINAPI *Release)(ICertManageModule *This);
  61. HRESULT (WINAPI *GetTypeInfoCount)(ICertManageModule *This,UINT *pctinfo);
  62. HRESULT (WINAPI *GetTypeInfo)(ICertManageModule *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  63. HRESULT (WINAPI *GetIDsOfNames)(ICertManageModule *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  64. HRESULT (WINAPI *Invoke)(ICertManageModule *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  65. HRESULT (WINAPI *GetProperty)(ICertManageModule *This,const BSTR strConfig,BSTR strStorageLocation,BSTR strPropertyName,LONG Flags,VARIANT *pvarProperty);
  66. HRESULT (WINAPI *SetProperty)(ICertManageModule *This,const BSTR strConfig,BSTR strStorageLocation,BSTR strPropertyName,LONG Flags,const VARIANT *pvarProperty);
  67. HRESULT (WINAPI *Configure)(ICertManageModule *This,const BSTR strConfig,BSTR strStorageLocation,LONG Flags);
  68. END_INTERFACE
  69. } ICertManageModuleVtbl;
  70. struct ICertManageModule {
  71. CONST_VTBL struct ICertManageModuleVtbl *lpVtbl;
  72. };
  73. #ifdef COBJMACROS
  74. #define ICertManageModule_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  75. #define ICertManageModule_AddRef(This) (This)->lpVtbl->AddRef(This)
  76. #define ICertManageModule_Release(This) (This)->lpVtbl->Release(This)
  77. #define ICertManageModule_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  78. #define ICertManageModule_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  79. #define ICertManageModule_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  80. #define ICertManageModule_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  81. #define ICertManageModule_GetProperty(This,strConfig,strStorageLocation,strPropertyName,Flags,pvarProperty) (This)->lpVtbl->GetProperty(This,strConfig,strStorageLocation,strPropertyName,Flags,pvarProperty)
  82. #define ICertManageModule_SetProperty(This,strConfig,strStorageLocation,strPropertyName,Flags,pvarProperty) (This)->lpVtbl->SetProperty(This,strConfig,strStorageLocation,strPropertyName,Flags,pvarProperty)
  83. #define ICertManageModule_Configure(This,strConfig,strStorageLocation,Flags) (This)->lpVtbl->Configure(This,strConfig,strStorageLocation,Flags)
  84. #endif
  85. #endif
  86. HRESULT WINAPI ICertManageModule_GetProperty_Proxy(ICertManageModule *This,const BSTR strConfig,BSTR strStorageLocation,BSTR strPropertyName,LONG Flags,VARIANT *pvarProperty);
  87. void __RPC_STUB ICertManageModule_GetProperty_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  88. HRESULT WINAPI ICertManageModule_SetProperty_Proxy(ICertManageModule *This,const BSTR strConfig,BSTR strStorageLocation,BSTR strPropertyName,LONG Flags,const VARIANT *pvarProperty);
  89. void __RPC_STUB ICertManageModule_SetProperty_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  90. HRESULT WINAPI ICertManageModule_Configure_Proxy(ICertManageModule *This,const BSTR strConfig,BSTR strStorageLocation,LONG Flags);
  91. void __RPC_STUB ICertManageModule_Configure_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  92. #endif
  93. ULONG __RPC_API BSTR_UserSize(ULONG *,ULONG,BSTR *);
  94. unsigned char *__RPC_API BSTR_UserMarshal(ULONG *,unsigned char *,BSTR *);
  95. unsigned char *__RPC_API BSTR_UserUnmarshal(ULONG *,unsigned char *,BSTR *);
  96. void __RPC_API BSTR_UserFree(ULONG *,BSTR *);
  97. ULONG __RPC_API VARIANT_UserSize(ULONG *,ULONG,VARIANT *);
  98. unsigned char *__RPC_API VARIANT_UserMarshal(ULONG *,unsigned char *,VARIANT *);
  99. unsigned char *__RPC_API VARIANT_UserUnmarshal(ULONG *,unsigned char *,VARIANT *);
  100. void __RPC_API VARIANT_UserFree(ULONG *,VARIANT *);
  101. #ifdef __cplusplus
  102. }
  103. #endif
  104. #endif