home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / certpol.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  10KB  |  315 lines

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2.  
  3.  
  4. /* File created by MIDL compiler version 3.03.0106 */
  5. /* at Mon Aug 04 19:41:40 1997
  6.  */
  7. /* Compiler settings for certpol.idl:
  8.     Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
  9.     error checks: none
  10. */
  11. //@@MIDL_FILE_HEADING(  )
  12.  
  13.  
  14. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  15. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  16. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  17. #endif
  18.  
  19. #include "rpc.h"
  20. #include "rpcndr.h"
  21.  
  22. #ifndef __RPCNDR_H_VERSION__
  23. #error this stub requires an updated version of <rpcndr.h>
  24. #endif // __RPCNDR_H_VERSION__
  25.  
  26. #ifndef COM_NO_WINDOWS_H
  27. #include "windows.h"
  28. #include "ole2.h"
  29. #endif /*COM_NO_WINDOWS_H*/
  30.  
  31. #ifndef __certpol_h__
  32. #define __certpol_h__
  33.  
  34. #ifdef __cplusplus
  35. extern "C"{
  36. #endif 
  37.  
  38. /* Forward Declarations */ 
  39.  
  40. #ifndef __ICertPolicy_FWD_DEFINED__
  41. #define __ICertPolicy_FWD_DEFINED__
  42. typedef interface ICertPolicy ICertPolicy;
  43. #endif     /* __ICertPolicy_FWD_DEFINED__ */
  44.  
  45.  
  46. #ifndef __CCertPolicy_FWD_DEFINED__
  47. #define __CCertPolicy_FWD_DEFINED__
  48.  
  49. #ifdef __cplusplus
  50. typedef class CCertPolicy CCertPolicy;
  51. #else
  52. typedef struct CCertPolicy CCertPolicy;
  53. #endif /* __cplusplus */
  54.  
  55. #endif     /* __CCertPolicy_FWD_DEFINED__ */
  56.  
  57.  
  58. /* header files for imported files */
  59. #include "wtypes.h"
  60. #include "oaidl.h"
  61.  
  62. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  63. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  64.  
  65. #ifndef __ICertPolicy_INTERFACE_DEFINED__
  66. #define __ICertPolicy_INTERFACE_DEFINED__
  67.  
  68. /****************************************
  69.  * Generated header for interface: ICertPolicy
  70.  * at Mon Aug 04 19:41:40 1997
  71.  * using MIDL 3.03.0106
  72.  ****************************************/
  73. /* [unique][helpstring][dual][uuid][object] */ 
  74.  
  75.  
  76.  
  77. EXTERN_C const IID IID_ICertPolicy;
  78.  
  79. #if defined(__cplusplus) && !defined(CINTERFACE)
  80.     
  81.     MIDL_INTERFACE("38bb5a00-7636-11d0-b413-00a0c91bbf8c")
  82.     ICertPolicy : public IDispatch
  83.     {
  84.     public:
  85.         virtual HRESULT STDMETHODCALLTYPE Initialize( 
  86.             /* [in] */ const BSTR strConfig) = 0;
  87.         
  88.         virtual HRESULT STDMETHODCALLTYPE VerifyRequest( 
  89.             /* [in] */ const BSTR strConfig,
  90.             /* [in] */ LONG Context,
  91.             /* [in] */ LONG bNewRequest,
  92.             /* [in] */ LONG Flags,
  93.             /* [retval][out] */ LONG __RPC_FAR *pDisposition) = 0;
  94.         
  95.         virtual HRESULT STDMETHODCALLTYPE GetDescription( 
  96.             /* [retval][out] */ BSTR __RPC_FAR *pstrDescription) = 0;
  97.         
  98.         virtual HRESULT STDMETHODCALLTYPE ShutDown( void) = 0;
  99.         
  100.     };
  101.     
  102. #else     /* C style interface */
  103.  
  104.     typedef struct ICertPolicyVtbl
  105.     {
  106.         BEGIN_INTERFACE
  107.         
  108.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  109.             ICertPolicy __RPC_FAR * This,
  110.             /* [in] */ REFIID riid,
  111.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  112.         
  113.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  114.             ICertPolicy __RPC_FAR * This);
  115.         
  116.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  117.             ICertPolicy __RPC_FAR * This);
  118.         
  119.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  120.             ICertPolicy __RPC_FAR * This,
  121.             /* [out] */ UINT __RPC_FAR *pctinfo);
  122.         
  123.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  124.             ICertPolicy __RPC_FAR * This,
  125.             /* [in] */ UINT iTInfo,
  126.             /* [in] */ LCID lcid,
  127.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  128.         
  129.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  130.             ICertPolicy __RPC_FAR * This,
  131.             /* [in] */ REFIID riid,
  132.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  133.             /* [in] */ UINT cNames,
  134.             /* [in] */ LCID lcid,
  135.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  136.         
  137.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  138.             ICertPolicy __RPC_FAR * This,
  139.             /* [in] */ DISPID dispIdMember,
  140.             /* [in] */ REFIID riid,
  141.             /* [in] */ LCID lcid,
  142.             /* [in] */ WORD wFlags,
  143.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  144.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  145.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  146.             /* [out] */ UINT __RPC_FAR *puArgErr);
  147.         
  148.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Initialize )( 
  149.             ICertPolicy __RPC_FAR * This,
  150.             /* [in] */ const BSTR strConfig);
  151.         
  152.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *VerifyRequest )( 
  153.             ICertPolicy __RPC_FAR * This,
  154.             /* [in] */ const BSTR strConfig,
  155.             /* [in] */ LONG Context,
  156.             /* [in] */ LONG bNewRequest,
  157.             /* [in] */ LONG Flags,
  158.             /* [retval][out] */ LONG __RPC_FAR *pDisposition);
  159.         
  160.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetDescription )( 
  161.             ICertPolicy __RPC_FAR * This,
  162.             /* [retval][out] */ BSTR __RPC_FAR *pstrDescription);
  163.         
  164.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *ShutDown )( 
  165.             ICertPolicy __RPC_FAR * This);
  166.         
  167.         END_INTERFACE
  168.     } ICertPolicyVtbl;
  169.  
  170.     interface ICertPolicy
  171.     {
  172.         CONST_VTBL struct ICertPolicyVtbl __RPC_FAR *lpVtbl;
  173.     };
  174.  
  175.     
  176.  
  177. #ifdef COBJMACROS
  178.  
  179.  
  180. #define ICertPolicy_QueryInterface(This,riid,ppvObject)    \
  181.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  182.  
  183. #define ICertPolicy_AddRef(This)    \
  184.     (This)->lpVtbl -> AddRef(This)
  185.  
  186. #define ICertPolicy_Release(This)    \
  187.     (This)->lpVtbl -> Release(This)
  188.  
  189.  
  190. #define ICertPolicy_GetTypeInfoCount(This,pctinfo)    \
  191.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  192.  
  193. #define ICertPolicy_GetTypeInfo(This,iTInfo,lcid,ppTInfo)    \
  194.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  195.  
  196. #define ICertPolicy_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)    \
  197.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  198.  
  199. #define ICertPolicy_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)    \
  200.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  201.  
  202.  
  203. #define ICertPolicy_Initialize(This,strConfig)    \
  204.     (This)->lpVtbl -> Initialize(This,strConfig)
  205.  
  206. #define ICertPolicy_VerifyRequest(This,strConfig,Context,bNewRequest,Flags,pDisposition)    \
  207.     (This)->lpVtbl -> VerifyRequest(This,strConfig,Context,bNewRequest,Flags,pDisposition)
  208.  
  209. #define ICertPolicy_GetDescription(This,pstrDescription)    \
  210.     (This)->lpVtbl -> GetDescription(This,pstrDescription)
  211.  
  212. #define ICertPolicy_ShutDown(This)    \
  213.     (This)->lpVtbl -> ShutDown(This)
  214.  
  215. #endif /* COBJMACROS */
  216.  
  217.  
  218. #endif     /* C style interface */
  219.  
  220.  
  221.  
  222. HRESULT STDMETHODCALLTYPE ICertPolicy_Initialize_Proxy( 
  223.     ICertPolicy __RPC_FAR * This,
  224.     /* [in] */ const BSTR strConfig);
  225.  
  226.  
  227. void __RPC_STUB ICertPolicy_Initialize_Stub(
  228.     IRpcStubBuffer *This,
  229.     IRpcChannelBuffer *_pRpcChannelBuffer,
  230.     PRPC_MESSAGE _pRpcMessage,
  231.     DWORD *_pdwStubPhase);
  232.  
  233.  
  234. HRESULT STDMETHODCALLTYPE ICertPolicy_VerifyRequest_Proxy( 
  235.     ICertPolicy __RPC_FAR * This,
  236.     /* [in] */ const BSTR strConfig,
  237.     /* [in] */ LONG Context,
  238.     /* [in] */ LONG bNewRequest,
  239.     /* [in] */ LONG Flags,
  240.     /* [retval][out] */ LONG __RPC_FAR *pDisposition);
  241.  
  242.  
  243. void __RPC_STUB ICertPolicy_VerifyRequest_Stub(
  244.     IRpcStubBuffer *This,
  245.     IRpcChannelBuffer *_pRpcChannelBuffer,
  246.     PRPC_MESSAGE _pRpcMessage,
  247.     DWORD *_pdwStubPhase);
  248.  
  249.  
  250. HRESULT STDMETHODCALLTYPE ICertPolicy_GetDescription_Proxy( 
  251.     ICertPolicy __RPC_FAR * This,
  252.     /* [retval][out] */ BSTR __RPC_FAR *pstrDescription);
  253.  
  254.  
  255. void __RPC_STUB ICertPolicy_GetDescription_Stub(
  256.     IRpcStubBuffer *This,
  257.     IRpcChannelBuffer *_pRpcChannelBuffer,
  258.     PRPC_MESSAGE _pRpcMessage,
  259.     DWORD *_pdwStubPhase);
  260.  
  261.  
  262. HRESULT STDMETHODCALLTYPE ICertPolicy_ShutDown_Proxy( 
  263.     ICertPolicy __RPC_FAR * This);
  264.  
  265.  
  266. void __RPC_STUB ICertPolicy_ShutDown_Stub(
  267.     IRpcStubBuffer *This,
  268.     IRpcChannelBuffer *_pRpcChannelBuffer,
  269.     PRPC_MESSAGE _pRpcMessage,
  270.     DWORD *_pdwStubPhase);
  271.  
  272.  
  273.  
  274. #endif     /* __ICertPolicy_INTERFACE_DEFINED__ */
  275.  
  276.  
  277.  
  278. #ifndef __CERTPOLICYLib_LIBRARY_DEFINED__
  279. #define __CERTPOLICYLib_LIBRARY_DEFINED__
  280.  
  281. /****************************************
  282.  * Generated header for library: CERTPOLICYLib
  283.  * at Mon Aug 04 19:41:40 1997
  284.  * using MIDL 3.03.0106
  285.  ****************************************/
  286. /* [helpstring][version][uuid] */ 
  287.  
  288.  
  289.  
  290. EXTERN_C const IID LIBID_CERTPOLICYLib;
  291.  
  292. EXTERN_C const CLSID CLSID_CCertPolicy;
  293.  
  294. #ifdef __cplusplus
  295.  
  296. class DECLSPEC_UUID("3a428a00-7636-11d0-b413-00a0c91bbf8c")
  297. CCertPolicy;
  298. #endif
  299. #endif /* __CERTPOLICYLib_LIBRARY_DEFINED__ */
  300.  
  301. /* Additional Prototypes for ALL interfaces */
  302.  
  303. unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long __RPC_FAR *, unsigned long            , BSTR __RPC_FAR * ); 
  304. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserMarshal(  unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  305. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserUnmarshal(unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  306. void                      __RPC_USER  BSTR_UserFree(     unsigned long __RPC_FAR *, BSTR __RPC_FAR * ); 
  307.  
  308. /* end of Additional Prototypes */
  309.  
  310. #ifdef __cplusplus
  311. }
  312. #endif
  313.  
  314. #endif
  315.