ComSvcs.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:546k
源码类别:

模拟服务器

开发平台:

C/C++

  1.     /* [in] */ DWORD dwActCnt,
  2.     /* [in] */ DWORD dwLowCnt);
  3. void __RPC_STUB IComThreadEvents_OnThreadBindToApartment_Stub(
  4.     IRpcStubBuffer *This,
  5.     IRpcChannelBuffer *_pRpcChannelBuffer,
  6.     PRPC_MESSAGE _pRpcMessage,
  7.     DWORD *_pdwStubPhase);
  8. HRESULT STDMETHODCALLTYPE IComThreadEvents_OnThreadUnBind_Proxy( 
  9.     IComThreadEvents * This,
  10.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  11.     /* [in] */ ULONG64 ThreadID,
  12.     /* [in] */ ULONG64 AptID,
  13.     /* [in] */ DWORD dwActCnt);
  14. void __RPC_STUB IComThreadEvents_OnThreadUnBind_Stub(
  15.     IRpcStubBuffer *This,
  16.     IRpcChannelBuffer *_pRpcChannelBuffer,
  17.     PRPC_MESSAGE _pRpcMessage,
  18.     DWORD *_pdwStubPhase);
  19. HRESULT STDMETHODCALLTYPE IComThreadEvents_OnThreadWorkEnque_Proxy( 
  20.     IComThreadEvents * This,
  21.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  22.     /* [in] */ ULONG64 ThreadID,
  23.     /* [in] */ ULONG64 MsgWorkID,
  24.     /* [in] */ DWORD QueueLen);
  25. void __RPC_STUB IComThreadEvents_OnThreadWorkEnque_Stub(
  26.     IRpcStubBuffer *This,
  27.     IRpcChannelBuffer *_pRpcChannelBuffer,
  28.     PRPC_MESSAGE _pRpcMessage,
  29.     DWORD *_pdwStubPhase);
  30. HRESULT STDMETHODCALLTYPE IComThreadEvents_OnThreadWorkPrivate_Proxy( 
  31.     IComThreadEvents * This,
  32.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  33.     /* [in] */ ULONG64 ThreadID,
  34.     /* [in] */ ULONG64 MsgWorkID);
  35. void __RPC_STUB IComThreadEvents_OnThreadWorkPrivate_Stub(
  36.     IRpcStubBuffer *This,
  37.     IRpcChannelBuffer *_pRpcChannelBuffer,
  38.     PRPC_MESSAGE _pRpcMessage,
  39.     DWORD *_pdwStubPhase);
  40. HRESULT STDMETHODCALLTYPE IComThreadEvents_OnThreadWorkPublic_Proxy( 
  41.     IComThreadEvents * This,
  42.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  43.     /* [in] */ ULONG64 ThreadID,
  44.     /* [in] */ ULONG64 MsgWorkID,
  45.     /* [in] */ DWORD QueueLen);
  46. void __RPC_STUB IComThreadEvents_OnThreadWorkPublic_Stub(
  47.     IRpcStubBuffer *This,
  48.     IRpcChannelBuffer *_pRpcChannelBuffer,
  49.     PRPC_MESSAGE _pRpcMessage,
  50.     DWORD *_pdwStubPhase);
  51. HRESULT STDMETHODCALLTYPE IComThreadEvents_OnThreadWorkRedirect_Proxy( 
  52.     IComThreadEvents * This,
  53.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  54.     /* [in] */ ULONG64 ThreadID,
  55.     /* [in] */ ULONG64 MsgWorkID,
  56.     /* [in] */ DWORD QueueLen,
  57.     /* [in] */ ULONG64 ThreadNum);
  58. void __RPC_STUB IComThreadEvents_OnThreadWorkRedirect_Stub(
  59.     IRpcStubBuffer *This,
  60.     IRpcChannelBuffer *_pRpcChannelBuffer,
  61.     PRPC_MESSAGE _pRpcMessage,
  62.     DWORD *_pdwStubPhase);
  63. HRESULT STDMETHODCALLTYPE IComThreadEvents_OnThreadWorkReject_Proxy( 
  64.     IComThreadEvents * This,
  65.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  66.     /* [in] */ ULONG64 ThreadID,
  67.     /* [in] */ ULONG64 MsgWorkID,
  68.     /* [in] */ DWORD QueueLen);
  69. void __RPC_STUB IComThreadEvents_OnThreadWorkReject_Stub(
  70.     IRpcStubBuffer *This,
  71.     IRpcChannelBuffer *_pRpcChannelBuffer,
  72.     PRPC_MESSAGE _pRpcMessage,
  73.     DWORD *_pdwStubPhase);
  74. HRESULT STDMETHODCALLTYPE IComThreadEvents_OnThreadAssignApartment_Proxy( 
  75.     IComThreadEvents * This,
  76.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  77.     /* [in] */ REFGUID guidActivity,
  78.     /* [in] */ ULONG64 AptID);
  79. void __RPC_STUB IComThreadEvents_OnThreadAssignApartment_Stub(
  80.     IRpcStubBuffer *This,
  81.     IRpcChannelBuffer *_pRpcChannelBuffer,
  82.     PRPC_MESSAGE _pRpcMessage,
  83.     DWORD *_pdwStubPhase);
  84. HRESULT STDMETHODCALLTYPE IComThreadEvents_OnThreadUnassignApartment_Proxy( 
  85.     IComThreadEvents * This,
  86.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  87.     /* [in] */ ULONG64 AptID);
  88. void __RPC_STUB IComThreadEvents_OnThreadUnassignApartment_Stub(
  89.     IRpcStubBuffer *This,
  90.     IRpcChannelBuffer *_pRpcChannelBuffer,
  91.     PRPC_MESSAGE _pRpcMessage,
  92.     DWORD *_pdwStubPhase);
  93. #endif  /* __IComThreadEvents_INTERFACE_DEFINED__ */
  94. #ifndef __IComAppEvents_INTERFACE_DEFINED__
  95. #define __IComAppEvents_INTERFACE_DEFINED__
  96. /* interface IComAppEvents */
  97. /* [uuid][hidden][object] */ 
  98. EXTERN_C const IID IID_IComAppEvents;
  99. #if defined(__cplusplus) && !defined(CINTERFACE)
  100.     
  101.     MIDL_INTERFACE("683130A6-2E50-11d2-98A5-00C04F8EE1C4")
  102.     IComAppEvents : public IUnknown
  103.     {
  104.     public:
  105.         virtual HRESULT STDMETHODCALLTYPE OnAppActivation( 
  106.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  107.             /* [in] */ GUID guidApp) = 0;
  108.         
  109.         virtual HRESULT STDMETHODCALLTYPE OnAppShutdown( 
  110.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  111.             /* [in] */ GUID guidApp) = 0;
  112.         
  113.         virtual HRESULT STDMETHODCALLTYPE OnAppForceShutdown( 
  114.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  115.             /* [in] */ GUID guidApp) = 0;
  116.         
  117.     };
  118.     
  119. #else  /* C style interface */
  120.     typedef struct IComAppEventsVtbl
  121.     {
  122.         BEGIN_INTERFACE
  123.         
  124.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  125.             IComAppEvents * This,
  126.             /* [in] */ REFIID riid,
  127.             /* [iid_is][out] */ void **ppvObject);
  128.         
  129.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  130.             IComAppEvents * This);
  131.         
  132.         ULONG ( STDMETHODCALLTYPE *Release )( 
  133.             IComAppEvents * This);
  134.         
  135.         HRESULT ( STDMETHODCALLTYPE *OnAppActivation )( 
  136.             IComAppEvents * This,
  137.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  138.             /* [in] */ GUID guidApp);
  139.         
  140.         HRESULT ( STDMETHODCALLTYPE *OnAppShutdown )( 
  141.             IComAppEvents * This,
  142.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  143.             /* [in] */ GUID guidApp);
  144.         
  145.         HRESULT ( STDMETHODCALLTYPE *OnAppForceShutdown )( 
  146.             IComAppEvents * This,
  147.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  148.             /* [in] */ GUID guidApp);
  149.         
  150.         END_INTERFACE
  151.     } IComAppEventsVtbl;
  152.     interface IComAppEvents
  153.     {
  154.         CONST_VTBL struct IComAppEventsVtbl *lpVtbl;
  155.     };
  156.     
  157. #ifdef COBJMACROS
  158. #define IComAppEvents_QueryInterface(This,riid,ppvObject)
  159.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  160. #define IComAppEvents_AddRef(This)
  161.     (This)->lpVtbl -> AddRef(This)
  162. #define IComAppEvents_Release(This)
  163.     (This)->lpVtbl -> Release(This)
  164. #define IComAppEvents_OnAppActivation(This,pInfo,guidApp)
  165.     (This)->lpVtbl -> OnAppActivation(This,pInfo,guidApp)
  166. #define IComAppEvents_OnAppShutdown(This,pInfo,guidApp)
  167.     (This)->lpVtbl -> OnAppShutdown(This,pInfo,guidApp)
  168. #define IComAppEvents_OnAppForceShutdown(This,pInfo,guidApp)
  169.     (This)->lpVtbl -> OnAppForceShutdown(This,pInfo,guidApp)
  170. #endif /* COBJMACROS */
  171. #endif  /* C style interface */
  172. HRESULT STDMETHODCALLTYPE IComAppEvents_OnAppActivation_Proxy( 
  173.     IComAppEvents * This,
  174.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  175.     /* [in] */ GUID guidApp);
  176. void __RPC_STUB IComAppEvents_OnAppActivation_Stub(
  177.     IRpcStubBuffer *This,
  178.     IRpcChannelBuffer *_pRpcChannelBuffer,
  179.     PRPC_MESSAGE _pRpcMessage,
  180.     DWORD *_pdwStubPhase);
  181. HRESULT STDMETHODCALLTYPE IComAppEvents_OnAppShutdown_Proxy( 
  182.     IComAppEvents * This,
  183.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  184.     /* [in] */ GUID guidApp);
  185. void __RPC_STUB IComAppEvents_OnAppShutdown_Stub(
  186.     IRpcStubBuffer *This,
  187.     IRpcChannelBuffer *_pRpcChannelBuffer,
  188.     PRPC_MESSAGE _pRpcMessage,
  189.     DWORD *_pdwStubPhase);
  190. HRESULT STDMETHODCALLTYPE IComAppEvents_OnAppForceShutdown_Proxy( 
  191.     IComAppEvents * This,
  192.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  193.     /* [in] */ GUID guidApp);
  194. void __RPC_STUB IComAppEvents_OnAppForceShutdown_Stub(
  195.     IRpcStubBuffer *This,
  196.     IRpcChannelBuffer *_pRpcChannelBuffer,
  197.     PRPC_MESSAGE _pRpcMessage,
  198.     DWORD *_pdwStubPhase);
  199. #endif  /* __IComAppEvents_INTERFACE_DEFINED__ */
  200. #ifndef __IComInstanceEvents_INTERFACE_DEFINED__
  201. #define __IComInstanceEvents_INTERFACE_DEFINED__
  202. /* interface IComInstanceEvents */
  203. /* [uuid][hidden][object] */ 
  204. EXTERN_C const IID IID_IComInstanceEvents;
  205. #if defined(__cplusplus) && !defined(CINTERFACE)
  206.     
  207.     MIDL_INTERFACE("683130A7-2E50-11d2-98A5-00C04F8EE1C4")
  208.     IComInstanceEvents : public IUnknown
  209.     {
  210.     public:
  211.         virtual HRESULT STDMETHODCALLTYPE OnObjectCreate( 
  212.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  213.             /* [in] */ REFGUID guidActivity,
  214.             /* [in] */ REFCLSID clsid,
  215.             /* [in] */ REFGUID tsid,
  216.             /* [in] */ ULONG64 CtxtID,
  217.             /* [in] */ ULONG64 ObjectID) = 0;
  218.         
  219.         virtual HRESULT STDMETHODCALLTYPE OnObjectDestroy( 
  220.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  221.             /* [in] */ ULONG64 CtxtID) = 0;
  222.         
  223.     };
  224.     
  225. #else  /* C style interface */
  226.     typedef struct IComInstanceEventsVtbl
  227.     {
  228.         BEGIN_INTERFACE
  229.         
  230.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  231.             IComInstanceEvents * This,
  232.             /* [in] */ REFIID riid,
  233.             /* [iid_is][out] */ void **ppvObject);
  234.         
  235.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  236.             IComInstanceEvents * This);
  237.         
  238.         ULONG ( STDMETHODCALLTYPE *Release )( 
  239.             IComInstanceEvents * This);
  240.         
  241.         HRESULT ( STDMETHODCALLTYPE *OnObjectCreate )( 
  242.             IComInstanceEvents * This,
  243.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  244.             /* [in] */ REFGUID guidActivity,
  245.             /* [in] */ REFCLSID clsid,
  246.             /* [in] */ REFGUID tsid,
  247.             /* [in] */ ULONG64 CtxtID,
  248.             /* [in] */ ULONG64 ObjectID);
  249.         
  250.         HRESULT ( STDMETHODCALLTYPE *OnObjectDestroy )( 
  251.             IComInstanceEvents * This,
  252.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  253.             /* [in] */ ULONG64 CtxtID);
  254.         
  255.         END_INTERFACE
  256.     } IComInstanceEventsVtbl;
  257.     interface IComInstanceEvents
  258.     {
  259.         CONST_VTBL struct IComInstanceEventsVtbl *lpVtbl;
  260.     };
  261.     
  262. #ifdef COBJMACROS
  263. #define IComInstanceEvents_QueryInterface(This,riid,ppvObject)
  264.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  265. #define IComInstanceEvents_AddRef(This)
  266.     (This)->lpVtbl -> AddRef(This)
  267. #define IComInstanceEvents_Release(This)
  268.     (This)->lpVtbl -> Release(This)
  269. #define IComInstanceEvents_OnObjectCreate(This,pInfo,guidActivity,clsid,tsid,CtxtID,ObjectID)
  270.     (This)->lpVtbl -> OnObjectCreate(This,pInfo,guidActivity,clsid,tsid,CtxtID,ObjectID)
  271. #define IComInstanceEvents_OnObjectDestroy(This,pInfo,CtxtID)
  272.     (This)->lpVtbl -> OnObjectDestroy(This,pInfo,CtxtID)
  273. #endif /* COBJMACROS */
  274. #endif  /* C style interface */
  275. HRESULT STDMETHODCALLTYPE IComInstanceEvents_OnObjectCreate_Proxy( 
  276.     IComInstanceEvents * This,
  277.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  278.     /* [in] */ REFGUID guidActivity,
  279.     /* [in] */ REFCLSID clsid,
  280.     /* [in] */ REFGUID tsid,
  281.     /* [in] */ ULONG64 CtxtID,
  282.     /* [in] */ ULONG64 ObjectID);
  283. void __RPC_STUB IComInstanceEvents_OnObjectCreate_Stub(
  284.     IRpcStubBuffer *This,
  285.     IRpcChannelBuffer *_pRpcChannelBuffer,
  286.     PRPC_MESSAGE _pRpcMessage,
  287.     DWORD *_pdwStubPhase);
  288. HRESULT STDMETHODCALLTYPE IComInstanceEvents_OnObjectDestroy_Proxy( 
  289.     IComInstanceEvents * This,
  290.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  291.     /* [in] */ ULONG64 CtxtID);
  292. void __RPC_STUB IComInstanceEvents_OnObjectDestroy_Stub(
  293.     IRpcStubBuffer *This,
  294.     IRpcChannelBuffer *_pRpcChannelBuffer,
  295.     PRPC_MESSAGE _pRpcMessage,
  296.     DWORD *_pdwStubPhase);
  297. #endif  /* __IComInstanceEvents_INTERFACE_DEFINED__ */
  298. #ifndef __IComTransactionEvents_INTERFACE_DEFINED__
  299. #define __IComTransactionEvents_INTERFACE_DEFINED__
  300. /* interface IComTransactionEvents */
  301. /* [uuid][hidden][object] */ 
  302. EXTERN_C const IID IID_IComTransactionEvents;
  303. #if defined(__cplusplus) && !defined(CINTERFACE)
  304.     
  305.     MIDL_INTERFACE("683130A8-2E50-11d2-98A5-00C04F8EE1C4")
  306.     IComTransactionEvents : public IUnknown
  307.     {
  308.     public:
  309.         virtual HRESULT STDMETHODCALLTYPE OnTransactionStart( 
  310.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  311.             /* [in] */ REFGUID guidTx,
  312.             /* [in] */ REFGUID tsid,
  313.             /* [in] */ BOOL fRoot) = 0;
  314.         
  315.         virtual HRESULT STDMETHODCALLTYPE OnTransactionPrepare( 
  316.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  317.             /* [in] */ REFGUID guidTx,
  318.             /* [in] */ BOOL fVoteYes) = 0;
  319.         
  320.         virtual HRESULT STDMETHODCALLTYPE OnTransactionAbort( 
  321.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  322.             /* [in] */ REFGUID guidTx) = 0;
  323.         
  324.         virtual HRESULT STDMETHODCALLTYPE OnTransactionCommit( 
  325.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  326.             /* [in] */ REFGUID guidTx) = 0;
  327.         
  328.     };
  329.     
  330. #else  /* C style interface */
  331.     typedef struct IComTransactionEventsVtbl
  332.     {
  333.         BEGIN_INTERFACE
  334.         
  335.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  336.             IComTransactionEvents * This,
  337.             /* [in] */ REFIID riid,
  338.             /* [iid_is][out] */ void **ppvObject);
  339.         
  340.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  341.             IComTransactionEvents * This);
  342.         
  343.         ULONG ( STDMETHODCALLTYPE *Release )( 
  344.             IComTransactionEvents * This);
  345.         
  346.         HRESULT ( STDMETHODCALLTYPE *OnTransactionStart )( 
  347.             IComTransactionEvents * This,
  348.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  349.             /* [in] */ REFGUID guidTx,
  350.             /* [in] */ REFGUID tsid,
  351.             /* [in] */ BOOL fRoot);
  352.         
  353.         HRESULT ( STDMETHODCALLTYPE *OnTransactionPrepare )( 
  354.             IComTransactionEvents * This,
  355.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  356.             /* [in] */ REFGUID guidTx,
  357.             /* [in] */ BOOL fVoteYes);
  358.         
  359.         HRESULT ( STDMETHODCALLTYPE *OnTransactionAbort )( 
  360.             IComTransactionEvents * This,
  361.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  362.             /* [in] */ REFGUID guidTx);
  363.         
  364.         HRESULT ( STDMETHODCALLTYPE *OnTransactionCommit )( 
  365.             IComTransactionEvents * This,
  366.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  367.             /* [in] */ REFGUID guidTx);
  368.         
  369.         END_INTERFACE
  370.     } IComTransactionEventsVtbl;
  371.     interface IComTransactionEvents
  372.     {
  373.         CONST_VTBL struct IComTransactionEventsVtbl *lpVtbl;
  374.     };
  375.     
  376. #ifdef COBJMACROS
  377. #define IComTransactionEvents_QueryInterface(This,riid,ppvObject)
  378.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  379. #define IComTransactionEvents_AddRef(This)
  380.     (This)->lpVtbl -> AddRef(This)
  381. #define IComTransactionEvents_Release(This)
  382.     (This)->lpVtbl -> Release(This)
  383. #define IComTransactionEvents_OnTransactionStart(This,pInfo,guidTx,tsid,fRoot)
  384.     (This)->lpVtbl -> OnTransactionStart(This,pInfo,guidTx,tsid,fRoot)
  385. #define IComTransactionEvents_OnTransactionPrepare(This,pInfo,guidTx,fVoteYes)
  386.     (This)->lpVtbl -> OnTransactionPrepare(This,pInfo,guidTx,fVoteYes)
  387. #define IComTransactionEvents_OnTransactionAbort(This,pInfo,guidTx)
  388.     (This)->lpVtbl -> OnTransactionAbort(This,pInfo,guidTx)
  389. #define IComTransactionEvents_OnTransactionCommit(This,pInfo,guidTx)
  390.     (This)->lpVtbl -> OnTransactionCommit(This,pInfo,guidTx)
  391. #endif /* COBJMACROS */
  392. #endif  /* C style interface */
  393. HRESULT STDMETHODCALLTYPE IComTransactionEvents_OnTransactionStart_Proxy( 
  394.     IComTransactionEvents * This,
  395.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  396.     /* [in] */ REFGUID guidTx,
  397.     /* [in] */ REFGUID tsid,
  398.     /* [in] */ BOOL fRoot);
  399. void __RPC_STUB IComTransactionEvents_OnTransactionStart_Stub(
  400.     IRpcStubBuffer *This,
  401.     IRpcChannelBuffer *_pRpcChannelBuffer,
  402.     PRPC_MESSAGE _pRpcMessage,
  403.     DWORD *_pdwStubPhase);
  404. HRESULT STDMETHODCALLTYPE IComTransactionEvents_OnTransactionPrepare_Proxy( 
  405.     IComTransactionEvents * This,
  406.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  407.     /* [in] */ REFGUID guidTx,
  408.     /* [in] */ BOOL fVoteYes);
  409. void __RPC_STUB IComTransactionEvents_OnTransactionPrepare_Stub(
  410.     IRpcStubBuffer *This,
  411.     IRpcChannelBuffer *_pRpcChannelBuffer,
  412.     PRPC_MESSAGE _pRpcMessage,
  413.     DWORD *_pdwStubPhase);
  414. HRESULT STDMETHODCALLTYPE IComTransactionEvents_OnTransactionAbort_Proxy( 
  415.     IComTransactionEvents * This,
  416.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  417.     /* [in] */ REFGUID guidTx);
  418. void __RPC_STUB IComTransactionEvents_OnTransactionAbort_Stub(
  419.     IRpcStubBuffer *This,
  420.     IRpcChannelBuffer *_pRpcChannelBuffer,
  421.     PRPC_MESSAGE _pRpcMessage,
  422.     DWORD *_pdwStubPhase);
  423. HRESULT STDMETHODCALLTYPE IComTransactionEvents_OnTransactionCommit_Proxy( 
  424.     IComTransactionEvents * This,
  425.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  426.     /* [in] */ REFGUID guidTx);
  427. void __RPC_STUB IComTransactionEvents_OnTransactionCommit_Stub(
  428.     IRpcStubBuffer *This,
  429.     IRpcChannelBuffer *_pRpcChannelBuffer,
  430.     PRPC_MESSAGE _pRpcMessage,
  431.     DWORD *_pdwStubPhase);
  432. #endif  /* __IComTransactionEvents_INTERFACE_DEFINED__ */
  433. #ifndef __IComMethodEvents_INTERFACE_DEFINED__
  434. #define __IComMethodEvents_INTERFACE_DEFINED__
  435. /* interface IComMethodEvents */
  436. /* [uuid][hidden][object] */ 
  437. EXTERN_C const IID IID_IComMethodEvents;
  438. #if defined(__cplusplus) && !defined(CINTERFACE)
  439.     
  440.     MIDL_INTERFACE("683130A9-2E50-11d2-98A5-00C04F8EE1C4")
  441.     IComMethodEvents : public IUnknown
  442.     {
  443.     public:
  444.         virtual HRESULT STDMETHODCALLTYPE OnMethodCall( 
  445.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  446.             /* [in] */ ULONG64 oid,
  447.             /* [in] */ REFCLSID guidCid,
  448.             /* [in] */ REFIID guidRid,
  449.             /* [in] */ ULONG iMeth) = 0;
  450.         
  451.         virtual HRESULT STDMETHODCALLTYPE OnMethodReturn( 
  452.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  453.             /* [in] */ ULONG64 oid,
  454.             /* [in] */ REFCLSID guidCid,
  455.             /* [in] */ REFIID guidRid,
  456.             /* [in] */ ULONG iMeth,
  457.             /* [in] */ HRESULT hresult) = 0;
  458.         
  459.         virtual HRESULT STDMETHODCALLTYPE OnMethodException( 
  460.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  461.             /* [in] */ ULONG64 oid,
  462.             /* [in] */ REFCLSID guidCid,
  463.             /* [in] */ REFIID guidRid,
  464.             /* [in] */ ULONG iMeth) = 0;
  465.         
  466.     };
  467.     
  468. #else  /* C style interface */
  469.     typedef struct IComMethodEventsVtbl
  470.     {
  471.         BEGIN_INTERFACE
  472.         
  473.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  474.             IComMethodEvents * This,
  475.             /* [in] */ REFIID riid,
  476.             /* [iid_is][out] */ void **ppvObject);
  477.         
  478.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  479.             IComMethodEvents * This);
  480.         
  481.         ULONG ( STDMETHODCALLTYPE *Release )( 
  482.             IComMethodEvents * This);
  483.         
  484.         HRESULT ( STDMETHODCALLTYPE *OnMethodCall )( 
  485.             IComMethodEvents * This,
  486.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  487.             /* [in] */ ULONG64 oid,
  488.             /* [in] */ REFCLSID guidCid,
  489.             /* [in] */ REFIID guidRid,
  490.             /* [in] */ ULONG iMeth);
  491.         
  492.         HRESULT ( STDMETHODCALLTYPE *OnMethodReturn )( 
  493.             IComMethodEvents * This,
  494.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  495.             /* [in] */ ULONG64 oid,
  496.             /* [in] */ REFCLSID guidCid,
  497.             /* [in] */ REFIID guidRid,
  498.             /* [in] */ ULONG iMeth,
  499.             /* [in] */ HRESULT hresult);
  500.         
  501.         HRESULT ( STDMETHODCALLTYPE *OnMethodException )( 
  502.             IComMethodEvents * This,
  503.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  504.             /* [in] */ ULONG64 oid,
  505.             /* [in] */ REFCLSID guidCid,
  506.             /* [in] */ REFIID guidRid,
  507.             /* [in] */ ULONG iMeth);
  508.         
  509.         END_INTERFACE
  510.     } IComMethodEventsVtbl;
  511.     interface IComMethodEvents
  512.     {
  513.         CONST_VTBL struct IComMethodEventsVtbl *lpVtbl;
  514.     };
  515.     
  516. #ifdef COBJMACROS
  517. #define IComMethodEvents_QueryInterface(This,riid,ppvObject)
  518.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  519. #define IComMethodEvents_AddRef(This)
  520.     (This)->lpVtbl -> AddRef(This)
  521. #define IComMethodEvents_Release(This)
  522.     (This)->lpVtbl -> Release(This)
  523. #define IComMethodEvents_OnMethodCall(This,pInfo,oid,guidCid,guidRid,iMeth)
  524.     (This)->lpVtbl -> OnMethodCall(This,pInfo,oid,guidCid,guidRid,iMeth)
  525. #define IComMethodEvents_OnMethodReturn(This,pInfo,oid,guidCid,guidRid,iMeth,hresult)
  526.     (This)->lpVtbl -> OnMethodReturn(This,pInfo,oid,guidCid,guidRid,iMeth,hresult)
  527. #define IComMethodEvents_OnMethodException(This,pInfo,oid,guidCid,guidRid,iMeth)
  528.     (This)->lpVtbl -> OnMethodException(This,pInfo,oid,guidCid,guidRid,iMeth)
  529. #endif /* COBJMACROS */
  530. #endif  /* C style interface */
  531. HRESULT STDMETHODCALLTYPE IComMethodEvents_OnMethodCall_Proxy( 
  532.     IComMethodEvents * This,
  533.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  534.     /* [in] */ ULONG64 oid,
  535.     /* [in] */ REFCLSID guidCid,
  536.     /* [in] */ REFIID guidRid,
  537.     /* [in] */ ULONG iMeth);
  538. void __RPC_STUB IComMethodEvents_OnMethodCall_Stub(
  539.     IRpcStubBuffer *This,
  540.     IRpcChannelBuffer *_pRpcChannelBuffer,
  541.     PRPC_MESSAGE _pRpcMessage,
  542.     DWORD *_pdwStubPhase);
  543. HRESULT STDMETHODCALLTYPE IComMethodEvents_OnMethodReturn_Proxy( 
  544.     IComMethodEvents * This,
  545.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  546.     /* [in] */ ULONG64 oid,
  547.     /* [in] */ REFCLSID guidCid,
  548.     /* [in] */ REFIID guidRid,
  549.     /* [in] */ ULONG iMeth,
  550.     /* [in] */ HRESULT hresult);
  551. void __RPC_STUB IComMethodEvents_OnMethodReturn_Stub(
  552.     IRpcStubBuffer *This,
  553.     IRpcChannelBuffer *_pRpcChannelBuffer,
  554.     PRPC_MESSAGE _pRpcMessage,
  555.     DWORD *_pdwStubPhase);
  556. HRESULT STDMETHODCALLTYPE IComMethodEvents_OnMethodException_Proxy( 
  557.     IComMethodEvents * This,
  558.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  559.     /* [in] */ ULONG64 oid,
  560.     /* [in] */ REFCLSID guidCid,
  561.     /* [in] */ REFIID guidRid,
  562.     /* [in] */ ULONG iMeth);
  563. void __RPC_STUB IComMethodEvents_OnMethodException_Stub(
  564.     IRpcStubBuffer *This,
  565.     IRpcChannelBuffer *_pRpcChannelBuffer,
  566.     PRPC_MESSAGE _pRpcMessage,
  567.     DWORD *_pdwStubPhase);
  568. #endif  /* __IComMethodEvents_INTERFACE_DEFINED__ */
  569. #ifndef __IComObjectEvents_INTERFACE_DEFINED__
  570. #define __IComObjectEvents_INTERFACE_DEFINED__
  571. /* interface IComObjectEvents */
  572. /* [uuid][hidden][object] */ 
  573. EXTERN_C const IID IID_IComObjectEvents;
  574. #if defined(__cplusplus) && !defined(CINTERFACE)
  575.     
  576.     MIDL_INTERFACE("683130AA-2E50-11d2-98A5-00C04F8EE1C4")
  577.     IComObjectEvents : public IUnknown
  578.     {
  579.     public:
  580.         virtual HRESULT STDMETHODCALLTYPE OnObjectActivate( 
  581.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  582.             /* [in] */ ULONG64 CtxtID,
  583.             /* [in] */ ULONG64 ObjectID) = 0;
  584.         
  585.         virtual HRESULT STDMETHODCALLTYPE OnObjectDeactivate( 
  586.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  587.             /* [in] */ ULONG64 CtxtID,
  588.             /* [in] */ ULONG64 ObjectID) = 0;
  589.         
  590.         virtual HRESULT STDMETHODCALLTYPE OnDisableCommit( 
  591.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  592.             /* [in] */ ULONG64 CtxtID) = 0;
  593.         
  594.         virtual HRESULT STDMETHODCALLTYPE OnEnableCommit( 
  595.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  596.             /* [in] */ ULONG64 CtxtID) = 0;
  597.         
  598.         virtual HRESULT STDMETHODCALLTYPE OnSetComplete( 
  599.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  600.             /* [in] */ ULONG64 CtxtID) = 0;
  601.         
  602.         virtual HRESULT STDMETHODCALLTYPE OnSetAbort( 
  603.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  604.             /* [in] */ ULONG64 CtxtID) = 0;
  605.         
  606.     };
  607.     
  608. #else  /* C style interface */
  609.     typedef struct IComObjectEventsVtbl
  610.     {
  611.         BEGIN_INTERFACE
  612.         
  613.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  614.             IComObjectEvents * This,
  615.             /* [in] */ REFIID riid,
  616.             /* [iid_is][out] */ void **ppvObject);
  617.         
  618.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  619.             IComObjectEvents * This);
  620.         
  621.         ULONG ( STDMETHODCALLTYPE *Release )( 
  622.             IComObjectEvents * This);
  623.         
  624.         HRESULT ( STDMETHODCALLTYPE *OnObjectActivate )( 
  625.             IComObjectEvents * This,
  626.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  627.             /* [in] */ ULONG64 CtxtID,
  628.             /* [in] */ ULONG64 ObjectID);
  629.         
  630.         HRESULT ( STDMETHODCALLTYPE *OnObjectDeactivate )( 
  631.             IComObjectEvents * This,
  632.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  633.             /* [in] */ ULONG64 CtxtID,
  634.             /* [in] */ ULONG64 ObjectID);
  635.         
  636.         HRESULT ( STDMETHODCALLTYPE *OnDisableCommit )( 
  637.             IComObjectEvents * This,
  638.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  639.             /* [in] */ ULONG64 CtxtID);
  640.         
  641.         HRESULT ( STDMETHODCALLTYPE *OnEnableCommit )( 
  642.             IComObjectEvents * This,
  643.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  644.             /* [in] */ ULONG64 CtxtID);
  645.         
  646.         HRESULT ( STDMETHODCALLTYPE *OnSetComplete )( 
  647.             IComObjectEvents * This,
  648.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  649.             /* [in] */ ULONG64 CtxtID);
  650.         
  651.         HRESULT ( STDMETHODCALLTYPE *OnSetAbort )( 
  652.             IComObjectEvents * This,
  653.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  654.             /* [in] */ ULONG64 CtxtID);
  655.         
  656.         END_INTERFACE
  657.     } IComObjectEventsVtbl;
  658.     interface IComObjectEvents
  659.     {
  660.         CONST_VTBL struct IComObjectEventsVtbl *lpVtbl;
  661.     };
  662.     
  663. #ifdef COBJMACROS
  664. #define IComObjectEvents_QueryInterface(This,riid,ppvObject)
  665.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  666. #define IComObjectEvents_AddRef(This)
  667.     (This)->lpVtbl -> AddRef(This)
  668. #define IComObjectEvents_Release(This)
  669.     (This)->lpVtbl -> Release(This)
  670. #define IComObjectEvents_OnObjectActivate(This,pInfo,CtxtID,ObjectID)
  671.     (This)->lpVtbl -> OnObjectActivate(This,pInfo,CtxtID,ObjectID)
  672. #define IComObjectEvents_OnObjectDeactivate(This,pInfo,CtxtID,ObjectID)
  673.     (This)->lpVtbl -> OnObjectDeactivate(This,pInfo,CtxtID,ObjectID)
  674. #define IComObjectEvents_OnDisableCommit(This,pInfo,CtxtID)
  675.     (This)->lpVtbl -> OnDisableCommit(This,pInfo,CtxtID)
  676. #define IComObjectEvents_OnEnableCommit(This,pInfo,CtxtID)
  677.     (This)->lpVtbl -> OnEnableCommit(This,pInfo,CtxtID)
  678. #define IComObjectEvents_OnSetComplete(This,pInfo,CtxtID)
  679.     (This)->lpVtbl -> OnSetComplete(This,pInfo,CtxtID)
  680. #define IComObjectEvents_OnSetAbort(This,pInfo,CtxtID)
  681.     (This)->lpVtbl -> OnSetAbort(This,pInfo,CtxtID)
  682. #endif /* COBJMACROS */
  683. #endif  /* C style interface */
  684. HRESULT STDMETHODCALLTYPE IComObjectEvents_OnObjectActivate_Proxy( 
  685.     IComObjectEvents * This,
  686.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  687.     /* [in] */ ULONG64 CtxtID,
  688.     /* [in] */ ULONG64 ObjectID);
  689. void __RPC_STUB IComObjectEvents_OnObjectActivate_Stub(
  690.     IRpcStubBuffer *This,
  691.     IRpcChannelBuffer *_pRpcChannelBuffer,
  692.     PRPC_MESSAGE _pRpcMessage,
  693.     DWORD *_pdwStubPhase);
  694. HRESULT STDMETHODCALLTYPE IComObjectEvents_OnObjectDeactivate_Proxy( 
  695.     IComObjectEvents * This,
  696.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  697.     /* [in] */ ULONG64 CtxtID,
  698.     /* [in] */ ULONG64 ObjectID);
  699. void __RPC_STUB IComObjectEvents_OnObjectDeactivate_Stub(
  700.     IRpcStubBuffer *This,
  701.     IRpcChannelBuffer *_pRpcChannelBuffer,
  702.     PRPC_MESSAGE _pRpcMessage,
  703.     DWORD *_pdwStubPhase);
  704. HRESULT STDMETHODCALLTYPE IComObjectEvents_OnDisableCommit_Proxy( 
  705.     IComObjectEvents * This,
  706.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  707.     /* [in] */ ULONG64 CtxtID);
  708. void __RPC_STUB IComObjectEvents_OnDisableCommit_Stub(
  709.     IRpcStubBuffer *This,
  710.     IRpcChannelBuffer *_pRpcChannelBuffer,
  711.     PRPC_MESSAGE _pRpcMessage,
  712.     DWORD *_pdwStubPhase);
  713. HRESULT STDMETHODCALLTYPE IComObjectEvents_OnEnableCommit_Proxy( 
  714.     IComObjectEvents * This,
  715.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  716.     /* [in] */ ULONG64 CtxtID);
  717. void __RPC_STUB IComObjectEvents_OnEnableCommit_Stub(
  718.     IRpcStubBuffer *This,
  719.     IRpcChannelBuffer *_pRpcChannelBuffer,
  720.     PRPC_MESSAGE _pRpcMessage,
  721.     DWORD *_pdwStubPhase);
  722. HRESULT STDMETHODCALLTYPE IComObjectEvents_OnSetComplete_Proxy( 
  723.     IComObjectEvents * This,
  724.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  725.     /* [in] */ ULONG64 CtxtID);
  726. void __RPC_STUB IComObjectEvents_OnSetComplete_Stub(
  727.     IRpcStubBuffer *This,
  728.     IRpcChannelBuffer *_pRpcChannelBuffer,
  729.     PRPC_MESSAGE _pRpcMessage,
  730.     DWORD *_pdwStubPhase);
  731. HRESULT STDMETHODCALLTYPE IComObjectEvents_OnSetAbort_Proxy( 
  732.     IComObjectEvents * This,
  733.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  734.     /* [in] */ ULONG64 CtxtID);
  735. void __RPC_STUB IComObjectEvents_OnSetAbort_Stub(
  736.     IRpcStubBuffer *This,
  737.     IRpcChannelBuffer *_pRpcChannelBuffer,
  738.     PRPC_MESSAGE _pRpcMessage,
  739.     DWORD *_pdwStubPhase);
  740. #endif  /* __IComObjectEvents_INTERFACE_DEFINED__ */
  741. #ifndef __IComResourceEvents_INTERFACE_DEFINED__
  742. #define __IComResourceEvents_INTERFACE_DEFINED__
  743. /* interface IComResourceEvents */
  744. /* [uuid][hidden][object] */ 
  745. EXTERN_C const IID IID_IComResourceEvents;
  746. #if defined(__cplusplus) && !defined(CINTERFACE)
  747.     
  748.     MIDL_INTERFACE("683130AB-2E50-11d2-98A5-00C04F8EE1C4")
  749.     IComResourceEvents : public IUnknown
  750.     {
  751.     public:
  752.         virtual HRESULT STDMETHODCALLTYPE OnResourceCreate( 
  753.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  754.             /* [in] */ ULONG64 ObjectID,
  755.             /* [in] */ LPCOLESTR pszType,
  756.             /* [in] */ ULONG64 resId,
  757.             /* [in] */ BOOL enlisted) = 0;
  758.         
  759.         virtual HRESULT STDMETHODCALLTYPE OnResourceAllocate( 
  760.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  761.             /* [in] */ ULONG64 ObjectID,
  762.             /* [in] */ LPCOLESTR pszType,
  763.             /* [in] */ ULONG64 resId,
  764.             /* [in] */ BOOL enlisted,
  765.             /* [in] */ DWORD NumRated,
  766.             /* [in] */ DWORD Rating) = 0;
  767.         
  768.         virtual HRESULT STDMETHODCALLTYPE OnResourceRecycle( 
  769.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  770.             /* [in] */ ULONG64 ObjectID,
  771.             /* [in] */ LPCOLESTR pszType,
  772.             /* [in] */ ULONG64 resId) = 0;
  773.         
  774.         virtual HRESULT STDMETHODCALLTYPE OnResourceDestroy( 
  775.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  776.             /* [in] */ ULONG64 ObjectID,
  777.             /* [in] */ HRESULT hr,
  778.             /* [in] */ LPCOLESTR pszType,
  779.             /* [in] */ ULONG64 resId) = 0;
  780.         
  781.         virtual HRESULT STDMETHODCALLTYPE OnResourceTrack( 
  782.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  783.             /* [in] */ ULONG64 ObjectID,
  784.             /* [in] */ LPCOLESTR pszType,
  785.             /* [in] */ ULONG64 resId,
  786.             /* [in] */ BOOL enlisted) = 0;
  787.         
  788.     };
  789.     
  790. #else  /* C style interface */
  791.     typedef struct IComResourceEventsVtbl
  792.     {
  793.         BEGIN_INTERFACE
  794.         
  795.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  796.             IComResourceEvents * This,
  797.             /* [in] */ REFIID riid,
  798.             /* [iid_is][out] */ void **ppvObject);
  799.         
  800.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  801.             IComResourceEvents * This);
  802.         
  803.         ULONG ( STDMETHODCALLTYPE *Release )( 
  804.             IComResourceEvents * This);
  805.         
  806.         HRESULT ( STDMETHODCALLTYPE *OnResourceCreate )( 
  807.             IComResourceEvents * This,
  808.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  809.             /* [in] */ ULONG64 ObjectID,
  810.             /* [in] */ LPCOLESTR pszType,
  811.             /* [in] */ ULONG64 resId,
  812.             /* [in] */ BOOL enlisted);
  813.         
  814.         HRESULT ( STDMETHODCALLTYPE *OnResourceAllocate )( 
  815.             IComResourceEvents * This,
  816.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  817.             /* [in] */ ULONG64 ObjectID,
  818.             /* [in] */ LPCOLESTR pszType,
  819.             /* [in] */ ULONG64 resId,
  820.             /* [in] */ BOOL enlisted,
  821.             /* [in] */ DWORD NumRated,
  822.             /* [in] */ DWORD Rating);
  823.         
  824.         HRESULT ( STDMETHODCALLTYPE *OnResourceRecycle )( 
  825.             IComResourceEvents * This,
  826.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  827.             /* [in] */ ULONG64 ObjectID,
  828.             /* [in] */ LPCOLESTR pszType,
  829.             /* [in] */ ULONG64 resId);
  830.         
  831.         HRESULT ( STDMETHODCALLTYPE *OnResourceDestroy )( 
  832.             IComResourceEvents * This,
  833.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  834.             /* [in] */ ULONG64 ObjectID,
  835.             /* [in] */ HRESULT hr,
  836.             /* [in] */ LPCOLESTR pszType,
  837.             /* [in] */ ULONG64 resId);
  838.         
  839.         HRESULT ( STDMETHODCALLTYPE *OnResourceTrack )( 
  840.             IComResourceEvents * This,
  841.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  842.             /* [in] */ ULONG64 ObjectID,
  843.             /* [in] */ LPCOLESTR pszType,
  844.             /* [in] */ ULONG64 resId,
  845.             /* [in] */ BOOL enlisted);
  846.         
  847.         END_INTERFACE
  848.     } IComResourceEventsVtbl;
  849.     interface IComResourceEvents
  850.     {
  851.         CONST_VTBL struct IComResourceEventsVtbl *lpVtbl;
  852.     };
  853.     
  854. #ifdef COBJMACROS
  855. #define IComResourceEvents_QueryInterface(This,riid,ppvObject)
  856.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  857. #define IComResourceEvents_AddRef(This)
  858.     (This)->lpVtbl -> AddRef(This)
  859. #define IComResourceEvents_Release(This)
  860.     (This)->lpVtbl -> Release(This)
  861. #define IComResourceEvents_OnResourceCreate(This,pInfo,ObjectID,pszType,resId,enlisted)
  862.     (This)->lpVtbl -> OnResourceCreate(This,pInfo,ObjectID,pszType,resId,enlisted)
  863. #define IComResourceEvents_OnResourceAllocate(This,pInfo,ObjectID,pszType,resId,enlisted,NumRated,Rating)
  864.     (This)->lpVtbl -> OnResourceAllocate(This,pInfo,ObjectID,pszType,resId,enlisted,NumRated,Rating)
  865. #define IComResourceEvents_OnResourceRecycle(This,pInfo,ObjectID,pszType,resId)
  866.     (This)->lpVtbl -> OnResourceRecycle(This,pInfo,ObjectID,pszType,resId)
  867. #define IComResourceEvents_OnResourceDestroy(This,pInfo,ObjectID,hr,pszType,resId)
  868.     (This)->lpVtbl -> OnResourceDestroy(This,pInfo,ObjectID,hr,pszType,resId)
  869. #define IComResourceEvents_OnResourceTrack(This,pInfo,ObjectID,pszType,resId,enlisted)
  870.     (This)->lpVtbl -> OnResourceTrack(This,pInfo,ObjectID,pszType,resId,enlisted)
  871. #endif /* COBJMACROS */
  872. #endif  /* C style interface */
  873. HRESULT STDMETHODCALLTYPE IComResourceEvents_OnResourceCreate_Proxy( 
  874.     IComResourceEvents * This,
  875.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  876.     /* [in] */ ULONG64 ObjectID,
  877.     /* [in] */ LPCOLESTR pszType,
  878.     /* [in] */ ULONG64 resId,
  879.     /* [in] */ BOOL enlisted);
  880. void __RPC_STUB IComResourceEvents_OnResourceCreate_Stub(
  881.     IRpcStubBuffer *This,
  882.     IRpcChannelBuffer *_pRpcChannelBuffer,
  883.     PRPC_MESSAGE _pRpcMessage,
  884.     DWORD *_pdwStubPhase);
  885. HRESULT STDMETHODCALLTYPE IComResourceEvents_OnResourceAllocate_Proxy( 
  886.     IComResourceEvents * This,
  887.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  888.     /* [in] */ ULONG64 ObjectID,
  889.     /* [in] */ LPCOLESTR pszType,
  890.     /* [in] */ ULONG64 resId,
  891.     /* [in] */ BOOL enlisted,
  892.     /* [in] */ DWORD NumRated,
  893.     /* [in] */ DWORD Rating);
  894. void __RPC_STUB IComResourceEvents_OnResourceAllocate_Stub(
  895.     IRpcStubBuffer *This,
  896.     IRpcChannelBuffer *_pRpcChannelBuffer,
  897.     PRPC_MESSAGE _pRpcMessage,
  898.     DWORD *_pdwStubPhase);
  899. HRESULT STDMETHODCALLTYPE IComResourceEvents_OnResourceRecycle_Proxy( 
  900.     IComResourceEvents * This,
  901.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  902.     /* [in] */ ULONG64 ObjectID,
  903.     /* [in] */ LPCOLESTR pszType,
  904.     /* [in] */ ULONG64 resId);
  905. void __RPC_STUB IComResourceEvents_OnResourceRecycle_Stub(
  906.     IRpcStubBuffer *This,
  907.     IRpcChannelBuffer *_pRpcChannelBuffer,
  908.     PRPC_MESSAGE _pRpcMessage,
  909.     DWORD *_pdwStubPhase);
  910. HRESULT STDMETHODCALLTYPE IComResourceEvents_OnResourceDestroy_Proxy( 
  911.     IComResourceEvents * This,
  912.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  913.     /* [in] */ ULONG64 ObjectID,
  914.     /* [in] */ HRESULT hr,
  915.     /* [in] */ LPCOLESTR pszType,
  916.     /* [in] */ ULONG64 resId);
  917. void __RPC_STUB IComResourceEvents_OnResourceDestroy_Stub(
  918.     IRpcStubBuffer *This,
  919.     IRpcChannelBuffer *_pRpcChannelBuffer,
  920.     PRPC_MESSAGE _pRpcMessage,
  921.     DWORD *_pdwStubPhase);
  922. HRESULT STDMETHODCALLTYPE IComResourceEvents_OnResourceTrack_Proxy( 
  923.     IComResourceEvents * This,
  924.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  925.     /* [in] */ ULONG64 ObjectID,
  926.     /* [in] */ LPCOLESTR pszType,
  927.     /* [in] */ ULONG64 resId,
  928.     /* [in] */ BOOL enlisted);
  929. void __RPC_STUB IComResourceEvents_OnResourceTrack_Stub(
  930.     IRpcStubBuffer *This,
  931.     IRpcChannelBuffer *_pRpcChannelBuffer,
  932.     PRPC_MESSAGE _pRpcMessage,
  933.     DWORD *_pdwStubPhase);
  934. #endif  /* __IComResourceEvents_INTERFACE_DEFINED__ */
  935. #ifndef __IComSecurityEvents_INTERFACE_DEFINED__
  936. #define __IComSecurityEvents_INTERFACE_DEFINED__
  937. /* interface IComSecurityEvents */
  938. /* [uuid][hidden][object] */ 
  939. EXTERN_C const IID IID_IComSecurityEvents;
  940. #if defined(__cplusplus) && !defined(CINTERFACE)
  941.     
  942.     MIDL_INTERFACE("683130AC-2E50-11d2-98A5-00C04F8EE1C4")
  943.     IComSecurityEvents : public IUnknown
  944.     {
  945.     public:
  946.         virtual HRESULT STDMETHODCALLTYPE OnAuthenticate( 
  947.             COMSVCSEVENTINFO *pInfo,
  948.             REFGUID guidActivity,
  949.             ULONG64 ObjectID,
  950.             REFGUID guidIID,
  951.             ULONG iMeth,
  952.             ULONG cbByteOrig,
  953.             /* [size_is][in] */ BYTE *pSidOriginalUser,
  954.             ULONG cbByteCur,
  955.             /* [size_is][in] */ BYTE *pSidCurrentUser,
  956.             BOOL bCurrentUserInpersonatingInProc) = 0;
  957.         
  958.         virtual HRESULT STDMETHODCALLTYPE OnAuthenticateFail( 
  959.             COMSVCSEVENTINFO *pInfo,
  960.             REFGUID guidActivity,
  961.             ULONG64 ObjectID,
  962.             REFGUID guidIID,
  963.             ULONG iMeth,
  964.             ULONG cbByteOrig,
  965.             /* [size_is][in] */ BYTE *pSidOriginalUser,
  966.             ULONG cbByteCur,
  967.             /* [size_is][in] */ BYTE *pSidCurrentUser,
  968.             BOOL bCurrentUserInpersonatingInProc) = 0;
  969.         
  970.     };
  971.     
  972. #else  /* C style interface */
  973.     typedef struct IComSecurityEventsVtbl
  974.     {
  975.         BEGIN_INTERFACE
  976.         
  977.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  978.             IComSecurityEvents * This,
  979.             /* [in] */ REFIID riid,
  980.             /* [iid_is][out] */ void **ppvObject);
  981.         
  982.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  983.             IComSecurityEvents * This);
  984.         
  985.         ULONG ( STDMETHODCALLTYPE *Release )( 
  986.             IComSecurityEvents * This);
  987.         
  988.         HRESULT ( STDMETHODCALLTYPE *OnAuthenticate )( 
  989.             IComSecurityEvents * This,
  990.             COMSVCSEVENTINFO *pInfo,
  991.             REFGUID guidActivity,
  992.             ULONG64 ObjectID,
  993.             REFGUID guidIID,
  994.             ULONG iMeth,
  995.             ULONG cbByteOrig,
  996.             /* [size_is][in] */ BYTE *pSidOriginalUser,
  997.             ULONG cbByteCur,
  998.             /* [size_is][in] */ BYTE *pSidCurrentUser,
  999.             BOOL bCurrentUserInpersonatingInProc);
  1000.         
  1001.         HRESULT ( STDMETHODCALLTYPE *OnAuthenticateFail )( 
  1002.             IComSecurityEvents * This,
  1003.             COMSVCSEVENTINFO *pInfo,
  1004.             REFGUID guidActivity,
  1005.             ULONG64 ObjectID,
  1006.             REFGUID guidIID,
  1007.             ULONG iMeth,
  1008.             ULONG cbByteOrig,
  1009.             /* [size_is][in] */ BYTE *pSidOriginalUser,
  1010.             ULONG cbByteCur,
  1011.             /* [size_is][in] */ BYTE *pSidCurrentUser,
  1012.             BOOL bCurrentUserInpersonatingInProc);
  1013.         
  1014.         END_INTERFACE
  1015.     } IComSecurityEventsVtbl;
  1016.     interface IComSecurityEvents
  1017.     {
  1018.         CONST_VTBL struct IComSecurityEventsVtbl *lpVtbl;
  1019.     };
  1020.     
  1021. #ifdef COBJMACROS
  1022. #define IComSecurityEvents_QueryInterface(This,riid,ppvObject)
  1023.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1024. #define IComSecurityEvents_AddRef(This)
  1025.     (This)->lpVtbl -> AddRef(This)
  1026. #define IComSecurityEvents_Release(This)
  1027.     (This)->lpVtbl -> Release(This)
  1028. #define IComSecurityEvents_OnAuthenticate(This,pInfo,guidActivity,ObjectID,guidIID,iMeth,cbByteOrig,pSidOriginalUser,cbByteCur,pSidCurrentUser,bCurrentUserInpersonatingInProc)
  1029.     (This)->lpVtbl -> OnAuthenticate(This,pInfo,guidActivity,ObjectID,guidIID,iMeth,cbByteOrig,pSidOriginalUser,cbByteCur,pSidCurrentUser,bCurrentUserInpersonatingInProc)
  1030. #define IComSecurityEvents_OnAuthenticateFail(This,pInfo,guidActivity,ObjectID,guidIID,iMeth,cbByteOrig,pSidOriginalUser,cbByteCur,pSidCurrentUser,bCurrentUserInpersonatingInProc)
  1031.     (This)->lpVtbl -> OnAuthenticateFail(This,pInfo,guidActivity,ObjectID,guidIID,iMeth,cbByteOrig,pSidOriginalUser,cbByteCur,pSidCurrentUser,bCurrentUserInpersonatingInProc)
  1032. #endif /* COBJMACROS */
  1033. #endif  /* C style interface */
  1034. HRESULT STDMETHODCALLTYPE IComSecurityEvents_OnAuthenticate_Proxy( 
  1035.     IComSecurityEvents * This,
  1036.     COMSVCSEVENTINFO *pInfo,
  1037.     REFGUID guidActivity,
  1038.     ULONG64 ObjectID,
  1039.     REFGUID guidIID,
  1040.     ULONG iMeth,
  1041.     ULONG cbByteOrig,
  1042.     /* [size_is][in] */ BYTE *pSidOriginalUser,
  1043.     ULONG cbByteCur,
  1044.     /* [size_is][in] */ BYTE *pSidCurrentUser,
  1045.     BOOL bCurrentUserInpersonatingInProc);
  1046. void __RPC_STUB IComSecurityEvents_OnAuthenticate_Stub(
  1047.     IRpcStubBuffer *This,
  1048.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1049.     PRPC_MESSAGE _pRpcMessage,
  1050.     DWORD *_pdwStubPhase);
  1051. HRESULT STDMETHODCALLTYPE IComSecurityEvents_OnAuthenticateFail_Proxy( 
  1052.     IComSecurityEvents * This,
  1053.     COMSVCSEVENTINFO *pInfo,
  1054.     REFGUID guidActivity,
  1055.     ULONG64 ObjectID,
  1056.     REFGUID guidIID,
  1057.     ULONG iMeth,
  1058.     ULONG cbByteOrig,
  1059.     /* [size_is][in] */ BYTE *pSidOriginalUser,
  1060.     ULONG cbByteCur,
  1061.     /* [size_is][in] */ BYTE *pSidCurrentUser,
  1062.     BOOL bCurrentUserInpersonatingInProc);
  1063. void __RPC_STUB IComSecurityEvents_OnAuthenticateFail_Stub(
  1064.     IRpcStubBuffer *This,
  1065.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1066.     PRPC_MESSAGE _pRpcMessage,
  1067.     DWORD *_pdwStubPhase);
  1068. #endif  /* __IComSecurityEvents_INTERFACE_DEFINED__ */
  1069. #ifndef __IComObjectPoolEvents_INTERFACE_DEFINED__
  1070. #define __IComObjectPoolEvents_INTERFACE_DEFINED__
  1071. /* interface IComObjectPoolEvents */
  1072. /* [uuid][hidden][object] */ 
  1073. EXTERN_C const IID IID_IComObjectPoolEvents;
  1074. #if defined(__cplusplus) && !defined(CINTERFACE)
  1075.     
  1076.     MIDL_INTERFACE("683130AD-2E50-11d2-98A5-00C04F8EE1C4")
  1077.     IComObjectPoolEvents : public IUnknown
  1078.     {
  1079.     public:
  1080.         virtual HRESULT STDMETHODCALLTYPE OnObjPoolPutObject( 
  1081.             COMSVCSEVENTINFO *pInfo,
  1082.             REFGUID guidObject,
  1083.             int nReason,
  1084.             DWORD dwAvailable,
  1085.             ULONG64 oid) = 0;
  1086.         
  1087.         virtual HRESULT STDMETHODCALLTYPE OnObjPoolGetObject( 
  1088.             COMSVCSEVENTINFO *pInfo,
  1089.             REFGUID guidActivity,
  1090.             REFGUID guidObject,
  1091.             DWORD dwAvailable,
  1092.             ULONG64 oid) = 0;
  1093.         
  1094.         virtual HRESULT STDMETHODCALLTYPE OnObjPoolRecycleToTx( 
  1095.             COMSVCSEVENTINFO *pInfo,
  1096.             REFGUID guidActivity,
  1097.             REFGUID guidObject,
  1098.             REFGUID guidTx,
  1099.             ULONG64 objid) = 0;
  1100.         
  1101.         virtual HRESULT STDMETHODCALLTYPE OnObjPoolGetFromTx( 
  1102.             COMSVCSEVENTINFO *pInfo,
  1103.             REFGUID guidActivity,
  1104.             REFGUID guidObject,
  1105.             REFGUID guidTx,
  1106.             ULONG64 objid) = 0;
  1107.         
  1108.     };
  1109.     
  1110. #else  /* C style interface */
  1111.     typedef struct IComObjectPoolEventsVtbl
  1112.     {
  1113.         BEGIN_INTERFACE
  1114.         
  1115.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1116.             IComObjectPoolEvents * This,
  1117.             /* [in] */ REFIID riid,
  1118.             /* [iid_is][out] */ void **ppvObject);
  1119.         
  1120.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1121.             IComObjectPoolEvents * This);
  1122.         
  1123.         ULONG ( STDMETHODCALLTYPE *Release )( 
  1124.             IComObjectPoolEvents * This);
  1125.         
  1126.         HRESULT ( STDMETHODCALLTYPE *OnObjPoolPutObject )( 
  1127.             IComObjectPoolEvents * This,
  1128.             COMSVCSEVENTINFO *pInfo,
  1129.             REFGUID guidObject,
  1130.             int nReason,
  1131.             DWORD dwAvailable,
  1132.             ULONG64 oid);
  1133.         
  1134.         HRESULT ( STDMETHODCALLTYPE *OnObjPoolGetObject )( 
  1135.             IComObjectPoolEvents * This,
  1136.             COMSVCSEVENTINFO *pInfo,
  1137.             REFGUID guidActivity,
  1138.             REFGUID guidObject,
  1139.             DWORD dwAvailable,
  1140.             ULONG64 oid);
  1141.         
  1142.         HRESULT ( STDMETHODCALLTYPE *OnObjPoolRecycleToTx )( 
  1143.             IComObjectPoolEvents * This,
  1144.             COMSVCSEVENTINFO *pInfo,
  1145.             REFGUID guidActivity,
  1146.             REFGUID guidObject,
  1147.             REFGUID guidTx,
  1148.             ULONG64 objid);
  1149.         
  1150.         HRESULT ( STDMETHODCALLTYPE *OnObjPoolGetFromTx )( 
  1151.             IComObjectPoolEvents * This,
  1152.             COMSVCSEVENTINFO *pInfo,
  1153.             REFGUID guidActivity,
  1154.             REFGUID guidObject,
  1155.             REFGUID guidTx,
  1156.             ULONG64 objid);
  1157.         
  1158.         END_INTERFACE
  1159.     } IComObjectPoolEventsVtbl;
  1160.     interface IComObjectPoolEvents
  1161.     {
  1162.         CONST_VTBL struct IComObjectPoolEventsVtbl *lpVtbl;
  1163.     };
  1164.     
  1165. #ifdef COBJMACROS
  1166. #define IComObjectPoolEvents_QueryInterface(This,riid,ppvObject)
  1167.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1168. #define IComObjectPoolEvents_AddRef(This)
  1169.     (This)->lpVtbl -> AddRef(This)
  1170. #define IComObjectPoolEvents_Release(This)
  1171.     (This)->lpVtbl -> Release(This)
  1172. #define IComObjectPoolEvents_OnObjPoolPutObject(This,pInfo,guidObject,nReason,dwAvailable,oid)
  1173.     (This)->lpVtbl -> OnObjPoolPutObject(This,pInfo,guidObject,nReason,dwAvailable,oid)
  1174. #define IComObjectPoolEvents_OnObjPoolGetObject(This,pInfo,guidActivity,guidObject,dwAvailable,oid)
  1175.     (This)->lpVtbl -> OnObjPoolGetObject(This,pInfo,guidActivity,guidObject,dwAvailable,oid)
  1176. #define IComObjectPoolEvents_OnObjPoolRecycleToTx(This,pInfo,guidActivity,guidObject,guidTx,objid)
  1177.     (This)->lpVtbl -> OnObjPoolRecycleToTx(This,pInfo,guidActivity,guidObject,guidTx,objid)
  1178. #define IComObjectPoolEvents_OnObjPoolGetFromTx(This,pInfo,guidActivity,guidObject,guidTx,objid)
  1179.     (This)->lpVtbl -> OnObjPoolGetFromTx(This,pInfo,guidActivity,guidObject,guidTx,objid)
  1180. #endif /* COBJMACROS */
  1181. #endif  /* C style interface */
  1182. HRESULT STDMETHODCALLTYPE IComObjectPoolEvents_OnObjPoolPutObject_Proxy( 
  1183.     IComObjectPoolEvents * This,
  1184.     COMSVCSEVENTINFO *pInfo,
  1185.     REFGUID guidObject,
  1186.     int nReason,
  1187.     DWORD dwAvailable,
  1188.     ULONG64 oid);
  1189. void __RPC_STUB IComObjectPoolEvents_OnObjPoolPutObject_Stub(
  1190.     IRpcStubBuffer *This,
  1191.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1192.     PRPC_MESSAGE _pRpcMessage,
  1193.     DWORD *_pdwStubPhase);
  1194. HRESULT STDMETHODCALLTYPE IComObjectPoolEvents_OnObjPoolGetObject_Proxy( 
  1195.     IComObjectPoolEvents * This,
  1196.     COMSVCSEVENTINFO *pInfo,
  1197.     REFGUID guidActivity,
  1198.     REFGUID guidObject,
  1199.     DWORD dwAvailable,
  1200.     ULONG64 oid);
  1201. void __RPC_STUB IComObjectPoolEvents_OnObjPoolGetObject_Stub(
  1202.     IRpcStubBuffer *This,
  1203.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1204.     PRPC_MESSAGE _pRpcMessage,
  1205.     DWORD *_pdwStubPhase);
  1206. HRESULT STDMETHODCALLTYPE IComObjectPoolEvents_OnObjPoolRecycleToTx_Proxy( 
  1207.     IComObjectPoolEvents * This,
  1208.     COMSVCSEVENTINFO *pInfo,
  1209.     REFGUID guidActivity,
  1210.     REFGUID guidObject,
  1211.     REFGUID guidTx,
  1212.     ULONG64 objid);
  1213. void __RPC_STUB IComObjectPoolEvents_OnObjPoolRecycleToTx_Stub(
  1214.     IRpcStubBuffer *This,
  1215.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1216.     PRPC_MESSAGE _pRpcMessage,
  1217.     DWORD *_pdwStubPhase);
  1218. HRESULT STDMETHODCALLTYPE IComObjectPoolEvents_OnObjPoolGetFromTx_Proxy( 
  1219.     IComObjectPoolEvents * This,
  1220.     COMSVCSEVENTINFO *pInfo,
  1221.     REFGUID guidActivity,
  1222.     REFGUID guidObject,
  1223.     REFGUID guidTx,
  1224.     ULONG64 objid);
  1225. void __RPC_STUB IComObjectPoolEvents_OnObjPoolGetFromTx_Stub(
  1226.     IRpcStubBuffer *This,
  1227.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1228.     PRPC_MESSAGE _pRpcMessage,
  1229.     DWORD *_pdwStubPhase);
  1230. #endif  /* __IComObjectPoolEvents_INTERFACE_DEFINED__ */
  1231. #ifndef __IComObjectPoolEvents2_INTERFACE_DEFINED__
  1232. #define __IComObjectPoolEvents2_INTERFACE_DEFINED__
  1233. /* interface IComObjectPoolEvents2 */
  1234. /* [uuid][hidden][object] */ 
  1235. EXTERN_C const IID IID_IComObjectPoolEvents2;
  1236. #if defined(__cplusplus) && !defined(CINTERFACE)
  1237.     
  1238.     MIDL_INTERFACE("683130AE-2E50-11d2-98A5-00C04F8EE1C4")
  1239.     IComObjectPoolEvents2 : public IUnknown
  1240.     {
  1241.     public:
  1242.         virtual HRESULT STDMETHODCALLTYPE OnObjPoolCreateObject( 
  1243.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1244.             REFGUID guidObject,
  1245.             DWORD dwObjsCreated,
  1246.             ULONG64 oid) = 0;
  1247.         
  1248.         virtual HRESULT STDMETHODCALLTYPE OnObjPoolDestroyObject( 
  1249.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1250.             REFGUID guidObject,
  1251.             DWORD dwObjsCreated,
  1252.             ULONG64 oid) = 0;
  1253.         
  1254.         virtual HRESULT STDMETHODCALLTYPE OnObjPoolCreateDecision( 
  1255.             COMSVCSEVENTINFO *pInfo,
  1256.             DWORD dwThreadsWaiting,
  1257.             DWORD dwAvail,
  1258.             DWORD dwCreated,
  1259.             DWORD dwMin,
  1260.             DWORD dwMax) = 0;
  1261.         
  1262.         virtual HRESULT STDMETHODCALLTYPE OnObjPoolTimeout( 
  1263.             COMSVCSEVENTINFO *pInfo,
  1264.             REFGUID guidObject,
  1265.             REFGUID guidActivity,
  1266.             DWORD dwTimeout) = 0;
  1267.         
  1268.         virtual HRESULT STDMETHODCALLTYPE OnObjPoolCreatePool( 
  1269.             COMSVCSEVENTINFO *pInfo,
  1270.             REFGUID guidObject,
  1271.             DWORD dwMin,
  1272.             DWORD dwMax,
  1273.             DWORD dwTimeout) = 0;
  1274.         
  1275.     };
  1276.     
  1277. #else  /* C style interface */
  1278.     typedef struct IComObjectPoolEvents2Vtbl
  1279.     {
  1280.         BEGIN_INTERFACE
  1281.         
  1282.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1283.             IComObjectPoolEvents2 * This,
  1284.             /* [in] */ REFIID riid,
  1285.             /* [iid_is][out] */ void **ppvObject);
  1286.         
  1287.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1288.             IComObjectPoolEvents2 * This);
  1289.         
  1290.         ULONG ( STDMETHODCALLTYPE *Release )( 
  1291.             IComObjectPoolEvents2 * This);
  1292.         
  1293.         HRESULT ( STDMETHODCALLTYPE *OnObjPoolCreateObject )( 
  1294.             IComObjectPoolEvents2 * This,
  1295.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1296.             REFGUID guidObject,
  1297.             DWORD dwObjsCreated,
  1298.             ULONG64 oid);
  1299.         
  1300.         HRESULT ( STDMETHODCALLTYPE *OnObjPoolDestroyObject )( 
  1301.             IComObjectPoolEvents2 * This,
  1302.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1303.             REFGUID guidObject,
  1304.             DWORD dwObjsCreated,
  1305.             ULONG64 oid);
  1306.         
  1307.         HRESULT ( STDMETHODCALLTYPE *OnObjPoolCreateDecision )( 
  1308.             IComObjectPoolEvents2 * This,
  1309.             COMSVCSEVENTINFO *pInfo,
  1310.             DWORD dwThreadsWaiting,
  1311.             DWORD dwAvail,
  1312.             DWORD dwCreated,
  1313.             DWORD dwMin,
  1314.             DWORD dwMax);
  1315.         
  1316.         HRESULT ( STDMETHODCALLTYPE *OnObjPoolTimeout )( 
  1317.             IComObjectPoolEvents2 * This,
  1318.             COMSVCSEVENTINFO *pInfo,
  1319.             REFGUID guidObject,
  1320.             REFGUID guidActivity,
  1321.             DWORD dwTimeout);
  1322.         
  1323.         HRESULT ( STDMETHODCALLTYPE *OnObjPoolCreatePool )( 
  1324.             IComObjectPoolEvents2 * This,
  1325.             COMSVCSEVENTINFO *pInfo,
  1326.             REFGUID guidObject,
  1327.             DWORD dwMin,
  1328.             DWORD dwMax,
  1329.             DWORD dwTimeout);
  1330.         
  1331.         END_INTERFACE
  1332.     } IComObjectPoolEvents2Vtbl;
  1333.     interface IComObjectPoolEvents2
  1334.     {
  1335.         CONST_VTBL struct IComObjectPoolEvents2Vtbl *lpVtbl;
  1336.     };
  1337.     
  1338. #ifdef COBJMACROS
  1339. #define IComObjectPoolEvents2_QueryInterface(This,riid,ppvObject)
  1340.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1341. #define IComObjectPoolEvents2_AddRef(This)
  1342.     (This)->lpVtbl -> AddRef(This)
  1343. #define IComObjectPoolEvents2_Release(This)
  1344.     (This)->lpVtbl -> Release(This)
  1345. #define IComObjectPoolEvents2_OnObjPoolCreateObject(This,pInfo,guidObject,dwObjsCreated,oid)
  1346.     (This)->lpVtbl -> OnObjPoolCreateObject(This,pInfo,guidObject,dwObjsCreated,oid)
  1347. #define IComObjectPoolEvents2_OnObjPoolDestroyObject(This,pInfo,guidObject,dwObjsCreated,oid)
  1348.     (This)->lpVtbl -> OnObjPoolDestroyObject(This,pInfo,guidObject,dwObjsCreated,oid)
  1349. #define IComObjectPoolEvents2_OnObjPoolCreateDecision(This,pInfo,dwThreadsWaiting,dwAvail,dwCreated,dwMin,dwMax)
  1350.     (This)->lpVtbl -> OnObjPoolCreateDecision(This,pInfo,dwThreadsWaiting,dwAvail,dwCreated,dwMin,dwMax)
  1351. #define IComObjectPoolEvents2_OnObjPoolTimeout(This,pInfo,guidObject,guidActivity,dwTimeout)
  1352.     (This)->lpVtbl -> OnObjPoolTimeout(This,pInfo,guidObject,guidActivity,dwTimeout)
  1353. #define IComObjectPoolEvents2_OnObjPoolCreatePool(This,pInfo,guidObject,dwMin,dwMax,dwTimeout)
  1354.     (This)->lpVtbl -> OnObjPoolCreatePool(This,pInfo,guidObject,dwMin,dwMax,dwTimeout)
  1355. #endif /* COBJMACROS */
  1356. #endif  /* C style interface */
  1357. HRESULT STDMETHODCALLTYPE IComObjectPoolEvents2_OnObjPoolCreateObject_Proxy( 
  1358.     IComObjectPoolEvents2 * This,
  1359.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  1360.     REFGUID guidObject,
  1361.     DWORD dwObjsCreated,
  1362.     ULONG64 oid);
  1363. void __RPC_STUB IComObjectPoolEvents2_OnObjPoolCreateObject_Stub(
  1364.     IRpcStubBuffer *This,
  1365.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1366.     PRPC_MESSAGE _pRpcMessage,
  1367.     DWORD *_pdwStubPhase);
  1368. HRESULT STDMETHODCALLTYPE IComObjectPoolEvents2_OnObjPoolDestroyObject_Proxy( 
  1369.     IComObjectPoolEvents2 * This,
  1370.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  1371.     REFGUID guidObject,
  1372.     DWORD dwObjsCreated,
  1373.     ULONG64 oid);
  1374. void __RPC_STUB IComObjectPoolEvents2_OnObjPoolDestroyObject_Stub(
  1375.     IRpcStubBuffer *This,
  1376.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1377.     PRPC_MESSAGE _pRpcMessage,
  1378.     DWORD *_pdwStubPhase);
  1379. HRESULT STDMETHODCALLTYPE IComObjectPoolEvents2_OnObjPoolCreateDecision_Proxy( 
  1380.     IComObjectPoolEvents2 * This,
  1381.     COMSVCSEVENTINFO *pInfo,
  1382.     DWORD dwThreadsWaiting,
  1383.     DWORD dwAvail,
  1384.     DWORD dwCreated,
  1385.     DWORD dwMin,
  1386.     DWORD dwMax);
  1387. void __RPC_STUB IComObjectPoolEvents2_OnObjPoolCreateDecision_Stub(
  1388.     IRpcStubBuffer *This,
  1389.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1390.     PRPC_MESSAGE _pRpcMessage,
  1391.     DWORD *_pdwStubPhase);
  1392. HRESULT STDMETHODCALLTYPE IComObjectPoolEvents2_OnObjPoolTimeout_Proxy( 
  1393.     IComObjectPoolEvents2 * This,
  1394.     COMSVCSEVENTINFO *pInfo,
  1395.     REFGUID guidObject,
  1396.     REFGUID guidActivity,
  1397.     DWORD dwTimeout);
  1398. void __RPC_STUB IComObjectPoolEvents2_OnObjPoolTimeout_Stub(
  1399.     IRpcStubBuffer *This,
  1400.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1401.     PRPC_MESSAGE _pRpcMessage,
  1402.     DWORD *_pdwStubPhase);
  1403. HRESULT STDMETHODCALLTYPE IComObjectPoolEvents2_OnObjPoolCreatePool_Proxy( 
  1404.     IComObjectPoolEvents2 * This,
  1405.     COMSVCSEVENTINFO *pInfo,
  1406.     REFGUID guidObject,
  1407.     DWORD dwMin,
  1408.     DWORD dwMax,
  1409.     DWORD dwTimeout);
  1410. void __RPC_STUB IComObjectPoolEvents2_OnObjPoolCreatePool_Stub(
  1411.     IRpcStubBuffer *This,
  1412.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1413.     PRPC_MESSAGE _pRpcMessage,
  1414.     DWORD *_pdwStubPhase);
  1415. #endif  /* __IComObjectPoolEvents2_INTERFACE_DEFINED__ */
  1416. #ifndef __IComObjectConstructionEvents_INTERFACE_DEFINED__
  1417. #define __IComObjectConstructionEvents_INTERFACE_DEFINED__
  1418. /* interface IComObjectConstructionEvents */
  1419. /* [uuid][hidden][object] */ 
  1420. EXTERN_C const IID IID_IComObjectConstructionEvents;
  1421. #if defined(__cplusplus) && !defined(CINTERFACE)
  1422.     
  1423.     MIDL_INTERFACE("683130AF-2E50-11d2-98A5-00C04F8EE1C4")
  1424.     IComObjectConstructionEvents : public IUnknown
  1425.     {
  1426.     public:
  1427.         virtual HRESULT STDMETHODCALLTYPE OnObjectConstruct( 
  1428.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1429.             /* [in] */ REFGUID guidObject,
  1430.             /* [in] */ LPCOLESTR sConstructString,
  1431.             /* [in] */ ULONG64 oid) = 0;
  1432.         
  1433.     };
  1434.     
  1435. #else  /* C style interface */
  1436.     typedef struct IComObjectConstructionEventsVtbl
  1437.     {
  1438.         BEGIN_INTERFACE
  1439.         
  1440.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1441.             IComObjectConstructionEvents * This,
  1442.             /* [in] */ REFIID riid,
  1443.             /* [iid_is][out] */ void **ppvObject);
  1444.         
  1445.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1446.             IComObjectConstructionEvents * This);
  1447.         
  1448.         ULONG ( STDMETHODCALLTYPE *Release )( 
  1449.             IComObjectConstructionEvents * This);
  1450.         
  1451.         HRESULT ( STDMETHODCALLTYPE *OnObjectConstruct )( 
  1452.             IComObjectConstructionEvents * This,
  1453.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1454.             /* [in] */ REFGUID guidObject,
  1455.             /* [in] */ LPCOLESTR sConstructString,
  1456.             /* [in] */ ULONG64 oid);
  1457.         
  1458.         END_INTERFACE
  1459.     } IComObjectConstructionEventsVtbl;
  1460.     interface IComObjectConstructionEvents
  1461.     {
  1462.         CONST_VTBL struct IComObjectConstructionEventsVtbl *lpVtbl;
  1463.     };
  1464.     
  1465. #ifdef COBJMACROS
  1466. #define IComObjectConstructionEvents_QueryInterface(This,riid,ppvObject)
  1467.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1468. #define IComObjectConstructionEvents_AddRef(This)
  1469.     (This)->lpVtbl -> AddRef(This)
  1470. #define IComObjectConstructionEvents_Release(This)
  1471.     (This)->lpVtbl -> Release(This)
  1472. #define IComObjectConstructionEvents_OnObjectConstruct(This,pInfo,guidObject,sConstructString,oid)
  1473.     (This)->lpVtbl -> OnObjectConstruct(This,pInfo,guidObject,sConstructString,oid)
  1474. #endif /* COBJMACROS */
  1475. #endif  /* C style interface */
  1476. HRESULT STDMETHODCALLTYPE IComObjectConstructionEvents_OnObjectConstruct_Proxy( 
  1477.     IComObjectConstructionEvents * This,
  1478.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  1479.     /* [in] */ REFGUID guidObject,
  1480.     /* [in] */ LPCOLESTR sConstructString,
  1481.     /* [in] */ ULONG64 oid);
  1482. void __RPC_STUB IComObjectConstructionEvents_OnObjectConstruct_Stub(
  1483.     IRpcStubBuffer *This,
  1484.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1485.     PRPC_MESSAGE _pRpcMessage,
  1486.     DWORD *_pdwStubPhase);
  1487. #endif  /* __IComObjectConstructionEvents_INTERFACE_DEFINED__ */
  1488. #ifndef __IComActivityEvents_INTERFACE_DEFINED__
  1489. #define __IComActivityEvents_INTERFACE_DEFINED__
  1490. /* interface IComActivityEvents */
  1491. /* [uuid][hidden][object] */ 
  1492. EXTERN_C const IID IID_IComActivityEvents;
  1493. #if defined(__cplusplus) && !defined(CINTERFACE)
  1494.     
  1495.     MIDL_INTERFACE("683130B0-2E50-11d2-98A5-00C04F8EE1C4")
  1496.     IComActivityEvents : public IUnknown
  1497.     {
  1498.     public:
  1499.         virtual HRESULT STDMETHODCALLTYPE OnActivityCreate( 
  1500.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1501.             /* [in] */ REFGUID guidActivity) = 0;
  1502.         
  1503.         virtual HRESULT STDMETHODCALLTYPE OnActivityDestroy( 
  1504.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1505.             /* [in] */ REFGUID guidActivity) = 0;
  1506.         
  1507.         virtual HRESULT STDMETHODCALLTYPE OnActivityEnter( 
  1508.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1509.             /* [in] */ REFGUID guidCurrent,
  1510.             /* [in] */ REFGUID guidEntered,
  1511.             /* [in] */ DWORD dwThread) = 0;
  1512.         
  1513.         virtual HRESULT STDMETHODCALLTYPE OnActivityTimeout( 
  1514.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1515.             /* [in] */ REFGUID guidCurrent,
  1516.             /* [in] */ REFGUID guidEntered,
  1517.             /* [in] */ DWORD dwThread,
  1518.             /* [in] */ DWORD dwTimeout) = 0;
  1519.         
  1520.         virtual HRESULT STDMETHODCALLTYPE OnActivityReenter( 
  1521.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1522.             /* [in] */ REFGUID guidCurrent,
  1523.             /* [in] */ DWORD dwThread,
  1524.             /* [in] */ DWORD dwCallDepth) = 0;
  1525.         
  1526.         virtual HRESULT STDMETHODCALLTYPE OnActivityLeave( 
  1527.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1528.             /* [in] */ REFGUID guidCurrent,
  1529.             /* [in] */ REFGUID guidLeft) = 0;
  1530.         
  1531.         virtual HRESULT STDMETHODCALLTYPE OnActivityLeaveSame( 
  1532.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1533.             /* [in] */ REFGUID guidCurrent,
  1534.             /* [in] */ DWORD dwCallDepth) = 0;
  1535.         
  1536.     };
  1537.     
  1538. #else  /* C style interface */
  1539.     typedef struct IComActivityEventsVtbl
  1540.     {
  1541.         BEGIN_INTERFACE
  1542.         
  1543.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1544.             IComActivityEvents * This,
  1545.             /* [in] */ REFIID riid,
  1546.             /* [iid_is][out] */ void **ppvObject);
  1547.         
  1548.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1549.             IComActivityEvents * This);
  1550.         
  1551.         ULONG ( STDMETHODCALLTYPE *Release )( 
  1552.             IComActivityEvents * This);
  1553.         
  1554.         HRESULT ( STDMETHODCALLTYPE *OnActivityCreate )( 
  1555.             IComActivityEvents * This,
  1556.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1557.             /* [in] */ REFGUID guidActivity);
  1558.         
  1559.         HRESULT ( STDMETHODCALLTYPE *OnActivityDestroy )( 
  1560.             IComActivityEvents * This,
  1561.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1562.             /* [in] */ REFGUID guidActivity);
  1563.         
  1564.         HRESULT ( STDMETHODCALLTYPE *OnActivityEnter )( 
  1565.             IComActivityEvents * This,
  1566.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1567.             /* [in] */ REFGUID guidCurrent,
  1568.             /* [in] */ REFGUID guidEntered,
  1569.             /* [in] */ DWORD dwThread);
  1570.         
  1571.         HRESULT ( STDMETHODCALLTYPE *OnActivityTimeout )( 
  1572.             IComActivityEvents * This,
  1573.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1574.             /* [in] */ REFGUID guidCurrent,
  1575.             /* [in] */ REFGUID guidEntered,
  1576.             /* [in] */ DWORD dwThread,
  1577.             /* [in] */ DWORD dwTimeout);
  1578.         
  1579.         HRESULT ( STDMETHODCALLTYPE *OnActivityReenter )( 
  1580.             IComActivityEvents * This,
  1581.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1582.             /* [in] */ REFGUID guidCurrent,
  1583.             /* [in] */ DWORD dwThread,
  1584.             /* [in] */ DWORD dwCallDepth);
  1585.         
  1586.         HRESULT ( STDMETHODCALLTYPE *OnActivityLeave )( 
  1587.             IComActivityEvents * This,
  1588.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1589.             /* [in] */ REFGUID guidCurrent,
  1590.             /* [in] */ REFGUID guidLeft);
  1591.         
  1592.         HRESULT ( STDMETHODCALLTYPE *OnActivityLeaveSame )( 
  1593.             IComActivityEvents * This,
  1594.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1595.             /* [in] */ REFGUID guidCurrent,
  1596.             /* [in] */ DWORD dwCallDepth);
  1597.         
  1598.         END_INTERFACE
  1599.     } IComActivityEventsVtbl;
  1600.     interface IComActivityEvents
  1601.     {
  1602.         CONST_VTBL struct IComActivityEventsVtbl *lpVtbl;
  1603.     };
  1604.     
  1605. #ifdef COBJMACROS
  1606. #define IComActivityEvents_QueryInterface(This,riid,ppvObject)
  1607.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1608. #define IComActivityEvents_AddRef(This)
  1609.     (This)->lpVtbl -> AddRef(This)
  1610. #define IComActivityEvents_Release(This)
  1611.     (This)->lpVtbl -> Release(This)
  1612. #define IComActivityEvents_OnActivityCreate(This,pInfo,guidActivity)
  1613.     (This)->lpVtbl -> OnActivityCreate(This,pInfo,guidActivity)
  1614. #define IComActivityEvents_OnActivityDestroy(This,pInfo,guidActivity)
  1615.     (This)->lpVtbl -> OnActivityDestroy(This,pInfo,guidActivity)
  1616. #define IComActivityEvents_OnActivityEnter(This,pInfo,guidCurrent,guidEntered,dwThread)
  1617.     (This)->lpVtbl -> OnActivityEnter(This,pInfo,guidCurrent,guidEntered,dwThread)
  1618. #define IComActivityEvents_OnActivityTimeout(This,pInfo,guidCurrent,guidEntered,dwThread,dwTimeout)
  1619.     (This)->lpVtbl -> OnActivityTimeout(This,pInfo,guidCurrent,guidEntered,dwThread,dwTimeout)
  1620. #define IComActivityEvents_OnActivityReenter(This,pInfo,guidCurrent,dwThread,dwCallDepth)
  1621.     (This)->lpVtbl -> OnActivityReenter(This,pInfo,guidCurrent,dwThread,dwCallDepth)
  1622. #define IComActivityEvents_OnActivityLeave(This,pInfo,guidCurrent,guidLeft)
  1623.     (This)->lpVtbl -> OnActivityLeave(This,pInfo,guidCurrent,guidLeft)
  1624. #define IComActivityEvents_OnActivityLeaveSame(This,pInfo,guidCurrent,dwCallDepth)
  1625.     (This)->lpVtbl -> OnActivityLeaveSame(This,pInfo,guidCurrent,dwCallDepth)
  1626. #endif /* COBJMACROS */
  1627. #endif  /* C style interface */
  1628. HRESULT STDMETHODCALLTYPE IComActivityEvents_OnActivityCreate_Proxy( 
  1629.     IComActivityEvents * This,
  1630.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  1631.     /* [in] */ REFGUID guidActivity);
  1632. void __RPC_STUB IComActivityEvents_OnActivityCreate_Stub(
  1633.     IRpcStubBuffer *This,
  1634.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1635.     PRPC_MESSAGE _pRpcMessage,
  1636.     DWORD *_pdwStubPhase);
  1637. HRESULT STDMETHODCALLTYPE IComActivityEvents_OnActivityDestroy_Proxy( 
  1638.     IComActivityEvents * This,
  1639.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  1640.     /* [in] */ REFGUID guidActivity);
  1641. void __RPC_STUB IComActivityEvents_OnActivityDestroy_Stub(
  1642.     IRpcStubBuffer *This,
  1643.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1644.     PRPC_MESSAGE _pRpcMessage,
  1645.     DWORD *_pdwStubPhase);
  1646. HRESULT STDMETHODCALLTYPE IComActivityEvents_OnActivityEnter_Proxy( 
  1647.     IComActivityEvents * This,
  1648.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  1649.     /* [in] */ REFGUID guidCurrent,
  1650.     /* [in] */ REFGUID guidEntered,
  1651.     /* [in] */ DWORD dwThread);
  1652. void __RPC_STUB IComActivityEvents_OnActivityEnter_Stub(
  1653.     IRpcStubBuffer *This,
  1654.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1655.     PRPC_MESSAGE _pRpcMessage,
  1656.     DWORD *_pdwStubPhase);
  1657. HRESULT STDMETHODCALLTYPE IComActivityEvents_OnActivityTimeout_Proxy( 
  1658.     IComActivityEvents * This,
  1659.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  1660.     /* [in] */ REFGUID guidCurrent,
  1661.     /* [in] */ REFGUID guidEntered,
  1662.     /* [in] */ DWORD dwThread,
  1663.     /* [in] */ DWORD dwTimeout);
  1664. void __RPC_STUB IComActivityEvents_OnActivityTimeout_Stub(
  1665.     IRpcStubBuffer *This,
  1666.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1667.     PRPC_MESSAGE _pRpcMessage,
  1668.     DWORD *_pdwStubPhase);
  1669. HRESULT STDMETHODCALLTYPE IComActivityEvents_OnActivityReenter_Proxy( 
  1670.     IComActivityEvents * This,
  1671.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  1672.     /* [in] */ REFGUID guidCurrent,
  1673.     /* [in] */ DWORD dwThread,
  1674.     /* [in] */ DWORD dwCallDepth);
  1675. void __RPC_STUB IComActivityEvents_OnActivityReenter_Stub(
  1676.     IRpcStubBuffer *This,
  1677.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1678.     PRPC_MESSAGE _pRpcMessage,
  1679.     DWORD *_pdwStubPhase);
  1680. HRESULT STDMETHODCALLTYPE IComActivityEvents_OnActivityLeave_Proxy( 
  1681.     IComActivityEvents * This,
  1682.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  1683.     /* [in] */ REFGUID guidCurrent,
  1684.     /* [in] */ REFGUID guidLeft);
  1685. void __RPC_STUB IComActivityEvents_OnActivityLeave_Stub(
  1686.     IRpcStubBuffer *This,
  1687.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1688.     PRPC_MESSAGE _pRpcMessage,
  1689.     DWORD *_pdwStubPhase);
  1690. HRESULT STDMETHODCALLTYPE IComActivityEvents_OnActivityLeaveSame_Proxy( 
  1691.     IComActivityEvents * This,
  1692.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  1693.     /* [in] */ REFGUID guidCurrent,
  1694.     /* [in] */ DWORD dwCallDepth);
  1695. void __RPC_STUB IComActivityEvents_OnActivityLeaveSame_Stub(
  1696.     IRpcStubBuffer *This,
  1697.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1698.     PRPC_MESSAGE _pRpcMessage,
  1699.     DWORD *_pdwStubPhase);
  1700. #endif  /* __IComActivityEvents_INTERFACE_DEFINED__ */
  1701. #ifndef __IComIdentityEvents_INTERFACE_DEFINED__
  1702. #define __IComIdentityEvents_INTERFACE_DEFINED__
  1703. /* interface IComIdentityEvents */
  1704. /* [uuid][hidden][object] */ 
  1705. EXTERN_C const IID IID_IComIdentityEvents;
  1706. #if defined(__cplusplus) && !defined(CINTERFACE)
  1707.     
  1708.     MIDL_INTERFACE("683130B1-2E50-11d2-98A5-00C04F8EE1C4")
  1709.     IComIdentityEvents : public IUnknown
  1710.     {
  1711.     public:
  1712.         virtual HRESULT STDMETHODCALLTYPE OnIISRequestInfo( 
  1713.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1714.             /* [in] */ ULONG64 ObjId,
  1715.             /* [in] */ LPCOLESTR pszClientIP,
  1716.             /* [in] */ LPCOLESTR pszServerIP,
  1717.             /* [in] */ LPCOLESTR pszURL) = 0;
  1718.         
  1719.     };
  1720.     
  1721. #else  /* C style interface */
  1722.     typedef struct IComIdentityEventsVtbl
  1723.     {
  1724.         BEGIN_INTERFACE
  1725.         
  1726.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1727.             IComIdentityEvents * This,
  1728.             /* [in] */ REFIID riid,
  1729.             /* [iid_is][out] */ void **ppvObject);
  1730.         
  1731.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1732.             IComIdentityEvents * This);
  1733.         
  1734.         ULONG ( STDMETHODCALLTYPE *Release )( 
  1735.             IComIdentityEvents * This);
  1736.         
  1737.         HRESULT ( STDMETHODCALLTYPE *OnIISRequestInfo )( 
  1738.             IComIdentityEvents * This,
  1739.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1740.             /* [in] */ ULONG64 ObjId,
  1741.             /* [in] */ LPCOLESTR pszClientIP,
  1742.             /* [in] */ LPCOLESTR pszServerIP,
  1743.             /* [in] */ LPCOLESTR pszURL);
  1744.         
  1745.         END_INTERFACE
  1746.     } IComIdentityEventsVtbl;
  1747.     interface IComIdentityEvents
  1748.     {
  1749.         CONST_VTBL struct IComIdentityEventsVtbl *lpVtbl;
  1750.     };
  1751.     
  1752. #ifdef COBJMACROS
  1753. #define IComIdentityEvents_QueryInterface(This,riid,ppvObject)
  1754.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1755. #define IComIdentityEvents_AddRef(This)
  1756.     (This)->lpVtbl -> AddRef(This)
  1757. #define IComIdentityEvents_Release(This)
  1758.     (This)->lpVtbl -> Release(This)
  1759. #define IComIdentityEvents_OnIISRequestInfo(This,pInfo,ObjId,pszClientIP,pszServerIP,pszURL)
  1760.     (This)->lpVtbl -> OnIISRequestInfo(This,pInfo,ObjId,pszClientIP,pszServerIP,pszURL)
  1761. #endif /* COBJMACROS */
  1762. #endif  /* C style interface */
  1763. HRESULT STDMETHODCALLTYPE IComIdentityEvents_OnIISRequestInfo_Proxy( 
  1764.     IComIdentityEvents * This,
  1765.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  1766.     /* [in] */ ULONG64 ObjId,
  1767.     /* [in] */ LPCOLESTR pszClientIP,
  1768.     /* [in] */ LPCOLESTR pszServerIP,
  1769.     /* [in] */ LPCOLESTR pszURL);
  1770. void __RPC_STUB IComIdentityEvents_OnIISRequestInfo_Stub(
  1771.     IRpcStubBuffer *This,
  1772.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1773.     PRPC_MESSAGE _pRpcMessage,
  1774.     DWORD *_pdwStubPhase);
  1775. #endif  /* __IComIdentityEvents_INTERFACE_DEFINED__ */
  1776. #ifndef __IComQCEvents_INTERFACE_DEFINED__
  1777. #define __IComQCEvents_INTERFACE_DEFINED__
  1778. /* interface IComQCEvents */
  1779. /* [uuid][hidden][object] */ 
  1780. EXTERN_C const IID IID_IComQCEvents;
  1781. #if defined(__cplusplus) && !defined(CINTERFACE)
  1782.     
  1783.     MIDL_INTERFACE("683130B2-2E50-11d2-98A5-00C04F8EE1C4")
  1784.     IComQCEvents : public IUnknown
  1785.     {
  1786.     public:
  1787.         virtual HRESULT STDMETHODCALLTYPE OnQCRecord( 
  1788.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1789.             /* [in] */ ULONG64 objid,
  1790.             /* [in] */ WCHAR szQueue[ 60 ],
  1791.             /* [in] */ REFGUID guidMsgId,
  1792.             /* [in] */ REFGUID guidWorkFlowId,
  1793.             /* [in] */ HRESULT msmqhr) = 0;
  1794.         
  1795.         virtual HRESULT STDMETHODCALLTYPE OnQCQueueOpen( 
  1796.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1797.             /* [in] */ WCHAR szQueue[ 60 ],
  1798.             /* [in] */ ULONG64 QueueID,
  1799.             /* [in] */ HRESULT hr) = 0;
  1800.         
  1801.         virtual HRESULT STDMETHODCALLTYPE OnQCReceive( 
  1802.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1803.             /* [in] */ ULONG64 QueueID,
  1804.             /* [in] */ REFGUID guidMsgId,
  1805.             /* [in] */ REFGUID guidWorkFlowId,
  1806.             /* [in] */ HRESULT hr) = 0;
  1807.         
  1808.         virtual HRESULT STDMETHODCALLTYPE OnQCReceiveFail( 
  1809.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1810.             /* [in] */ ULONG64 QueueID,
  1811.             /* [in] */ HRESULT msmqhr) = 0;
  1812.         
  1813.         virtual HRESULT STDMETHODCALLTYPE OnQCMoveToReTryQueue( 
  1814.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1815.             /* [in] */ REFGUID guidMsgId,
  1816.             /* [in] */ REFGUID guidWorkFlowId,
  1817.             /* [in] */ ULONG RetryIndex) = 0;
  1818.         
  1819.         virtual HRESULT STDMETHODCALLTYPE OnQCMoveToDeadQueue( 
  1820.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1821.             /* [in] */ REFGUID guidMsgId,
  1822.             /* [in] */ REFGUID guidWorkFlowId) = 0;
  1823.         
  1824.         virtual HRESULT STDMETHODCALLTYPE OnQCPlayback( 
  1825.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1826.             /* [in] */ ULONG64 objid,
  1827.             /* [in] */ REFGUID guidMsgId,
  1828.             /* [in] */ REFGUID guidWorkFlowId,
  1829.             /* [in] */ HRESULT hr) = 0;
  1830.         
  1831.     };
  1832.     
  1833. #else  /* C style interface */
  1834.     typedef struct IComQCEventsVtbl
  1835.     {
  1836.         BEGIN_INTERFACE
  1837.         
  1838.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1839.             IComQCEvents * This,
  1840.             /* [in] */ REFIID riid,
  1841.             /* [iid_is][out] */ void **ppvObject);
  1842.         
  1843.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1844.             IComQCEvents * This);
  1845.         
  1846.         ULONG ( STDMETHODCALLTYPE *Release )( 
  1847.             IComQCEvents * This);
  1848.         
  1849.         HRESULT ( STDMETHODCALLTYPE *OnQCRecord )( 
  1850.             IComQCEvents * This,
  1851.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1852.             /* [in] */ ULONG64 objid,
  1853.             /* [in] */ WCHAR szQueue[ 60 ],
  1854.             /* [in] */ REFGUID guidMsgId,
  1855.             /* [in] */ REFGUID guidWorkFlowId,
  1856.             /* [in] */ HRESULT msmqhr);
  1857.         
  1858.         HRESULT ( STDMETHODCALLTYPE *OnQCQueueOpen )( 
  1859.             IComQCEvents * This,
  1860.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1861.             /* [in] */ WCHAR szQueue[ 60 ],
  1862.             /* [in] */ ULONG64 QueueID,
  1863.             /* [in] */ HRESULT hr);
  1864.         
  1865.         HRESULT ( STDMETHODCALLTYPE *OnQCReceive )( 
  1866.             IComQCEvents * This,
  1867.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1868.             /* [in] */ ULONG64 QueueID,
  1869.             /* [in] */ REFGUID guidMsgId,
  1870.             /* [in] */ REFGUID guidWorkFlowId,
  1871.             /* [in] */ HRESULT hr);
  1872.         
  1873.         HRESULT ( STDMETHODCALLTYPE *OnQCReceiveFail )( 
  1874.             IComQCEvents * This,
  1875.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1876.             /* [in] */ ULONG64 QueueID,
  1877.             /* [in] */ HRESULT msmqhr);
  1878.         
  1879.         HRESULT ( STDMETHODCALLTYPE *OnQCMoveToReTryQueue )( 
  1880.             IComQCEvents * This,
  1881.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1882.             /* [in] */ REFGUID guidMsgId,
  1883.             /* [in] */ REFGUID guidWorkFlowId,
  1884.             /* [in] */ ULONG RetryIndex);
  1885.         
  1886.         HRESULT ( STDMETHODCALLTYPE *OnQCMoveToDeadQueue )( 
  1887.             IComQCEvents * This,
  1888.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1889.             /* [in] */ REFGUID guidMsgId,
  1890.             /* [in] */ REFGUID guidWorkFlowId);
  1891.         
  1892.         HRESULT ( STDMETHODCALLTYPE *OnQCPlayback )( 
  1893.             IComQCEvents * This,
  1894.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  1895.             /* [in] */ ULONG64 objid,
  1896.             /* [in] */ REFGUID guidMsgId,
  1897.             /* [in] */ REFGUID guidWorkFlowId,
  1898.             /* [in] */ HRESULT hr);
  1899.         
  1900.         END_INTERFACE
  1901.     } IComQCEventsVtbl;
  1902.     interface IComQCEvents
  1903.     {
  1904.         CONST_VTBL struct IComQCEventsVtbl *lpVtbl;
  1905.     };
  1906.     
  1907. #ifdef COBJMACROS
  1908. #define IComQCEvents_QueryInterface(This,riid,ppvObject)
  1909.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1910. #define IComQCEvents_AddRef(This)
  1911.     (This)->lpVtbl -> AddRef(This)
  1912. #define IComQCEvents_Release(This)
  1913.     (This)->lpVtbl -> Release(This)
  1914. #define IComQCEvents_OnQCRecord(This,pInfo,objid,szQueue,guidMsgId,guidWorkFlowId,msmqhr)
  1915.     (This)->lpVtbl -> OnQCRecord(This,pInfo,objid,szQueue,guidMsgId,guidWorkFlowId,msmqhr)
  1916. #define IComQCEvents_OnQCQueueOpen(This,pInfo,szQueue,QueueID,hr)
  1917.     (This)->lpVtbl -> OnQCQueueOpen(This,pInfo,szQueue,QueueID,hr)
  1918. #define IComQCEvents_OnQCReceive(This,pInfo,QueueID,guidMsgId,guidWorkFlowId,hr)
  1919.     (This)->lpVtbl -> OnQCReceive(This,pInfo,QueueID,guidMsgId,guidWorkFlowId,hr)
  1920. #define IComQCEvents_OnQCReceiveFail(This,pInfo,QueueID,msmqhr)
  1921.     (This)->lpVtbl -> OnQCReceiveFail(This,pInfo,QueueID,msmqhr)
  1922. #define IComQCEvents_OnQCMoveToReTryQueue(This,pInfo,guidMsgId,guidWorkFlowId,RetryIndex)
  1923.     (This)->lpVtbl -> OnQCMoveToReTryQueue(This,pInfo,guidMsgId,guidWorkFlowId,RetryIndex)
  1924. #define IComQCEvents_OnQCMoveToDeadQueue(This,pInfo,guidMsgId,guidWorkFlowId)
  1925.     (This)->lpVtbl -> OnQCMoveToDeadQueue(This,pInfo,guidMsgId,guidWorkFlowId)
  1926. #define IComQCEvents_OnQCPlayback(This,pInfo,objid,guidMsgId,guidWorkFlowId,hr)
  1927.     (This)->lpVtbl -> OnQCPlayback(This,pInfo,objid,guidMsgId,guidWorkFlowId,hr)
  1928. #endif /* COBJMACROS */
  1929. #endif  /* C style interface */
  1930. HRESULT STDMETHODCALLTYPE IComQCEvents_OnQCRecord_Proxy( 
  1931.     IComQCEvents * This,
  1932.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  1933.     /* [in] */ ULONG64 objid,
  1934.     /* [in] */ WCHAR szQueue[ 60 ],
  1935.     /* [in] */ REFGUID guidMsgId,
  1936.     /* [in] */ REFGUID guidWorkFlowId,
  1937.     /* [in] */ HRESULT msmqhr);
  1938. void __RPC_STUB IComQCEvents_OnQCRecord_Stub(
  1939.     IRpcStubBuffer *This,
  1940.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1941.     PRPC_MESSAGE _pRpcMessage,
  1942.     DWORD *_pdwStubPhase);
  1943. HRESULT STDMETHODCALLTYPE IComQCEvents_OnQCQueueOpen_Proxy( 
  1944.     IComQCEvents * This,
  1945.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  1946.     /* [in] */ WCHAR szQueue[ 60 ],
  1947.     /* [in] */ ULONG64 QueueID,
  1948.     /* [in] */ HRESULT hr);
  1949. void __RPC_STUB IComQCEvents_OnQCQueueOpen_Stub(
  1950.     IRpcStubBuffer *This,
  1951.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1952.     PRPC_MESSAGE _pRpcMessage,
  1953.     DWORD *_pdwStubPhase);
  1954. HRESULT STDMETHODCALLTYPE IComQCEvents_OnQCReceive_Proxy( 
  1955.     IComQCEvents * This,
  1956.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  1957.     /* [in] */ ULONG64 QueueID,
  1958.     /* [in] */ REFGUID guidMsgId,
  1959.     /* [in] */ REFGUID guidWorkFlowId,
  1960.     /* [in] */ HRESULT hr);
  1961. void __RPC_STUB IComQCEvents_OnQCReceive_Stub(
  1962.     IRpcStubBuffer *This,
  1963.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1964.     PRPC_MESSAGE _pRpcMessage,
  1965.     DWORD *_pdwStubPhase);
  1966. HRESULT STDMETHODCALLTYPE IComQCEvents_OnQCReceiveFail_Proxy( 
  1967.     IComQCEvents * This,
  1968.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  1969.     /* [in] */ ULONG64 QueueID,
  1970.     /* [in] */ HRESULT msmqhr);
  1971. void __RPC_STUB IComQCEvents_OnQCReceiveFail_Stub(
  1972.     IRpcStubBuffer *This,
  1973.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1974.     PRPC_MESSAGE _pRpcMessage,
  1975.     DWORD *_pdwStubPhase);
  1976. HRESULT STDMETHODCALLTYPE IComQCEvents_OnQCMoveToReTryQueue_Proxy( 
  1977.     IComQCEvents * This,
  1978.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  1979.     /* [in] */ REFGUID guidMsgId,
  1980.     /* [in] */ REFGUID guidWorkFlowId,
  1981.     /* [in] */ ULONG RetryIndex);
  1982. void __RPC_STUB IComQCEvents_OnQCMoveToReTryQueue_Stub(
  1983.     IRpcStubBuffer *This,
  1984.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1985.     PRPC_MESSAGE _pRpcMessage,
  1986.     DWORD *_pdwStubPhase);
  1987. HRESULT STDMETHODCALLTYPE IComQCEvents_OnQCMoveToDeadQueue_Proxy( 
  1988.     IComQCEvents * This,
  1989.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  1990.     /* [in] */ REFGUID guidMsgId,
  1991.     /* [in] */ REFGUID guidWorkFlowId);
  1992. void __RPC_STUB IComQCEvents_OnQCMoveToDeadQueue_Stub(
  1993.     IRpcStubBuffer *This,
  1994.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1995.     PRPC_MESSAGE _pRpcMessage,
  1996.     DWORD *_pdwStubPhase);
  1997. HRESULT STDMETHODCALLTYPE IComQCEvents_OnQCPlayback_Proxy( 
  1998.     IComQCEvents * This,
  1999.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2000.     /* [in] */ ULONG64 objid,
  2001.     /* [in] */ REFGUID guidMsgId,
  2002.     /* [in] */ REFGUID guidWorkFlowId,
  2003.     /* [in] */ HRESULT hr);
  2004. void __RPC_STUB IComQCEvents_OnQCPlayback_Stub(
  2005.     IRpcStubBuffer *This,
  2006.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2007.     PRPC_MESSAGE _pRpcMessage,
  2008.     DWORD *_pdwStubPhase);
  2009. #endif  /* __IComQCEvents_INTERFACE_DEFINED__ */
  2010. #ifndef __IComExceptionEvents_INTERFACE_DEFINED__
  2011. #define __IComExceptionEvents_INTERFACE_DEFINED__
  2012. /* interface IComExceptionEvents */
  2013. /* [uuid][hidden][object] */ 
  2014. EXTERN_C const IID IID_IComExceptionEvents;
  2015. #if defined(__cplusplus) && !defined(CINTERFACE)
  2016.     
  2017.     MIDL_INTERFACE("683130B3-2E50-11d2-98A5-00C04F8EE1C4")
  2018.     IComExceptionEvents : public IUnknown
  2019.     {
  2020.     public:
  2021.         virtual HRESULT STDMETHODCALLTYPE OnExceptionUser( 
  2022.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2023.             /* [in] */ ULONG code,
  2024.             /* [in] */ ULONG64 address,
  2025.             /* [in] */ LPCOLESTR pszStackTrace) = 0;
  2026.         
  2027.     };
  2028.     
  2029. #else  /* C style interface */
  2030.     typedef struct IComExceptionEventsVtbl
  2031.     {
  2032.         BEGIN_INTERFACE
  2033.         
  2034.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  2035.             IComExceptionEvents * This,
  2036.             /* [in] */ REFIID riid,
  2037.             /* [iid_is][out] */ void **ppvObject);
  2038.         
  2039.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  2040.             IComExceptionEvents * This);
  2041.         
  2042.         ULONG ( STDMETHODCALLTYPE *Release )( 
  2043.             IComExceptionEvents * This);
  2044.         
  2045.         HRESULT ( STDMETHODCALLTYPE *OnExceptionUser )( 
  2046.             IComExceptionEvents * This,
  2047.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2048.             /* [in] */ ULONG code,
  2049.             /* [in] */ ULONG64 address,
  2050.             /* [in] */ LPCOLESTR pszStackTrace);
  2051.         
  2052.         END_INTERFACE
  2053.     } IComExceptionEventsVtbl;
  2054.     interface IComExceptionEvents
  2055.     {
  2056.         CONST_VTBL struct IComExceptionEventsVtbl *lpVtbl;
  2057.     };
  2058.     
  2059. #ifdef COBJMACROS
  2060. #define IComExceptionEvents_QueryInterface(This,riid,ppvObject)
  2061.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2062. #define IComExceptionEvents_AddRef(This)
  2063.     (This)->lpVtbl -> AddRef(This)
  2064. #define IComExceptionEvents_Release(This)
  2065.     (This)->lpVtbl -> Release(This)
  2066. #define IComExceptionEvents_OnExceptionUser(This,pInfo,code,address,pszStackTrace)
  2067.     (This)->lpVtbl -> OnExceptionUser(This,pInfo,code,address,pszStackTrace)
  2068. #endif /* COBJMACROS */
  2069. #endif  /* C style interface */
  2070. HRESULT STDMETHODCALLTYPE IComExceptionEvents_OnExceptionUser_Proxy( 
  2071.     IComExceptionEvents * This,
  2072.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2073.     /* [in] */ ULONG code,
  2074.     /* [in] */ ULONG64 address,
  2075.     /* [in] */ LPCOLESTR pszStackTrace);
  2076. void __RPC_STUB IComExceptionEvents_OnExceptionUser_Stub(
  2077.     IRpcStubBuffer *This,
  2078.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2079.     PRPC_MESSAGE _pRpcMessage,
  2080.     DWORD *_pdwStubPhase);
  2081. #endif  /* __IComExceptionEvents_INTERFACE_DEFINED__ */
  2082. #ifndef __ILBEvents_INTERFACE_DEFINED__
  2083. #define __ILBEvents_INTERFACE_DEFINED__
  2084. /* interface ILBEvents */
  2085. /* [uuid][hidden][object] */ 
  2086. EXTERN_C const IID IID_ILBEvents;
  2087. #if defined(__cplusplus) && !defined(CINTERFACE)
  2088.     
  2089.     MIDL_INTERFACE("683130B4-2E50-11d2-98A5-00C04F8EE1C4")
  2090.     ILBEvents : public IUnknown
  2091.     {
  2092.     public:
  2093.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE TargetUp( 
  2094.             BSTR bstrServerName,
  2095.             BSTR bstrClsidEng) = 0;
  2096.         
  2097.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE TargetDown( 
  2098.             BSTR bstrServerName,
  2099.             BSTR bstrClsidEng) = 0;
  2100.         
  2101.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EngineDefined( 
  2102.             BSTR bstrPropName,
  2103.             VARIANT *varPropValue,
  2104.             BSTR bstrClsidEng) = 0;
  2105.         
  2106.     };
  2107.     
  2108. #else  /* C style interface */
  2109.     typedef struct ILBEventsVtbl
  2110.     {
  2111.         BEGIN_INTERFACE
  2112.         
  2113.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  2114.             ILBEvents * This,
  2115.             /* [in] */ REFIID riid,
  2116.             /* [iid_is][out] */ void **ppvObject);
  2117.         
  2118.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  2119.             ILBEvents * This);
  2120.         
  2121.         ULONG ( STDMETHODCALLTYPE *Release )( 
  2122.             ILBEvents * This);
  2123.         
  2124.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *TargetUp )( 
  2125.             ILBEvents * This,
  2126.             BSTR bstrServerName,
  2127.             BSTR bstrClsidEng);
  2128.         
  2129.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *TargetDown )( 
  2130.             ILBEvents * This,
  2131.             BSTR bstrServerName,
  2132.             BSTR bstrClsidEng);
  2133.         
  2134.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EngineDefined )( 
  2135.             ILBEvents * This,
  2136.             BSTR bstrPropName,
  2137.             VARIANT *varPropValue,
  2138.             BSTR bstrClsidEng);
  2139.         
  2140.         END_INTERFACE
  2141.     } ILBEventsVtbl;
  2142.     interface ILBEvents
  2143.     {
  2144.         CONST_VTBL struct ILBEventsVtbl *lpVtbl;
  2145.     };
  2146.     
  2147. #ifdef COBJMACROS
  2148. #define ILBEvents_QueryInterface(This,riid,ppvObject)
  2149.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2150. #define ILBEvents_AddRef(This)
  2151.     (This)->lpVtbl -> AddRef(This)
  2152. #define ILBEvents_Release(This)
  2153.     (This)->lpVtbl -> Release(This)
  2154. #define ILBEvents_TargetUp(This,bstrServerName,bstrClsidEng)
  2155.     (This)->lpVtbl -> TargetUp(This,bstrServerName,bstrClsidEng)
  2156. #define ILBEvents_TargetDown(This,bstrServerName,bstrClsidEng)
  2157.     (This)->lpVtbl -> TargetDown(This,bstrServerName,bstrClsidEng)
  2158. #define ILBEvents_EngineDefined(This,bstrPropName,varPropValue,bstrClsidEng)
  2159.     (This)->lpVtbl -> EngineDefined(This,bstrPropName,varPropValue,bstrClsidEng)
  2160. #endif /* COBJMACROS */
  2161. #endif  /* C style interface */
  2162. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ILBEvents_TargetUp_Proxy( 
  2163.     ILBEvents * This,
  2164.     BSTR bstrServerName,
  2165.     BSTR bstrClsidEng);
  2166. void __RPC_STUB ILBEvents_TargetUp_Stub(
  2167.     IRpcStubBuffer *This,
  2168.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2169.     PRPC_MESSAGE _pRpcMessage,
  2170.     DWORD *_pdwStubPhase);
  2171. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ILBEvents_TargetDown_Proxy( 
  2172.     ILBEvents * This,
  2173.     BSTR bstrServerName,
  2174.     BSTR bstrClsidEng);
  2175. void __RPC_STUB ILBEvents_TargetDown_Stub(
  2176.     IRpcStubBuffer *This,
  2177.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2178.     PRPC_MESSAGE _pRpcMessage,
  2179.     DWORD *_pdwStubPhase);
  2180. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ILBEvents_EngineDefined_Proxy( 
  2181.     ILBEvents * This,
  2182.     BSTR bstrPropName,
  2183.     VARIANT *varPropValue,
  2184.     BSTR bstrClsidEng);
  2185. void __RPC_STUB ILBEvents_EngineDefined_Stub(
  2186.     IRpcStubBuffer *This,
  2187.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2188.     PRPC_MESSAGE _pRpcMessage,
  2189.     DWORD *_pdwStubPhase);
  2190. #endif  /* __ILBEvents_INTERFACE_DEFINED__ */
  2191. #ifndef __IComCRMEvents_INTERFACE_DEFINED__
  2192. #define __IComCRMEvents_INTERFACE_DEFINED__
  2193. /* interface IComCRMEvents */
  2194. /* [uuid][hidden][object] */ 
  2195. EXTERN_C const IID IID_IComCRMEvents;
  2196. #if defined(__cplusplus) && !defined(CINTERFACE)
  2197.     
  2198.     MIDL_INTERFACE("683130B5-2E50-11d2-98A5-00C04F8EE1C4")
  2199.     IComCRMEvents : public IUnknown
  2200.     {
  2201.     public:
  2202.         virtual HRESULT STDMETHODCALLTYPE OnCRMRecoveryStart( 
  2203.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2204.             /* [in] */ GUID guidApp) = 0;
  2205.         
  2206.         virtual HRESULT STDMETHODCALLTYPE OnCRMRecoveryDone( 
  2207.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2208.             /* [in] */ GUID guidApp) = 0;
  2209.         
  2210.         virtual HRESULT STDMETHODCALLTYPE OnCRMCheckpoint( 
  2211.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2212.             /* [in] */ GUID guidApp) = 0;
  2213.         
  2214.         virtual HRESULT STDMETHODCALLTYPE OnCRMBegin( 
  2215.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2216.             /* [in] */ GUID guidClerkCLSID,
  2217.             /* [in] */ GUID guidActivity,
  2218.             /* [in] */ GUID guidTx,
  2219.             /* [in] */ WCHAR szProgIdCompensator[ 64 ],
  2220.             /* [in] */ WCHAR szDescription[ 64 ]) = 0;
  2221.         
  2222.         virtual HRESULT STDMETHODCALLTYPE OnCRMPrepare( 
  2223.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2224.             /* [in] */ GUID guidClerkCLSID) = 0;
  2225.         
  2226.         virtual HRESULT STDMETHODCALLTYPE OnCRMCommit( 
  2227.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2228.             /* [in] */ GUID guidClerkCLSID) = 0;
  2229.         
  2230.         virtual HRESULT STDMETHODCALLTYPE OnCRMAbort( 
  2231.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2232.             /* [in] */ GUID guidClerkCLSID) = 0;
  2233.         
  2234.         virtual HRESULT STDMETHODCALLTYPE OnCRMIndoubt( 
  2235.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2236.             /* [in] */ GUID guidClerkCLSID) = 0;
  2237.         
  2238.         virtual HRESULT STDMETHODCALLTYPE OnCRMDone( 
  2239.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2240.             /* [in] */ GUID guidClerkCLSID) = 0;
  2241.         
  2242.         virtual HRESULT STDMETHODCALLTYPE OnCRMRelease( 
  2243.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2244.             /* [in] */ GUID guidClerkCLSID) = 0;
  2245.         
  2246.         virtual HRESULT STDMETHODCALLTYPE OnCRMAnalyze( 
  2247.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2248.             /* [in] */ GUID guidClerkCLSID,
  2249.             /* [in] */ DWORD dwCrmRecordType,
  2250.             /* [in] */ DWORD dwRecordSize) = 0;
  2251.         
  2252.         virtual HRESULT STDMETHODCALLTYPE OnCRMWrite( 
  2253.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2254.             /* [in] */ GUID guidClerkCLSID,
  2255.             /* [in] */ BOOL fVariants,
  2256.             /* [in] */ DWORD dwRecordSize) = 0;
  2257.         
  2258.         virtual HRESULT STDMETHODCALLTYPE OnCRMForget( 
  2259.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2260.             /* [in] */ GUID guidClerkCLSID) = 0;
  2261.         
  2262.         virtual HRESULT STDMETHODCALLTYPE OnCRMForce( 
  2263.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2264.             /* [in] */ GUID guidClerkCLSID) = 0;
  2265.         
  2266.         virtual HRESULT STDMETHODCALLTYPE OnCRMDeliver( 
  2267.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2268.             /* [in] */ GUID guidClerkCLSID,
  2269.             /* [in] */ BOOL fVariants,
  2270.             /* [in] */ DWORD dwRecordSize) = 0;
  2271.         
  2272.     };
  2273.     
  2274. #else  /* C style interface */
  2275.     typedef struct IComCRMEventsVtbl
  2276.     {
  2277.         BEGIN_INTERFACE
  2278.         
  2279.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  2280.             IComCRMEvents * This,
  2281.             /* [in] */ REFIID riid,
  2282.             /* [iid_is][out] */ void **ppvObject);
  2283.         
  2284.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  2285.             IComCRMEvents * This);
  2286.         
  2287.         ULONG ( STDMETHODCALLTYPE *Release )( 
  2288.             IComCRMEvents * This);
  2289.         
  2290.         HRESULT ( STDMETHODCALLTYPE *OnCRMRecoveryStart )( 
  2291.             IComCRMEvents * This,
  2292.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2293.             /* [in] */ GUID guidApp);
  2294.         
  2295.         HRESULT ( STDMETHODCALLTYPE *OnCRMRecoveryDone )( 
  2296.             IComCRMEvents * This,
  2297.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2298.             /* [in] */ GUID guidApp);
  2299.         
  2300.         HRESULT ( STDMETHODCALLTYPE *OnCRMCheckpoint )( 
  2301.             IComCRMEvents * This,
  2302.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2303.             /* [in] */ GUID guidApp);
  2304.         
  2305.         HRESULT ( STDMETHODCALLTYPE *OnCRMBegin )( 
  2306.             IComCRMEvents * This,
  2307.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2308.             /* [in] */ GUID guidClerkCLSID,
  2309.             /* [in] */ GUID guidActivity,
  2310.             /* [in] */ GUID guidTx,
  2311.             /* [in] */ WCHAR szProgIdCompensator[ 64 ],
  2312.             /* [in] */ WCHAR szDescription[ 64 ]);
  2313.         
  2314.         HRESULT ( STDMETHODCALLTYPE *OnCRMPrepare )( 
  2315.             IComCRMEvents * This,
  2316.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2317.             /* [in] */ GUID guidClerkCLSID);
  2318.         
  2319.         HRESULT ( STDMETHODCALLTYPE *OnCRMCommit )( 
  2320.             IComCRMEvents * This,
  2321.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2322.             /* [in] */ GUID guidClerkCLSID);
  2323.         
  2324.         HRESULT ( STDMETHODCALLTYPE *OnCRMAbort )( 
  2325.             IComCRMEvents * This,
  2326.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2327.             /* [in] */ GUID guidClerkCLSID);
  2328.         
  2329.         HRESULT ( STDMETHODCALLTYPE *OnCRMIndoubt )( 
  2330.             IComCRMEvents * This,
  2331.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2332.             /* [in] */ GUID guidClerkCLSID);
  2333.         
  2334.         HRESULT ( STDMETHODCALLTYPE *OnCRMDone )( 
  2335.             IComCRMEvents * This,
  2336.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2337.             /* [in] */ GUID guidClerkCLSID);
  2338.         
  2339.         HRESULT ( STDMETHODCALLTYPE *OnCRMRelease )( 
  2340.             IComCRMEvents * This,
  2341.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2342.             /* [in] */ GUID guidClerkCLSID);
  2343.         
  2344.         HRESULT ( STDMETHODCALLTYPE *OnCRMAnalyze )( 
  2345.             IComCRMEvents * This,
  2346.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2347.             /* [in] */ GUID guidClerkCLSID,
  2348.             /* [in] */ DWORD dwCrmRecordType,
  2349.             /* [in] */ DWORD dwRecordSize);
  2350.         
  2351.         HRESULT ( STDMETHODCALLTYPE *OnCRMWrite )( 
  2352.             IComCRMEvents * This,
  2353.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2354.             /* [in] */ GUID guidClerkCLSID,
  2355.             /* [in] */ BOOL fVariants,
  2356.             /* [in] */ DWORD dwRecordSize);
  2357.         
  2358.         HRESULT ( STDMETHODCALLTYPE *OnCRMForget )( 
  2359.             IComCRMEvents * This,
  2360.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2361.             /* [in] */ GUID guidClerkCLSID);
  2362.         
  2363.         HRESULT ( STDMETHODCALLTYPE *OnCRMForce )( 
  2364.             IComCRMEvents * This,
  2365.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2366.             /* [in] */ GUID guidClerkCLSID);
  2367.         
  2368.         HRESULT ( STDMETHODCALLTYPE *OnCRMDeliver )( 
  2369.             IComCRMEvents * This,
  2370.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2371.             /* [in] */ GUID guidClerkCLSID,
  2372.             /* [in] */ BOOL fVariants,
  2373.             /* [in] */ DWORD dwRecordSize);
  2374.         
  2375.         END_INTERFACE
  2376.     } IComCRMEventsVtbl;
  2377.     interface IComCRMEvents
  2378.     {
  2379.         CONST_VTBL struct IComCRMEventsVtbl *lpVtbl;
  2380.     };
  2381.     
  2382. #ifdef COBJMACROS
  2383. #define IComCRMEvents_QueryInterface(This,riid,ppvObject)
  2384.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2385. #define IComCRMEvents_AddRef(This)
  2386.     (This)->lpVtbl -> AddRef(This)
  2387. #define IComCRMEvents_Release(This)
  2388.     (This)->lpVtbl -> Release(This)
  2389. #define IComCRMEvents_OnCRMRecoveryStart(This,pInfo,guidApp)
  2390.     (This)->lpVtbl -> OnCRMRecoveryStart(This,pInfo,guidApp)
  2391. #define IComCRMEvents_OnCRMRecoveryDone(This,pInfo,guidApp)
  2392.     (This)->lpVtbl -> OnCRMRecoveryDone(This,pInfo,guidApp)
  2393. #define IComCRMEvents_OnCRMCheckpoint(This,pInfo,guidApp)
  2394.     (This)->lpVtbl -> OnCRMCheckpoint(This,pInfo,guidApp)
  2395. #define IComCRMEvents_OnCRMBegin(This,pInfo,guidClerkCLSID,guidActivity,guidTx,szProgIdCompensator,szDescription)
  2396.     (This)->lpVtbl -> OnCRMBegin(This,pInfo,guidClerkCLSID,guidActivity,guidTx,szProgIdCompensator,szDescription)
  2397. #define IComCRMEvents_OnCRMPrepare(This,pInfo,guidClerkCLSID)
  2398.     (This)->lpVtbl -> OnCRMPrepare(This,pInfo,guidClerkCLSID)
  2399. #define IComCRMEvents_OnCRMCommit(This,pInfo,guidClerkCLSID)
  2400.     (This)->lpVtbl -> OnCRMCommit(This,pInfo,guidClerkCLSID)
  2401. #define IComCRMEvents_OnCRMAbort(This,pInfo,guidClerkCLSID)
  2402.     (This)->lpVtbl -> OnCRMAbort(This,pInfo,guidClerkCLSID)
  2403. #define IComCRMEvents_OnCRMIndoubt(This,pInfo,guidClerkCLSID)
  2404.     (This)->lpVtbl -> OnCRMIndoubt(This,pInfo,guidClerkCLSID)
  2405. #define IComCRMEvents_OnCRMDone(This,pInfo,guidClerkCLSID)
  2406.     (This)->lpVtbl -> OnCRMDone(This,pInfo,guidClerkCLSID)
  2407. #define IComCRMEvents_OnCRMRelease(This,pInfo,guidClerkCLSID)
  2408.     (This)->lpVtbl -> OnCRMRelease(This,pInfo,guidClerkCLSID)
  2409. #define IComCRMEvents_OnCRMAnalyze(This,pInfo,guidClerkCLSID,dwCrmRecordType,dwRecordSize)
  2410.     (This)->lpVtbl -> OnCRMAnalyze(This,pInfo,guidClerkCLSID,dwCrmRecordType,dwRecordSize)
  2411. #define IComCRMEvents_OnCRMWrite(This,pInfo,guidClerkCLSID,fVariants,dwRecordSize)
  2412.     (This)->lpVtbl -> OnCRMWrite(This,pInfo,guidClerkCLSID,fVariants,dwRecordSize)
  2413. #define IComCRMEvents_OnCRMForget(This,pInfo,guidClerkCLSID)
  2414.     (This)->lpVtbl -> OnCRMForget(This,pInfo,guidClerkCLSID)
  2415. #define IComCRMEvents_OnCRMForce(This,pInfo,guidClerkCLSID)
  2416.     (This)->lpVtbl -> OnCRMForce(This,pInfo,guidClerkCLSID)
  2417. #define IComCRMEvents_OnCRMDeliver(This,pInfo,guidClerkCLSID,fVariants,dwRecordSize)
  2418.     (This)->lpVtbl -> OnCRMDeliver(This,pInfo,guidClerkCLSID,fVariants,dwRecordSize)
  2419. #endif /* COBJMACROS */
  2420. #endif  /* C style interface */
  2421. HRESULT STDMETHODCALLTYPE IComCRMEvents_OnCRMRecoveryStart_Proxy( 
  2422.     IComCRMEvents * This,
  2423.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2424.     /* [in] */ GUID guidApp);
  2425. void __RPC_STUB IComCRMEvents_OnCRMRecoveryStart_Stub(
  2426.     IRpcStubBuffer *This,
  2427.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2428.     PRPC_MESSAGE _pRpcMessage,
  2429.     DWORD *_pdwStubPhase);
  2430. HRESULT STDMETHODCALLTYPE IComCRMEvents_OnCRMRecoveryDone_Proxy( 
  2431.     IComCRMEvents * This,
  2432.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2433.     /* [in] */ GUID guidApp);
  2434. void __RPC_STUB IComCRMEvents_OnCRMRecoveryDone_Stub(
  2435.     IRpcStubBuffer *This,
  2436.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2437.     PRPC_MESSAGE _pRpcMessage,
  2438.     DWORD *_pdwStubPhase);
  2439. HRESULT STDMETHODCALLTYPE IComCRMEvents_OnCRMCheckpoint_Proxy( 
  2440.     IComCRMEvents * This,
  2441.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2442.     /* [in] */ GUID guidApp);
  2443. void __RPC_STUB IComCRMEvents_OnCRMCheckpoint_Stub(
  2444.     IRpcStubBuffer *This,
  2445.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2446.     PRPC_MESSAGE _pRpcMessage,
  2447.     DWORD *_pdwStubPhase);
  2448. HRESULT STDMETHODCALLTYPE IComCRMEvents_OnCRMBegin_Proxy( 
  2449.     IComCRMEvents * This,
  2450.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2451.     /* [in] */ GUID guidClerkCLSID,
  2452.     /* [in] */ GUID guidActivity,
  2453.     /* [in] */ GUID guidTx,
  2454.     /* [in] */ WCHAR szProgIdCompensator[ 64 ],
  2455.     /* [in] */ WCHAR szDescription[ 64 ]);
  2456. void __RPC_STUB IComCRMEvents_OnCRMBegin_Stub(
  2457.     IRpcStubBuffer *This,
  2458.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2459.     PRPC_MESSAGE _pRpcMessage,
  2460.     DWORD *_pdwStubPhase);
  2461. HRESULT STDMETHODCALLTYPE IComCRMEvents_OnCRMPrepare_Proxy( 
  2462.     IComCRMEvents * This,
  2463.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2464.     /* [in] */ GUID guidClerkCLSID);
  2465. void __RPC_STUB IComCRMEvents_OnCRMPrepare_Stub(
  2466.     IRpcStubBuffer *This,
  2467.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2468.     PRPC_MESSAGE _pRpcMessage,
  2469.     DWORD *_pdwStubPhase);
  2470. HRESULT STDMETHODCALLTYPE IComCRMEvents_OnCRMCommit_Proxy( 
  2471.     IComCRMEvents * This,
  2472.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2473.     /* [in] */ GUID guidClerkCLSID);
  2474. void __RPC_STUB IComCRMEvents_OnCRMCommit_Stub(
  2475.     IRpcStubBuffer *This,
  2476.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2477.     PRPC_MESSAGE _pRpcMessage,
  2478.     DWORD *_pdwStubPhase);
  2479. HRESULT STDMETHODCALLTYPE IComCRMEvents_OnCRMAbort_Proxy( 
  2480.     IComCRMEvents * This,
  2481.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2482.     /* [in] */ GUID guidClerkCLSID);
  2483. void __RPC_STUB IComCRMEvents_OnCRMAbort_Stub(
  2484.     IRpcStubBuffer *This,
  2485.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2486.     PRPC_MESSAGE _pRpcMessage,
  2487.     DWORD *_pdwStubPhase);
  2488. HRESULT STDMETHODCALLTYPE IComCRMEvents_OnCRMIndoubt_Proxy( 
  2489.     IComCRMEvents * This,
  2490.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2491.     /* [in] */ GUID guidClerkCLSID);
  2492. void __RPC_STUB IComCRMEvents_OnCRMIndoubt_Stub(
  2493.     IRpcStubBuffer *This,
  2494.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2495.     PRPC_MESSAGE _pRpcMessage,
  2496.     DWORD *_pdwStubPhase);
  2497. HRESULT STDMETHODCALLTYPE IComCRMEvents_OnCRMDone_Proxy( 
  2498.     IComCRMEvents * This,
  2499.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2500.     /* [in] */ GUID guidClerkCLSID);
  2501. void __RPC_STUB IComCRMEvents_OnCRMDone_Stub(
  2502.     IRpcStubBuffer *This,
  2503.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2504.     PRPC_MESSAGE _pRpcMessage,
  2505.     DWORD *_pdwStubPhase);
  2506. HRESULT STDMETHODCALLTYPE IComCRMEvents_OnCRMRelease_Proxy( 
  2507.     IComCRMEvents * This,
  2508.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2509.     /* [in] */ GUID guidClerkCLSID);
  2510. void __RPC_STUB IComCRMEvents_OnCRMRelease_Stub(
  2511.     IRpcStubBuffer *This,
  2512.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2513.     PRPC_MESSAGE _pRpcMessage,
  2514.     DWORD *_pdwStubPhase);
  2515. HRESULT STDMETHODCALLTYPE IComCRMEvents_OnCRMAnalyze_Proxy( 
  2516.     IComCRMEvents * This,
  2517.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2518.     /* [in] */ GUID guidClerkCLSID,
  2519.     /* [in] */ DWORD dwCrmRecordType,
  2520.     /* [in] */ DWORD dwRecordSize);
  2521. void __RPC_STUB IComCRMEvents_OnCRMAnalyze_Stub(
  2522.     IRpcStubBuffer *This,
  2523.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2524.     PRPC_MESSAGE _pRpcMessage,
  2525.     DWORD *_pdwStubPhase);
  2526. HRESULT STDMETHODCALLTYPE IComCRMEvents_OnCRMWrite_Proxy( 
  2527.     IComCRMEvents * This,
  2528.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2529.     /* [in] */ GUID guidClerkCLSID,
  2530.     /* [in] */ BOOL fVariants,
  2531.     /* [in] */ DWORD dwRecordSize);
  2532. void __RPC_STUB IComCRMEvents_OnCRMWrite_Stub(
  2533.     IRpcStubBuffer *This,
  2534.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2535.     PRPC_MESSAGE _pRpcMessage,
  2536.     DWORD *_pdwStubPhase);
  2537. HRESULT STDMETHODCALLTYPE IComCRMEvents_OnCRMForget_Proxy( 
  2538.     IComCRMEvents * This,
  2539.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2540.     /* [in] */ GUID guidClerkCLSID);
  2541. void __RPC_STUB IComCRMEvents_OnCRMForget_Stub(
  2542.     IRpcStubBuffer *This,
  2543.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2544.     PRPC_MESSAGE _pRpcMessage,
  2545.     DWORD *_pdwStubPhase);
  2546. HRESULT STDMETHODCALLTYPE IComCRMEvents_OnCRMForce_Proxy( 
  2547.     IComCRMEvents * This,
  2548.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2549.     /* [in] */ GUID guidClerkCLSID);
  2550. void __RPC_STUB IComCRMEvents_OnCRMForce_Stub(
  2551.     IRpcStubBuffer *This,
  2552.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2553.     PRPC_MESSAGE _pRpcMessage,
  2554.     DWORD *_pdwStubPhase);
  2555. HRESULT STDMETHODCALLTYPE IComCRMEvents_OnCRMDeliver_Proxy( 
  2556.     IComCRMEvents * This,
  2557.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2558.     /* [in] */ GUID guidClerkCLSID,
  2559.     /* [in] */ BOOL fVariants,
  2560.     /* [in] */ DWORD dwRecordSize);
  2561. void __RPC_STUB IComCRMEvents_OnCRMDeliver_Stub(
  2562.     IRpcStubBuffer *This,
  2563.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2564.     PRPC_MESSAGE _pRpcMessage,
  2565.     DWORD *_pdwStubPhase);
  2566. #endif  /* __IComCRMEvents_INTERFACE_DEFINED__ */
  2567. #ifndef __IComMethod2Events_INTERFACE_DEFINED__
  2568. #define __IComMethod2Events_INTERFACE_DEFINED__
  2569. /* interface IComMethod2Events */
  2570. /* [uuid][hidden][object] */ 
  2571. EXTERN_C const IID IID_IComMethod2Events;
  2572. #if defined(__cplusplus) && !defined(CINTERFACE)
  2573.     
  2574.     MIDL_INTERFACE("FB388AAA-567D-4024-AF8E-6E93EE748573")
  2575.     IComMethod2Events : public IUnknown
  2576.     {
  2577.     public:
  2578.         virtual HRESULT STDMETHODCALLTYPE OnMethodCall2( 
  2579.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2580.             /* [in] */ ULONG64 oid,
  2581.             /* [in] */ REFCLSID guidCid,
  2582.             /* [in] */ REFIID guidRid,
  2583.             /* [in] */ DWORD dwThread,
  2584.             /* [in] */ ULONG iMeth) = 0;
  2585.         
  2586.         virtual HRESULT STDMETHODCALLTYPE OnMethodReturn2( 
  2587.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2588.             /* [in] */ ULONG64 oid,
  2589.             /* [in] */ REFCLSID guidCid,
  2590.             /* [in] */ REFIID guidRid,
  2591.             /* [in] */ DWORD dwThread,
  2592.             /* [in] */ ULONG iMeth,
  2593.             /* [in] */ HRESULT hresult) = 0;
  2594.         
  2595.         virtual HRESULT STDMETHODCALLTYPE OnMethodException2( 
  2596.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2597.             /* [in] */ ULONG64 oid,
  2598.             /* [in] */ REFCLSID guidCid,
  2599.             /* [in] */ REFIID guidRid,
  2600.             /* [in] */ DWORD dwThread,
  2601.             /* [in] */ ULONG iMeth) = 0;
  2602.         
  2603.     };
  2604.     
  2605. #else  /* C style interface */
  2606.     typedef struct IComMethod2EventsVtbl
  2607.     {
  2608.         BEGIN_INTERFACE
  2609.         
  2610.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  2611.             IComMethod2Events * This,
  2612.             /* [in] */ REFIID riid,
  2613.             /* [iid_is][out] */ void **ppvObject);
  2614.         
  2615.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  2616.             IComMethod2Events * This);
  2617.         
  2618.         ULONG ( STDMETHODCALLTYPE *Release )( 
  2619.             IComMethod2Events * This);
  2620.         
  2621.         HRESULT ( STDMETHODCALLTYPE *OnMethodCall2 )( 
  2622.             IComMethod2Events * This,
  2623.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2624.             /* [in] */ ULONG64 oid,
  2625.             /* [in] */ REFCLSID guidCid,
  2626.             /* [in] */ REFIID guidRid,
  2627.             /* [in] */ DWORD dwThread,
  2628.             /* [in] */ ULONG iMeth);
  2629.         
  2630.         HRESULT ( STDMETHODCALLTYPE *OnMethodReturn2 )( 
  2631.             IComMethod2Events * This,
  2632.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2633.             /* [in] */ ULONG64 oid,
  2634.             /* [in] */ REFCLSID guidCid,
  2635.             /* [in] */ REFIID guidRid,
  2636.             /* [in] */ DWORD dwThread,
  2637.             /* [in] */ ULONG iMeth,
  2638.             /* [in] */ HRESULT hresult);
  2639.         
  2640.         HRESULT ( STDMETHODCALLTYPE *OnMethodException2 )( 
  2641.             IComMethod2Events * This,
  2642.             /* [in] */ COMSVCSEVENTINFO *pInfo,
  2643.             /* [in] */ ULONG64 oid,
  2644.             /* [in] */ REFCLSID guidCid,
  2645.             /* [in] */ REFIID guidRid,
  2646.             /* [in] */ DWORD dwThread,
  2647.             /* [in] */ ULONG iMeth);
  2648.         
  2649.         END_INTERFACE
  2650.     } IComMethod2EventsVtbl;
  2651.     interface IComMethod2Events
  2652.     {
  2653.         CONST_VTBL struct IComMethod2EventsVtbl *lpVtbl;
  2654.     };
  2655.     
  2656. #ifdef COBJMACROS
  2657. #define IComMethod2Events_QueryInterface(This,riid,ppvObject)
  2658.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2659. #define IComMethod2Events_AddRef(This)
  2660.     (This)->lpVtbl -> AddRef(This)
  2661. #define IComMethod2Events_Release(This)
  2662.     (This)->lpVtbl -> Release(This)
  2663. #define IComMethod2Events_OnMethodCall2(This,pInfo,oid,guidCid,guidRid,dwThread,iMeth)
  2664.     (This)->lpVtbl -> OnMethodCall2(This,pInfo,oid,guidCid,guidRid,dwThread,iMeth)
  2665. #define IComMethod2Events_OnMethodReturn2(This,pInfo,oid,guidCid,guidRid,dwThread,iMeth,hresult)
  2666.     (This)->lpVtbl -> OnMethodReturn2(This,pInfo,oid,guidCid,guidRid,dwThread,iMeth,hresult)
  2667. #define IComMethod2Events_OnMethodException2(This,pInfo,oid,guidCid,guidRid,dwThread,iMeth)
  2668.     (This)->lpVtbl -> OnMethodException2(This,pInfo,oid,guidCid,guidRid,dwThread,iMeth)
  2669. #endif /* COBJMACROS */
  2670. #endif  /* C style interface */
  2671. HRESULT STDMETHODCALLTYPE IComMethod2Events_OnMethodCall2_Proxy( 
  2672.     IComMethod2Events * This,
  2673.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2674.     /* [in] */ ULONG64 oid,
  2675.     /* [in] */ REFCLSID guidCid,
  2676.     /* [in] */ REFIID guidRid,
  2677.     /* [in] */ DWORD dwThread,
  2678.     /* [in] */ ULONG iMeth);
  2679. void __RPC_STUB IComMethod2Events_OnMethodCall2_Stub(
  2680.     IRpcStubBuffer *This,
  2681.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2682.     PRPC_MESSAGE _pRpcMessage,
  2683.     DWORD *_pdwStubPhase);
  2684. HRESULT STDMETHODCALLTYPE IComMethod2Events_OnMethodReturn2_Proxy( 
  2685.     IComMethod2Events * This,
  2686.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2687.     /* [in] */ ULONG64 oid,
  2688.     /* [in] */ REFCLSID guidCid,
  2689.     /* [in] */ REFIID guidRid,
  2690.     /* [in] */ DWORD dwThread,
  2691.     /* [in] */ ULONG iMeth,
  2692.     /* [in] */ HRESULT hresult);
  2693. void __RPC_STUB IComMethod2Events_OnMethodReturn2_Stub(
  2694.     IRpcStubBuffer *This,
  2695.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2696.     PRPC_MESSAGE _pRpcMessage,
  2697.     DWORD *_pdwStubPhase);
  2698. HRESULT STDMETHODCALLTYPE IComMethod2Events_OnMethodException2_Proxy( 
  2699.     IComMethod2Events * This,
  2700.     /* [in] */ COMSVCSEVENTINFO *pInfo,
  2701.     /* [in] */ ULONG64 oid,
  2702.     /* [in] */ REFCLSID guidCid,
  2703.     /* [in] */ REFIID guidRid,
  2704.     /* [in] */ DWORD dwThread,
  2705.     /* [in] */ ULONG iMeth);
  2706. void __RPC_STUB IComMethod2Events_OnMethodException2_Stub(
  2707.     IRpcStubBuffer *This,
  2708.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2709.     PRPC_MESSAGE _pRpcMessage,
  2710.     DWORD *_pdwStubPhase);
  2711. #endif  /* __IComMethod2Events_INTERFACE_DEFINED__ */
  2712. #ifndef __IComTrackingInfoEvents_INTERFACE_DEFINED__
  2713. #define __IComTrackingInfoEvents_INTERFACE_DEFINED__
  2714. /* interface IComTrackingInfoEvents */
  2715. /* [uuid][hidden][object] */ 
  2716. EXTERN_C const IID IID_IComTrackingInfoEvents;
  2717. #if defined(__cplusplus) && !defined(CINTERFACE)
  2718.     
  2719.     MIDL_INTERFACE("4e6cdcc9-fb25-4fd5-9cc5-c9f4b6559cec")
  2720.     IComTrackingInfoEvents : public IUnknown
  2721.     {
  2722.     public:
  2723.         virtual HRESULT STDMETHODCALLTYPE OnNewTrackingInfo( 
  2724.             /* [in] */ IUnknown *pToplevelCollection) = 0;
  2725.         
  2726.     };
  2727.     
  2728. #else  /* C style interface */
  2729.     typedef struct IComTrackingInfoEventsVtbl
  2730.     {
  2731.         BEGIN_INTERFACE
  2732.         
  2733.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  2734.             IComTrackingInfoEvents * This,
  2735.             /* [in] */ REFIID riid,
  2736.             /* [iid_is][out] */ void **ppvObject);
  2737.         
  2738.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  2739.             IComTrackingInfoEvents * This);
  2740.         
  2741.         ULONG ( STDMETHODCALLTYPE *Release )( 
  2742.             IComTrackingInfoEvents * This);
  2743.         
  2744.         HRESULT ( STDMETHODCALLTYPE *OnNewTrackingInfo )( 
  2745.             IComTrackingInfoEvents * This,
  2746.             /* [in] */ IUnknown *pToplevelCollection);
  2747.         
  2748.         END_INTERFACE
  2749.     } IComTrackingInfoEventsVtbl;
  2750.     interface IComTrackingInfoEvents
  2751.     {
  2752.         CONST_VTBL struct IComTrackingInfoEventsVtbl *lpVtbl;
  2753.     };
  2754.     
  2755. #ifdef COBJMACROS
  2756. #define IComTrackingInfoEvents_QueryInterface(This,riid,ppvObject)
  2757.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2758. #define IComTrackingInfoEvents_AddRef(This)
  2759.     (This)->lpVtbl -> AddRef(This)
  2760. #define IComTrackingInfoEvents_Release(This)
  2761.     (This)->lpVtbl -> Release(This)
  2762. #define IComTrackingInfoEvents_OnNewTrackingInfo(This,pToplevelCollection)
  2763.     (This)->lpVtbl -> OnNewTrackingInfo(This,pToplevelCollection)
  2764. #endif /* COBJMACROS */
  2765. #endif  /* C style interface */
  2766. HRESULT STDMETHODCALLTYPE IComTrackingInfoEvents_OnNewTrackingInfo_Proxy( 
  2767.     IComTrackingInfoEvents * This,
  2768.     /* [in] */ IUnknown *pToplevelCollection);
  2769. void __RPC_STUB IComTrackingInfoEvents_OnNewTrackingInfo_Stub(
  2770.     IRpcStubBuffer *This,
  2771.     IRpcChannelBuffer *_pRpcChannelBuffer,
  2772.     PRPC_MESSAGE _pRpcMessage,
  2773.     DWORD *_pdwStubPhase);
  2774. #endif  /* __IComTrackingInfoEvents_INTERFACE_DEFINED__ */
  2775. /* interface __MIDL_itf_autosvcs_0314 */
  2776. /* [local] */ 
  2777. typedef /* [public][public] */ 
  2778. enum __MIDL___MIDL_itf_autosvcs_0314_0001
  2779.     { TRKCOLL_PROCESSES = 0,
  2780. TRKCOLL_APPLICATIONS = TRKCOLL_PROCESSES + 1,
  2781. TRKCOLL_COMPONENTS = TRKCOLL_APPLICATIONS + 1
  2782.     }  TRACKING_COLL_TYPE;
  2783. extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0314_v0_0_c_ifspec;
  2784. extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0314_v0_0_s_ifspec;
  2785. #ifndef __IComTrackingInfoCollection_INTERFACE_DEFINED__
  2786. #define __IComTrackingInfoCollection_INTERFACE_DEFINED__
  2787. /* interface IComTrackingInfoCollection */
  2788. /* [uuid][hidden][object] */ 
  2789. EXTERN_C const IID IID_IComTrackingInfoCollection;
  2790. #if defined(__cplusplus) && !defined(CINTERFACE)
  2791.     
  2792.     MIDL_INTERFACE("c266c677-c9ad-49ab-9fd9-d9661078588a")
  2793.     IComTrackingInfoCollection : public IUnknown
  2794.     {
  2795.     public:
  2796.         virtual HRESULT STDMETHODCALLTYPE Type( 
  2797.             /* [out] */ TRACKING_COLL_TYPE *pType) = 0;
  2798.         
  2799.         virtual HRESULT STDMETHODCALLTYPE Count( 
  2800.             /* [out] */ ULONG *pCount) = 0;
  2801.         
  2802.         virtual HRESULT STDMETHODCALLTYPE Item( 
  2803.             /* [in] */ ULONG ulIndex,
  2804.             /* [in] */ REFIID riid,
  2805.             /* [iid_is][out] */ void **ppv) = 0;
  2806.         
  2807.     };
  2808.     
  2809. #else  /* C style interface */
  2810.     typedef struct IComTrackingInfoCollectionVtbl
  2811.     {
  2812.         BEGIN_INTERFACE
  2813.         
  2814.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  2815.             IComTrackingInfoCollection * This,
  2816.             /* [in] */ REFIID riid,
  2817.             /* [iid_is][out] */ void **ppvObject);
  2818.         
  2819.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  2820.             IComTrackingInfoCollection * This);
  2821.         
  2822.         ULONG ( STDMETHODCALLTYPE *Release )( 
  2823.             IComTrackingInfoCollection * This);
  2824.         
  2825.         HRESULT ( STDMETHODCALLTYPE *Type )( 
  2826.             IComTrackingInfoCollection * This,