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

模拟服务器

开发平台:

C/C++

  1. // MSTvCA.idl : IDL source for MSTvCA.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (CA.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. #include "olectl.h"
  8. /* [
  9. object,
  10. dual,
  11. uuid(49a32d3c-7d85-11d2-8895-00c04f794967),
  12. helpstring("ITuneRequest Interface"),
  13. pointer_default(unique)
  14. ]
  15. interface ITuneRequest : IDispatch
  16. {
  17. };
  18. */
  19. import "tuner.idl"; // includes the whole BDA world!  Yecko!
  20. interface ICAManager;
  21. interface ICARequest;
  22. interface ICAPolicy;
  23. interface ICAPolicies;
  24. interface ICAPoliciesInternal;
  25. interface ICAToll;
  26. interface ICATolls;
  27. interface ICATollsInternal;
  28. interface ICADenial;
  29. interface ICADenials;
  30. interface ICAOffer;
  31. interface ICAOffers;
  32. interface ICAComponent;
  33. interface ICAComponents;
  34. #define COLLECTID_Item 0
  35. #define COLLECTID_Count 1
  36. #define COLLECTID_Add 2
  37. #define COLLECTID_Remove 3
  38. #define COLLECTID_AddNew 4
  39. #define COLLECTID_CountDenied 5 // ICADenials
  40. #define COLLECTID_CountSelected 6 // ICADenials
  41. #define COLLECTID_PaySelectedTolls 7 // ICADenials
  42. typedef enum 
  43. {
  44. Unselected = 0,
  45. Selected = 1
  46. } CATollState;
  47. typedef enum 
  48. {
  49. Denied  = 0,
  50. Transient  = 1,
  51. // Allowed  = 2,
  52. DescriptionShort = 10, // one of the description fields changed
  53. DescriptionLong  = 11, //    via a ICADenial::put_Description() 
  54. DescriptionHTML  = 12, // 
  55. DescriptionXML   = 13 //    (keep these current+10 with list below...)
  56. } CADenialState;
  57. typedef enum 
  58. {
  59. Short = 0, // must be numeric, starting at 0.  (Used as array index).
  60. Long = 1, //  in approximatly order of length in bytes
  61. URL = 2,
  62. HTML = 3,
  63. XML = 4,
  64. kDescEnd = 5 // invalid format, 1+ last real one (Used as array length).
  65. } CADescFormat;
  66. typedef enum 
  67. {
  68. Request  = 1,
  69. ComponentX = 2,
  70. Offers   = 4,
  71. PaidTolls = 8,
  72. Policies  = 16,
  73. Standard  = 15, // all put the policies
  74. All = 31 // all
  75. } CAUIDisplayFields;
  76. // ---------------------------------------------------------------
  77. //   if add methods to ICAManagerInternal, be sure to add MAGICCALL in CAManagerProxy too..
  78. // ---------------------------------------------------------------
  79. [
  80. object,
  81. uuid(11166301-DF8A-463a-B620-7BEC23542010),
  82. dual, // Helpers are Dual, IUnknown... so see from VB
  83. hidden, restricted, 
  84. helpstring("ICAManagerInternal Interface"),
  85. pointer_default(unique)
  86. ]
  87. interface ICAManagerInternal : IUnknown
  88. {
  89. [   id(1),   helpstring("method Save")] HRESULT Save();
  90. [   id(2),   helpstring("method Load")] HRESULT Load();
  91. [propput, id(3),   helpstring("property MarkDirty")] HRESULT MarkDirty([in] BOOL fDirty);
  92. [propget, id(3),   helpstring("property MarkDirty")] HRESULT MarkDirty([out, retval] BOOL *pfDirty);
  93. [propput, id(4),   helpstring("property TuneRequest")] HRESULT TuneRequest([in] ITuneRequest *ptunereq);
  94. [   id(5),   helpstring("method GetDefaultUI")] HRESULT GetDefaultUI([out] HWND *phwnd);
  95. [   id(6),   helpstring("method SetDefaultUI")] HRESULT SetDefaultUI([in] HWND hwnd);
  96. // return the main CAManager object, not the proxy one.
  97. [propget, id(7),   helpstring("property CAManagerMain")] HRESULT CAManagerMain([out,retval] ICAManager **ppManagerMain);
  98. [propput, id(8),   helpstring("property BroadcastEventService")] HRESULT BroadcastEventService([in] IBroadcastEvent *pBroadcastEventService);
  99. [propget, id(8),   helpstring("property BroadcastEventService")] HRESULT BroadcastEventService([out, retval] IBroadcastEvent **ppBroadcastEventService);
  100.         [         id(9),   helpstring("method DisplayDefaultUI")]           HRESULT DisplayDefaultUI([in] VARIANT_BOOL fDisplay);
  101.         [         id(10),  helpstring("method EnableDefaultUIPayTollsButton")]  HRESULT EnableDefaultUIPayTollsButton([in] VARIANT_BOOL fEnabled);
  102.         [         id(11),  helpstring("method UpdateDefaultUIForToll")]     HRESULT UpdateDefaultUIForToll([in] ICAToll *pToll,[in] CATollState enState);
  103. [propput, id(12),  helpstring("property TuneRequestInt")] HRESULT TuneRequestInt([in] ITuneRequest *ptunereq);
  104.         [         id(13),  helpstring("method AddDenialsFor")] HRESULT AddDenialsFor([in] IUnknown *pUnk);     // see also ICAManager::get_DenialsFor()
  105.         [         id(14),  helpstring("method RemoveDenialsFor")]           HRESULT RemoveDenialsFor([in] IUnknown *pUnk);
  106. [   id(2201),helpstring("method NotifyRequestActivated")] HRESULT NotifyRequestActivated([in] ICARequest *pReq);
  107. [   id(2202),helpstring("method NotifyRequestDeactivated")] HRESULT NotifyRequestDeactivated([in] ICARequest *pReq);
  108. [   id(2203),helpstring("method NotifyOfferAdded")] HRESULT NotifyOfferAdded([in] ICAOffer *pOffer,[in] long cOffers);
  109. [   id(2204),helpstring("method NotifyOfferRemoved")] HRESULT NotifyOfferRemoved([in] ICAOffer *pOffer,[in] long cOffers);
  110. [   id(2205),helpstring("method NotifyPolicyAdded")] HRESULT NotifyPolicyAdded([in] ICAPolicy *pPolicy,[in] long cPolicies);
  111. [   id(2206),helpstring("method NotifyPolicyRemoved")] HRESULT NotifyPolicyRemoved([in] ICAPolicy *pPolicy,[in] long cPolicies);
  112. [   id(2207),helpstring("method NotifyRequestDenialAdded")] HRESULT NotifyRequestDenialAdded([in] ICARequest *pReq, [in] ICADenial *pDenial,[in] long cDenials);
  113. [   id(2208),helpstring("method NotifyRequestDenialRemoved")] HRESULT NotifyRequestDenialRemoved([in] ICARequest *pReq, [in] ICADenial *pDenial,[in] long cDenials);
  114. [   id(2209),helpstring("method NotifyDenialTollAdded")] HRESULT NotifyDenialTollAdded([in] ICADenial *pDenial, [in] ICAToll *pToll, [in] long cTolls);
  115. [   id(2210),helpstring("method NotifyDenialTollRemoved")] HRESULT NotifyDenialTollRemoved([in] ICADenial *pDenial, [in] ICAToll *pToll, [in] long cTolls);
  116. [   id(2211),helpstring("method NotifyTollDenialAdded")] HRESULT NotifyTollDenialAdded([in] ICAToll *pToll, [in] ICADenial *pDenial,[in] long cDenials);
  117. [   id(2212),helpstring("method NotifyTollDenialRemoved")] HRESULT NotifyTollDenialRemoved([in] ICAToll *pToll, [in] ICADenial *pDenial,[in] long cDenials);
  118. [   id(2213),helpstring("method NotifyOfferTollAdded")] HRESULT NotifyOfferTollAdded([in] ICAOffer *pOffer, [in] ICAToll *pToll, [in] long cTolls);
  119. [   id(2214),helpstring("method NotifyOfferTollRemoved")] HRESULT NotifyOfferTollRemoved([in] ICAOffer *pOffer, [in] ICAToll *pToll, [in] long cTolls);
  120. [         id(2215),helpstring("method NotifyTollStateChanged")] HRESULT NotifyTollStateChanged([in] ICAToll *pToll, [in] CATollState enStateLast);
  121. [         id(2216),helpstring("method NotifyDenialStateChanged")] HRESULT NotifyDenialStateChanged([in] ICADenial *pDenial, [in] CADenialState enStateLast);
  122. [         id(2217),helpstring("method NotifyComponentDenialAdded")] HRESULT NotifyComponentDenialAdded([in] ICAComponent *pReq, [in] ICADenial *pDenial,[in] long cDenials);
  123. [         id(2218),helpstring("method NotifyComponentDenialRemoved")] HRESULT NotifyComponentDenialRemoved([in] ICAComponent *pReq, [in] ICADenial *pDenial,[in] long cDenials);
  124. };
  125. [
  126. object,
  127. uuid(11166302-DF8A-463a-B620-7BEC23542010),
  128. dual, // Helpers are Dual, IUnknown... so see from VB
  129. hidden, restricted, 
  130. helpstring("ICAManagerXProxy Interface"),
  131. pointer_default(unique)
  132. ]
  133. interface ICAManagerXProxy : IUnknown
  134. {
  135.         [propget, id(1),   helpstring("property PunkCAManagerProxy")]                   HRESULT PunkCAManagerProxy([out,retval] IUnknown **ppUnkCAManagerProxy);
  136. [   id(2201),helpstring("method NotifyRequestActivated_XProxy")]          HRESULT NotifyRequestActivated_XProxy([in] ICARequest *pReq);
  137. [   id(2202),helpstring("method NotifyRequestDeactivated_XProxy")]        HRESULT NotifyRequestDeactivated_XProxy([in] ICARequest *pReq);
  138. [   id(2203),helpstring("method NotifyOfferAdded_XProxy")]                HRESULT NotifyOfferAdded_XProxy([in] ICAOffer *pOffer,[in] long cOffers);
  139. [   id(2204),helpstring("method NotifyOfferRemoved_XProxy")]              HRESULT NotifyOfferRemoved_XProxy([in] ICAOffer *pOffer,[in] long cOffers);
  140. [   id(2205),helpstring("method NotifyPolicyAdded_XProxy")]               HRESULT NotifyPolicyAdded_XProxy([in] ICAPolicy *pPolicy,[in] long cPolicies);
  141. [   id(2206),helpstring("method NotifyPolicyRemoved_XProxy")]             HRESULT NotifyPolicyRemoved_XProxy([in] ICAPolicy *pPolicy,[in] long cPolicies);
  142. [   id(2207),helpstring("method NotifyRequestDenialAdded_XProxy")]        HRESULT NotifyRequestDenialAdded_XProxy([in] ICARequest *pReq, [in] ICADenial *pDenial,[in] long cDenials);
  143. [   id(2208),helpstring("method NotifyRequestDenialRemoved_XProxy")]      HRESULT NotifyRequestDenialRemoved_XProxy([in] ICARequest *pReq, [in] ICADenial *pDenial,[in] long cDenials);
  144. [   id(2209),helpstring("method NotifyDenialTollAdded_XProxy")]           HRESULT NotifyDenialTollAdded_XProxy([in] ICADenial *pDenial, [in] ICAToll *pToll, [in] long cTolls);
  145. [   id(2210),helpstring("method NotifyDenialTollRemoved_XProxy")]         HRESULT NotifyDenialTollRemoved_XProxy([in] ICADenial *pDenial, [in] ICAToll *pToll, [in] long cTolls);
  146. [   id(2211),helpstring("method NotifyTollDenialAdded_XProxy")]           HRESULT NotifyTollDenialAdded_XProxy([in] ICAToll *pToll, [in] ICADenial *pDenial,[in] long cDenials);
  147. [   id(2212),helpstring("method NotifyTollDenialRemoved_XProxy")]         HRESULT NotifyTollDenialRemoved_XProxy([in] ICAToll *pToll, [in] ICADenial *pDenial,[in] long cDenials);
  148. [   id(2213),helpstring("method NotifyOfferTollAdded_XProxy")]            HRESULT NotifyOfferTollAdded_XProxy([in] ICAOffer *pOffer, [in] ICAToll *pToll, [in] long cTolls);
  149. [   id(2214),helpstring("method NotifyOfferTollRemoved_XProxy")]          HRESULT NotifyOfferTollRemoved_XProxy([in] ICAOffer *pOffer, [in] ICAToll *pToll, [in] long cTolls);
  150. [         id(2215),helpstring("method NotifyTollStateChanged_XProxy")]          HRESULT NotifyTollStateChanged_XProxy([in] ICAToll *pToll, [in] CATollState enStateLast);
  151. [         id(2216),helpstring("method NotifyDenialStateChanged_XProxy")]        HRESULT NotifyDenialStateChanged_XProxy([in] ICADenial *pDenial, [in] CADenialState enStateLast);
  152. [         id(2217),helpstring("method NotifyComponentDenialAdded_XProxy")]      HRESULT NotifyComponentDenialAdded_XProxy([in] ICAComponent *pReq, [in] ICADenial *pDenial,[in] long cDenials);
  153. [         id(2218),helpstring("method NotifyComponentDenialRemoved_XProxy")]    HRESULT NotifyComponentDenialRemoved_XProxy([in] ICAComponent *pReq, [in] ICADenial *pDenial,[in] long cDenials);
  154. };
  155. // ---------------------------------------------------------------
  156. // ---------------------------------------------------------------
  157. [
  158. object,
  159. uuid(11166420-DF8A-463a-B620-7BEC23542010),
  160. dual,
  161. helpstring("ICAPolicies Interface"),
  162. pointer_default(unique)
  163. ]
  164. interface ICAPolicies : IDispatch
  165. {
  166.         [propget, id(DISPID_NEWENUM), restricted] HRESULT _NewEnum([out, retval] IUnknown **ppCollection);
  167.         [propget, id(COLLECTID_Count)]   HRESULT Count([out, retval] long *Count);
  168.         [propget, id(COLLECTID_Item)]   HRESULT Item([in] VARIANT Index, [out, retval] ICAPolicy **ppPolicy);
  169.         [         id(COLLECTID_Add)]   HRESULT Add([in] ICAPolicy *pPolicy);
  170.         [         id(COLLECTID_Remove)]   HRESULT Remove([in] VARIANT Index);
  171. };
  172. [ object,
  173. uuid(11166421-DF8A-463a-B620-7BEC23542010),
  174. dual,
  175. hidden, restricted, 
  176. helpstring("ICAPoliciesInternal Interface"),
  177. pointer_default(unique)
  178. ]
  179. interface ICAPoliciesInternal : IUnknown
  180. {
  181.  [id(1),helpstring("method SetCAManager")] HRESULT SetCAManager([in] ICAManager *pManager);
  182.  [id(2),helpstring("method CheckRequest")] HRESULT CheckRequest([in] ICARequest *pReq);
  183. };
  184. // ---------------------------------------------------------------
  185. [
  186. object,
  187. uuid(11166430-DF8A-463a-B620-7BEC23542010),
  188. dual,
  189. helpstring("ICATolls Interface"),
  190. pointer_default(unique)
  191. ]
  192. interface ICATolls : IDispatch
  193. {
  194.         [propget, id(DISPID_NEWENUM), restricted] HRESULT _NewEnum([out, retval] IUnknown **ppCollection);
  195.         [propget, id(COLLECTID_Count)] HRESULT Count([out, retval] long *Count);
  196.         [propget, id(COLLECTID_Item)] HRESULT Item([in] VARIANT Index, [out, retval] ICAToll **ppToll);
  197.         [       id(COLLECTID_Add)] HRESULT Add([in] ICAToll *pToll);
  198.         [       id(COLLECTID_Remove)] HRESULT Remove([in] VARIANT Index);
  199. };
  200. [
  201. object,
  202. uuid(11166431-DF8A-463a-B620-7BEC23542010),
  203. dual,
  204. hidden, restricted, 
  205. helpstring("ICATolls Internal Interface"),
  206. pointer_default(unique)
  207. ]
  208. interface ICATollsInternal : IUnknown // workaround for not being able to get _ICAResDenialEvents to work
  209. {
  210.  [   id(1),helpstring("method SetCAManager")] HRESULT SetCAManager([in] ICAManager *pManager);
  211.  [   id(2),helpstring("method GetCAManager")] HRESULT GetCAManager([out] ICAManager **ppManager);
  212.    [   id(3),helpstring("method SetMustPersist")] HRESULT SetMustPersist([in] BOOL fMustPersist);
  213.    [   id(4),helpstring("method Save")] HRESULT Save([in] IStorage *pstore,[in] BSTR bstrPrefix);
  214.  [   id(5),helpstring("method Load")] HRESULT Load([in] IStorage *pstore,[in] BSTR bstrPrefix);
  215.          [       id(6),helpstring("method NotifyStateChanged")] HRESULT NotifyStateChanged([in] ICAToll *pToll, [in] CATollState enStateFrom);
  216.          [       id(7),helpstring("method NotifyTollSelectionChanged")] HRESULT NotifyTollSelectionChanged([in] ICAToll *pToll, [in] BOOL fSelected);
  217.    };
  218. // ---------------------------------------------------------------
  219. [
  220. object,
  221. uuid(11166440-DF8A-463a-B620-7BEC23542010),
  222. dual,
  223. helpstring("ICADenials Interface"),
  224. pointer_default(unique)
  225. ]
  226. interface ICADenials : IDispatch
  227. {
  228.         [propget, id(DISPID_NEWENUM), restricted] HRESULT _NewEnum([out, retval] IUnknown **ppCollection);
  229.         [propget, id(COLLECTID_Count) ] HRESULT Count([out, retval] long *Count);
  230.         [propget, id(COLLECTID_Item)] HRESULT Item([in] VARIANT Index, [out, retval] ICADenial **ppDenial);
  231. [propget, id(COLLECTID_AddNew), helpstring("property AddNew")] HRESULT AddNew([in] ICAPolicy *ppolicy, [in] BSTR bstrShortDesc, [in] IUnknown *pUnkDeniedObject, [in] long enDenialState, [out, retval] ICADenial **ppDenial);
  232.         [         id(COLLECTID_Remove)] HRESULT Remove([in] VARIANT Index);
  233.         [propget, id(COLLECTID_CountDenied)] HRESULT CountDenied([out, retval] long *Count);
  234.         [propget, id(COLLECTID_CountSelected)] HRESULT CountSelected([out, retval] long *Count);
  235.         [   id(COLLECTID_PaySelectedTolls)] HRESULT PaySelectedTolls();
  236. };
  237. [
  238. object,
  239. uuid(11166441-DF8A-463a-B620-7BEC23542010),
  240. dual,
  241. hidden, restricted, 
  242. helpstring("ICADenialsInternal Interface"),
  243. pointer_default(unique)
  244. ]
  245. interface ICADenialsInternal : IUnknown
  246. {
  247. [  id(1),helpstring("method SetCAManager")] HRESULT SetCAManager([in] ICAManager *pManager);
  248. [  id(2),helpstring("method NotifyDenialStateChanged")] HRESULT NotifyDenialStateChanged([in] ICADenial *pDenial, [in] CADenialState enStateLast);
  249.   };
  250. // ---------------------------------------------------------------
  251. [
  252. object,
  253. uuid(11166450-DF8A-463a-B620-7BEC23542010),
  254. dual,
  255. helpstring("ICAOffers Interface"),
  256. pointer_default(unique)
  257. ]
  258. interface ICAOffers : IDispatch
  259. {
  260.         [propget, id(DISPID_NEWENUM) , restricted] HRESULT _NewEnum([out, retval] IUnknown **ppCollection);
  261.         [propget, id(COLLECTID_Count)] HRESULT Count([out, retval] long *Count);
  262.         [propget, id(COLLECTID_Item)] HRESULT Item([in] VARIANT Index, [out, retval] ICAOffer **ppOffer);
  263.         [propget, id(COLLECTID_AddNew), helpstring("property AddNew")] HRESULT AddNew([in] ICAPolicy *pPolicy, [in] BSTR bstrName, [in] DATE dateStart, [in] DATE dateEnd, [out, retval] ICAOffer **ppOffer);
  264.         [   id(COLLECTID_Remove)] HRESULT Remove([in] VARIANT Index);
  265. };
  266. [
  267. object,
  268. uuid(11166470-DF8A-463a-B620-7BEC23542010),
  269. dual,
  270. helpstring("ICAComponents Interface"),
  271. pointer_default(unique)
  272. ]
  273. interface ICAComponents : IDispatch
  274. {
  275.         [propget, id(DISPID_NEWENUM) , restricted] HRESULT _NewEnum([out, retval] IUnknown **ppCollection);
  276.         [propget, id(COLLECTID_Count)] HRESULT Count([out, retval] long *Count);
  277.         [propget, id(COLLECTID_Item)] HRESULT Item([in] VARIANT Index, [out, retval] ICAComponent **ppComponent);
  278.   //      [       id(COLLECTID_Add)] HRESULT Add([in] ICAComponent *pComponent);
  279.   //      [   id(COLLECTID_Remove)] HRESULT Remove([in] VARIANT Index);
  280. };
  281. [
  282. object,
  283. uuid(11166361-DF8A-463a-B620-7BEC23542010),
  284. dual,
  285. hidden,
  286. helpstring("ICAComponentInternal Interface"),
  287. pointer_default(unique)
  288. ]
  289. interface ICAComponentInternal : IUnknown
  290. {
  291. [   id(1), helpstring("method RemoveAllDenials")] HRESULT RemoveAllDenials();
  292. [propget, id(2), helpstring("property Description")] HRESULT Description([in] CADescFormat enFormat, [out, retval] BSTR *pbstrDescription);
  293. };
  294. // ---------------------------------------------------------------
  295.   [
  296.           object,
  297.           uuid(860A3FE2-DED1-40E2-896C-057681A8A1A8),
  298.           dual,
  299.           helpstring("ICADefaultDlg Interface"),
  300.           pointer_default(unique)
  301.   ]
  302.   interface ICADefaultDlg : IDispatch
  303.   {
  304.           [propput, id(DISPID_AUTOSIZE)]
  305.           HRESULT AutoSize([in]VARIANT_BOOL vbool);
  306.           [propget, id(DISPID_AUTOSIZE)]
  307.           HRESULT AutoSize([out,retval]VARIANT_BOOL* pbool);
  308.           [propput, id(DISPID_BACKCOLOR)]
  309.           HRESULT BackColor([in]OLE_COLOR clr);
  310.           [propget, id(DISPID_BACKCOLOR)]
  311.           HRESULT BackColor([out,retval]OLE_COLOR* pclr);
  312.           [propput, id(DISPID_BACKSTYLE)]
  313.           HRESULT BackStyle([in]long style);
  314.           [propget, id(DISPID_BACKSTYLE)]
  315.           HRESULT BackStyle([out,retval]long* pstyle);
  316.           [propput, id(DISPID_BORDERCOLOR)]
  317.           HRESULT BorderColor([in]OLE_COLOR clr);
  318.           [propget, id(DISPID_BORDERCOLOR)]
  319.           HRESULT BorderColor([out, retval]OLE_COLOR* pclr);
  320.           [propput, id(DISPID_BORDERSTYLE)]
  321.           HRESULT BorderStyle([in]long style);
  322.           [propget, id(DISPID_BORDERSTYLE)]
  323.           HRESULT BorderStyle([out, retval]long* pstyle);
  324.           [propput, id(DISPID_BORDERWIDTH)]
  325.           HRESULT BorderWidth([in]long width);
  326.           [propget, id(DISPID_BORDERWIDTH)]
  327.           HRESULT BorderWidth([out, retval]long* width);
  328.           [propput, id(DISPID_DRAWMODE)]
  329.           HRESULT DrawMode([in]long mode);
  330.           [propget, id(DISPID_DRAWMODE)]
  331.           HRESULT DrawMode([out, retval]long* pmode);
  332.           [propput, id(DISPID_DRAWSTYLE)]
  333.           HRESULT DrawStyle([in]long style);
  334.           [propget, id(DISPID_DRAWSTYLE)]
  335.           HRESULT DrawStyle([out, retval]long* pstyle);
  336.           [propput, id(DISPID_DRAWWIDTH)]
  337.           HRESULT DrawWidth([in]long width);
  338.           [propget, id(DISPID_DRAWWIDTH)]
  339.           HRESULT DrawWidth([out, retval]long* pwidth);
  340.           [propput, id(DISPID_FILLCOLOR)]
  341.           HRESULT FillColor([in]OLE_COLOR clr);
  342.           [propget, id(DISPID_FILLCOLOR)]
  343.           HRESULT FillColor([out, retval]OLE_COLOR* pclr);
  344.           [propput, id(DISPID_FILLSTYLE)]
  345.           HRESULT FillStyle([in]long style);
  346.           [propget, id(DISPID_FILLSTYLE)]
  347.           HRESULT FillStyle([out, retval]long* pstyle);
  348.           [propputref, id(DISPID_FONT)]
  349.           HRESULT Font([in]IFontDisp* pFont);
  350.           [propput, id(DISPID_FONT)]
  351.           HRESULT Font([in]IFontDisp* pFont);
  352.           [propget, id(DISPID_FONT)]
  353.           HRESULT Font([out, retval]IFontDisp** ppFont);
  354.           [propput, id(DISPID_FORECOLOR)]
  355.           HRESULT ForeColor([in]OLE_COLOR clr);
  356.           [propget, id(DISPID_FORECOLOR)]
  357.           HRESULT ForeColor([out,retval]OLE_COLOR* pclr);
  358.           [propput, id(DISPID_ENABLED)]
  359.           HRESULT Enabled([in]VARIANT_BOOL vbool);
  360.           [propget, id(DISPID_ENABLED)]
  361.           HRESULT Enabled([out,retval]VARIANT_BOOL* pbool);
  362.           [propget, id(DISPID_HWND)]
  363.           HRESULT Window([out, retval]LONG_PTR* phwnd); // was long* via the wizard, but doesn't compile Win64
  364.           [propput, id(DISPID_TABSTOP)]
  365.           HRESULT TabStop([in]VARIANT_BOOL vbool);
  366.           [propget, id(DISPID_TABSTOP)]
  367.           HRESULT TabStop([out, retval]VARIANT_BOOL* pbool);
  368.           [propput, id(DISPID_TEXT)]
  369.           HRESULT Text([in]BSTR strText);
  370.           [propget, id(DISPID_TEXT)]
  371.           HRESULT Text([out, retval]BSTR* pstrText);
  372.           [propput, id(DISPID_CAPTION)]
  373.           HRESULT Caption([in]BSTR strCaption);
  374.           [propget, id(DISPID_CAPTION)]
  375.           HRESULT Caption([out,retval]BSTR* pstrCaption);
  376.           [propput, id(DISPID_BORDERVISIBLE)]
  377.           HRESULT BorderVisible([in]VARIANT_BOOL vbool);
  378.           [propget, id(DISPID_BORDERVISIBLE)]
  379.           HRESULT BorderVisible([out, retval]VARIANT_BOOL* pbool);
  380.           [propput, id(DISPID_APPEARANCE)]
  381.           HRESULT Appearance([in]short appearance);
  382.           [propget, id(DISPID_APPEARANCE)]
  383.           HRESULT Appearance([out, retval]short* pappearance);
  384.           [propput, id(DISPID_MOUSEPOINTER)]
  385.           HRESULT MousePointer([in]long pointer);
  386.           [propget, id(DISPID_MOUSEPOINTER)]
  387.           HRESULT MousePointer([out, retval]long* ppointer);
  388.           [propputref, id(DISPID_MOUSEICON)]
  389.           HRESULT MouseIcon([in]IPictureDisp* pMouseIcon);
  390.           [propput, id(DISPID_MOUSEICON)]
  391.           HRESULT MouseIcon([in]IPictureDisp* pMouseIcon);
  392.           [propget, id(DISPID_MOUSEICON)]
  393.           HRESULT MouseIcon([out, retval]IPictureDisp** ppMouseIcon);
  394.           [propputref, id(DISPID_PICTURE)]
  395.           HRESULT Picture([in]IPictureDisp* pPicture);
  396.           [propput, id(DISPID_PICTURE)]
  397.           HRESULT Picture([in]IPictureDisp* pPicture);
  398.           [propget, id(DISPID_PICTURE)]
  399.           HRESULT Picture([out, retval]IPictureDisp** ppPicture);
  400.           [propput, id(DISPID_VALID)]
  401.           HRESULT Valid([in]VARIANT_BOOL vbool);
  402.           [propget, id(DISPID_VALID)]
  403.           HRESULT Valid([out, retval]VARIANT_BOOL* pbool);
  404.   };
  405. // ---------------------------------------------------------------
  406. [
  407. uuid(11166000-DF8A-463a-B620-7BEC23542010),
  408. version(1.0),
  409. helpstring("Microsoft TV CA Type Library")
  410. ]
  411. library MSTvCALib
  412. {
  413. importlib("stdole32.tlb");
  414. importlib("stdole2.tlb");
  415. // ---------------------------------------------------
  416. // CAUTION - if Change events below, need to perform:
  417. // 1) compile the MIDL file to generate the typelib
  418. // 2) In VCC class view, <xxx>->Implement Connection Point (_ICA<xxx>Events)
  419. //       to regenerate the  CProxy_ICA<xxx>Events<> code.
  420. //   Need to browse to objdi386 directory and select MSTvCA.tlb
  421. // (The file MSTvCACP.h must be checked out.)
  422. // Where <xxx> is Denials, Manager, Offers, Policies, Request, and Tolls
  423. [
  424. uuid(11166298-DF8A-463A-B620-7BEC23542010),
  425. helpstring("_ICAResDenialTreeEvents Interface")
  426. ]
  427. dispinterface _ICAResDenialTreeEvents
  428. {
  429. properties:
  430. methods:
  431. [id(1),helpstring("method PaidTollSelected")] HRESULT PaidTollSelected([in] ICAToll *pToll, [in] long fSelected);
  432. };
  433. [
  434. uuid(11166200-DF8A-463A-B620-7BEC23542010),
  435. helpstring("ICAManagerEvents Interface")
  436. ]
  437. dispinterface _ICAManagerEvents
  438. {
  439. properties:
  440. methods:
  441. [id(2201),helpstring("method RequestActivated")] HRESULT RequestActivated([in] ICARequest *pReq);
  442. [id(2202),helpstring("method RequestDeactivated")] HRESULT RequestDeactivated([in] ICARequest *pReq);
  443. [id(2203),helpstring("method OfferAdded")] HRESULT OfferAdded([in] ICAOffer *pOffer,[in] long cOffers);
  444. [id(2204),helpstring("method OfferRemoved")] HRESULT OfferRemoved([in] ICAOffer *pOffer,[in] long cOffers);
  445. [id(2205),helpstring("method PolicyAdded")] HRESULT PolicyAdded([in] ICAPolicy *pPolicy,[in] long cPolicies);
  446. [id(2206),helpstring("method PolicyRemoved")] HRESULT PolicyRemoved([in] ICAPolicy *pPolicy,[in] long cPolicies);
  447. [id(2207),helpstring("method RequestDenialAdded")] HRESULT RequestDenialAdded([in] ICARequest *pReq, [in] ICADenial *pDenial,[in] long cDenials);
  448. [id(2208),helpstring("method RequestDenialRemoved")] HRESULT RequestDenialRemoved([in] ICARequest *pReq, [in] ICADenial *pDenial,[in] long cDenials);
  449. [id(2209),helpstring("method DenialTollAdded")] HRESULT DenialTollAdded([in] ICADenial *pDenial, [in] ICAToll *pToll, [in] long cTolls);
  450. [id(2210),helpstring("method DenialTollRemoved")] HRESULT DenialTollRemoved([in] ICADenial *pDenial, [in] ICAToll *pToll, [in] long cTolls);
  451. [id(2211),helpstring("method TollDenialAdded")] HRESULT TollDenialAdded([in] ICAToll *pToll, [in] ICADenial *pDenial,[in] long cDenials);
  452. [id(2212),helpstring("method TollDenialRemoved")] HRESULT TollDenialRemoved([in] ICAToll *pToll, [in] ICADenial *pDenial,[in] long cDenials);
  453. [id(2213),helpstring("method OfferTollAdded")] HRESULT OfferTollAdded([in] ICAOffer *pOffer, [in] ICAToll *pToll, [in] long cTolls);
  454. [id(2214),helpstring("method OfferTollRemoved")] HRESULT OfferTollRemoved([in] ICAOffer *pOffer, [in] ICAToll *pToll, [in] long cTolls);
  455. [id(2215),helpstring("method TollStateChanged")] HRESULT TollStateChanged([in] ICAToll *pToll, [in] CATollState enState);
  456. [id(2216),helpstring("method DenialStateChanged")] HRESULT DenialStateChanged([in] ICADenial *pDenial, [in] CADenialState enState);
  457. [id(2217),helpstring("method ComponentDenialAdded")] HRESULT ComponentDenialAdded([in] ICAComponent *pComp, [in] ICADenial *pDenial,[in] long cDenials);
  458. [id(2218),helpstring("method ComponentDenialRemoved")] HRESULT ComponentDenialRemoved([in] ICAComponent *pComp, [in] ICADenial *pDenial,[in] long cDenials);
  459. };
  460. [
  461. uuid(11166210-DF8A-463A-B620-7BEC23542010),
  462. helpstring("ICARequestEvents Interface")
  463. ]
  464. dispinterface _ICARequestEvents
  465. {
  466. properties:
  467. methods:
  468. [id(1), helpstring("method CheckStarted")] HRESULT CheckStarted([in] ICARequest *pRequest);
  469. [id(2), helpstring("method CheckComplete")] HRESULT CheckComplete([in] ICARequest *pRequest,[in] long cDenials);
  470. };
  471. [
  472. uuid(11166220-DF8A-463A-B620-7BEC23542010),
  473. helpstring("_ICAPoliciesEvents Interface")
  474. ]
  475. dispinterface _ICAPoliciesEvents
  476. {
  477. properties:
  478. methods:
  479. [id(1), helpstring("method ItemAdded")]   HRESULT ItemAdded([in] ICAPolicy *pPolicy, long cPolicies);
  480. [id(2), helpstring("method ItemRemoved")] HRESULT ItemRemoved([in] ICAPolicy *pPolicy, long cPolicies);
  481. };
  482. [
  483. uuid(11166230-DF8A-463A-B620-7BEC23542010),
  484. helpstring("ICATollsEvents Interface")
  485. ]
  486. dispinterface _ICATollsEvents
  487. {
  488. properties:
  489. methods:
  490. [id(1), helpstring("method ItemAdded")] HRESULT ItemAdded([in] ICAToll *pToll, [in] long cTolls);
  491. [id(2), helpstring("method ItemRemoved")] HRESULT ItemRemoved([in] ICAToll *pToll, [in] long cTolls);
  492. [id(3), helpstring("method StateChanged")] HRESULT StateChanged([in] ICAToll *pToll, [in] CATollState enStateFrom);
  493. };
  494. [
  495. uuid(11166240-DF8A-463A-B620-7BEC23542010),
  496. helpstring("ICADenialsEvents Interface")
  497. ]
  498. dispinterface _ICADenialsEvents
  499. {
  500. properties:
  501. methods:
  502. [id(1), helpstring("method ItemAdded")] HRESULT ItemAdded([in] ICADenial *pDenial, [in] long cDenials);
  503. [id(2), helpstring("method ItemRemoved")] HRESULT ItemRemoved([in] ICADenial *pDenial, [in] long cDenials);
  504. [id(3), helpstring("method StateChanged")] HRESULT StateChanged([in] ICADenial *pDenial, [in] CADenialState enStateFrom);
  505. };
  506. [
  507. uuid(11166250-DF8A-463A-B620-7BEC23542010),
  508. helpstring("ICAOffersEvents Interface")
  509. ]
  510. dispinterface _ICAOffersEvents
  511. {
  512. properties:
  513. methods:
  514. [id(1), helpstring("method ItemAdded")] HRESULT ItemAdded([in] ICAOffer *pOffer, [in] long cOffers);
  515. [id(2), helpstring("method ItemRemoved")] HRESULT ItemRemoved([in] ICAOffer *pOffer, [in] long cOffers);
  516. };
  517. [
  518. uuid(11166260-DF8A-463A-B620-7BEC23542010),
  519. helpstring("_ICAComponentsEvents Interface")
  520. ]
  521. dispinterface _ICAComponentsEvents
  522. {
  523. properties:
  524. methods:
  525. [id(1), helpstring("method ItemAdded")] HRESULT ItemAdded([in] ICAComponent *pComponent, [in] long cComponent);
  526. [id(2), helpstring("method ItemRemoved")] HRESULT ItemRemoved([in] ICAComponent *pComponent, [in] long cComponent);
  527. }; // --------------------------------
  528. [
  529. object,
  530. dual,
  531. uuid(11166300-DF8A-463a-B620-7BEC23542010),
  532. helpstring("ICAManager Interface"),
  533. pointer_default(unique)
  534. ]
  535. interface ICAManager : IDispatch
  536. {
  537. [propget, id(1),   helpstring("property Policies")] HRESULT Policies([out, retval] ICAPolicies **ppPolicies);
  538. [propget, id(2),   helpstring("property ActiveRequest")] HRESULT ActiveRequest([out, retval] ICARequest **ppRequest);
  539. [propget, id(3),   helpstring("property Offers")] HRESULT Offers([out, retval] ICAOffers **ppOffers);
  540. [propget, id(4),   helpstring("property PaidTolls")] HRESULT PaidTolls([out, retval] ICATolls **ppTolls);
  541. [propput, id(5),   helpstring("property UseDefaultUI")] HRESULT UseDefaultUI([in] long fUseDefaultUI);
  542. [propget, id(5),   helpstring("property UseDefaultUI")] HRESULT UseDefaultUI([out, retval] long *pfUseDefaultUI);
  543. [propget, id(6),   helpstring("property DenialsFor")] HRESULT DenialsFor([in] IUnknown *pUnk, [out, retval] ICADenials **ppDenials);
  544. };
  545. [
  546. object,
  547. uuid(11166310-DF8A-463a-B620-7BEC23542010),
  548. dual,
  549. helpstring("ICARequest Interface"),
  550. pointer_default(unique)
  551. ]
  552. interface ICARequest : IDispatch
  553. {
  554. [propget, id(1), helpstring("property RequestedItem")] HRESULT RequestedItem([out, retval] IUnknown **ppTunereq);
  555. [propget, id(2), helpstring("property CAManager")] HRESULT CAManager([out, retval] ICAManager **ppManager);
  556. [propget, id(3), helpstring("property ScheduleEntry")] HRESULT ScheduleEntry([out, retval] IUnknown **ppUnkScheduleEntry); // IScheduleEntry?
  557. [propget, id(4), helpstring("property Denials")] HRESULT Denials([out, retval] ICADenials **ppDenials);
  558. [propget, id(5), helpstring("property Components")] HRESULT Components([out, retval] ICAComponents **pComponents);
  559. [propget, id(6), helpstring("property Check")] HRESULT Check([out, retval] long *pcDenials);
  560. [propget, id(7), helpstring("property ResolveDenials")] HRESULT ResolveDenials([out, retval] long *pcDenials);
  561. [propget, id(8), helpstring("property CountDeniedComponents")] HRESULT CountDeniedComponents([out, retval] long *pcDeniedComponents);
  562. };
  563. [
  564. object,
  565. uuid(11166320-DF8A-463a-B620-7BEC23542010),
  566. helpstring("ICAPolicy Interface"), // client written
  567. pointer_default(unique)
  568. ]
  569. interface ICAPolicy : IUnknown  // -- not IDispatch, let the client side implement that interface
  570. {
  571. [propget, id(0),   helpstring("property Name")] HRESULT Name([out, retval] BSTR *pbstr);
  572. [         id(1),   helpstring("method CheckRequest")] HRESULT CheckRequest([in] ICARequest *pReq);
  573. // [propget, id(2),   helpstring("property CAManager")] HRESULT CAManager([out, retval] ICAManager **ppManager);
  574. [propput, id(2),   helpstring("property CAManager")] HRESULT CAManager([in] ICAManager *pManager);
  575. [propget, id(3),   helpstring("property OkToPersist")] HRESULT OkToPersist([out, retval] BOOL *pfOkToPersist);
  576. [propget, id(4),   helpstring("property OkToRemove")] HRESULT OkToRemove([out, retval] BOOL *pfOkToRemove);
  577. [propget, id(5),   helpstring("property OkToRemoveDenial")] HRESULT OkToRemoveDenial(ICADenial *pDenial, [out, retval] BOOL *pfOk);
  578. [propget, id(6),   helpstring("property OkToRemoveOffer")] HRESULT OkToRemoveOffer(ICAOffer *pOffer, [out, retval] BOOL *pfOk);
  579. }
  580.  
  581. [
  582. object,
  583. uuid(11166330-DF8A-463a-B620-7BEC23542010),
  584. dual,
  585. helpstring("ICAToll Interface"), // also client written
  586. pointer_default(unique)
  587. ]
  588. interface ICAToll : IUnknown // -- also not IDispatch - client side implements that interface
  589. {
  590. // [propget, id(1), helpstring("property CAManager")] HRESULT CAManager([out, retval] ICAManager **ppManager);
  591. [propput, id(1), helpstring("property CAManager")] HRESULT CAManager([in] ICAManager *pManager);
  592. [         id(2), helpstring("method Select")] HRESULT Select([in] BOOL fSelect);
  593. [         id(3), helpstring("method PayToll")] HRESULT PayToll();
  594. [propget, id(4), helpstring("property Refundable")] HRESULT Refundable([out, retval] BOOL *pfRefundable);
  595. [         id(5), helpstring("method RefundToll")] HRESULT RefundToll();
  596. [propget, id(6), helpstring("property TolledObject")] HRESULT TolledObject([out, retval] IUnknown **ppUnkTolled);
  597. [propget, id(7), helpstring("property Denials")] HRESULT Denials([out, retval] ICADenials **ppDenials);
  598. [propget, id(8), helpstring("property Policy")] HRESULT Policy([out, retval] ICAPolicy **ppPolicy);
  599. [propget, id(9), helpstring("property Description")] HRESULT Description([in] CADescFormat enFormat, [out, retval] BSTR *pbstr);
  600. [propget, id(10),helpstring("property TimePaid")] HRESULT TimePaid([out, retval] DATE *pdtPaid);
  601. [propget, id(11),helpstring("property State")] HRESULT State([out, retval] CATollState *penState);
  602. };
  603. [
  604. object,
  605. uuid(11166340-DF8A-463a-B620-7BEC23542010),
  606. dual,
  607. helpstring("ICADenial Interface"),
  608. pointer_default(unique)
  609. ]
  610. interface ICADenial : IDispatch
  611. {
  612. [propget, id(1), helpstring("property DeniedObject")] HRESULT DeniedObject([out, retval] IUnknown **ppUnkDenied);
  613. [propget, id(2), helpstring("property Policy")] HRESULT Policy([out, retval] ICAPolicy **ppPolicy);
  614. [propget, id(3), helpstring("property Description")] HRESULT Description([in] CADescFormat enFormat, [out, retval] BSTR *pbstr);
  615. [propput, id(3), helpstring("property Description")] HRESULT Description([in] CADescFormat enFormat, [in] BSTR bstr);
  616. [propget, id(4), helpstring("property State")] HRESULT State([out, retval] CADenialState *penState);
  617. [propput, id(4), helpstring("property State")] HRESULT State([in] CADenialState enState);
  618. [propget, id(5), helpstring("property Tolls")] HRESULT Tolls([out, retval] ICATolls **ppTolls);
  619. [         id(6),   helpstring("method NotifyTollStateChanged")] HRESULT NotifyTollStateChanged([in] ICAToll *pToll, [in] CATollState enStateFrom);
  620. };
  621. [
  622. object,
  623. uuid(11166350-DF8A-463a-B620-7BEC23542010),
  624. dual,
  625. helpstring("ICAOffer Interface"),
  626. pointer_default(unique)
  627. ]
  628. interface ICAOffer : IDispatch
  629. {
  630. [propget, id(1), helpstring("property CAManager")] HRESULT CAManager([out, retval] ICAManager **ppManager);
  631. [propput, id(1), helpstring("property CAManager")] HRESULT CAManager([in] ICAManager *pManager);
  632. [propget, id(2), helpstring("property Policy")] HRESULT Policy([out, retval] ICAPolicy **pppolicy);
  633. [propget, id(3), helpstring("property Description")] HRESULT Description([in] CADescFormat enFormat, [out, retval] BSTR *pbstr);
  634. [propput, id(3), helpstring("property Description")] HRESULT Description([in] CADescFormat enFormat, [in] BSTR bstr);
  635. [propget, id(4), helpstring("property StartTime")] HRESULT StartTime([out, retval] DATE *pdtStart);
  636. [propget, id(5), helpstring("property EndTime")] HRESULT EndTime([out, retval] DATE *pdtEnd);
  637. [propget, id(6), helpstring("property Tolls")] HRESULT Tolls([out, retval] ICATolls **ppTolls);
  638. [         id(7), helpstring("method NotifyTollStateChanged")] HRESULT NotifyTollStateChanged([in] ICAToll *pToll, [in] CATollState enStateFrom);
  639. };
  640. [
  641. object,
  642. uuid(11166360-DF8A-463a-B620-7BEC23542010),
  643. dual,
  644. helpstring("ICAComponent Interface"),
  645. pointer_default(unique)
  646. ]
  647. interface ICAComponent : IDispatch
  648. {
  649. [propget, id(1), helpstring("property Component")] HRESULT Component([out, retval] IComponent **ppComponent);
  650. [propget, id(2), helpstring("property Denials")] HRESULT Denials([out, retval] ICADenials **ppDenials);
  651. [propget, id(3), helpstring("property Request")] HRESULT Request([out, retval] ICARequest **ppComponent);
  652. };
  653. // --------------------------------
  654. [
  655. uuid(11166100-DF8A-463a-B620-7BEC23542010),
  656. helpstring("CAManager Class")
  657. ]
  658. coclass CAManager
  659. {
  660. [default] interface ICAManager;
  661. interface ICAManagerInternal;
  662. // interface ICAManagerXProxy;                             // this is the actual outgoing 'event' interface
  663. [default, source] dispinterface _ICAManagerEvents;
  664. };
  665. [ // magic class used to avoid circular references through the CAManager.
  666. hidden,
  667. uuid(11166101-DF8A-463a-B620-7BEC23542010),
  668. helpstring("CAManagerProxy Class")
  669. ]
  670. coclass CAManagerProxy
  671. {
  672. [default] interface ICAManager;
  673. interface ICAManagerInternal;
  674. // [default, source] dispinterface _ICAManagerEvents;  /// QUESTION ??? DO I want these just here, or in the true Manager, or both?
  675. };
  676. [
  677. uuid(11166540-DF8A-463a-B620-7BEC23542010), // needed for user's tolls.
  678. helpstring("CADenials Class")
  679. ]
  680. coclass CADenials
  681. {
  682. [default] interface ICADenials;
  683. interface ICADenialsInternal;
  684. [default, source] dispinterface _ICADenialsEvents;
  685. };
  686. // TODO - mark this as hidden...
  687. [
  688. uuid(11166550-DF8A-463a-B620-7BEC23542010),
  689. helpstring("CAOffer Class")
  690. ]
  691. coclass CAOffer
  692. {
  693. [default] interface ICAOffer;
  694. }; 
  695. /* [
  696. uuid(11166999-DF8A-463a-B620-7BEC23542010),
  697. helpstring("CATempEvent_TempBuilder Class - used so we can build events the first time")
  698. ]
  699. coclass CATempEvent_TempBuilder
  700. {
  701. [source] dispinterface _ICAResDenialTreeEvents;
  702. [source] dispinterface _ICAManagerEvents;
  703. [source] dispinterface _ICARequestEvents;
  704. [source] dispinterface _ICATollsEvents;
  705. [source] dispinterface _ICADenialsEvents;
  706. [source] dispinterface _ICAPoliciesEvents;
  707. [source] dispinterface _ICAOffersEvents;
  708. [source] dispinterface _ICAComponentsEvents;
  709. };
  710. */
  711. // -----------------------------------
  712. [
  713. object,
  714. uuid(11166898-DF8A-463a-B620-7BEC23542010),
  715. dual,
  716. helpstring("ICAResDenialTree Interface"),
  717. pointer_default(unique)
  718. ]
  719. interface ICAResDenialTree : IDispatch
  720. {
  721. [propget, id(1),   helpstring("property CAManager")] HRESULT CAManager([out, retval] ICAManager **ppCAManager);
  722. [propput, id(1),   helpstring("property CAManager")] HRESULT CAManager([in] ICAManager *pCAManager);
  723. [propget, id(2),   helpstring("property DisplayFields")] HRESULT DisplayFields([out, retval] long *penFields); // fields to display in default ResDenial UI
  724. [propput, id(2),   helpstring("property DisplayFields")] HRESULT DisplayFields([in] long enFields); // fields to display in default ResDenial UI
  725. [         id(3),   helpstring("method UpdateView")] HRESULT UpdateView([in] IUnknown *pUnk); // if object is being viewed, updates it.
  726. // ResDenial control listens to these incoming sink events sent by Manager ((_ICAManagerEvents).. ID's Must match 
  727. [   id(2201),helpstring("method NotifyRequestActivated")] HRESULT NotifyRequestActivated([in] ICARequest *preq);
  728. [   id(2202),helpstring("method NotifyRequestDeactivated")] HRESULT NotifyRequestDeactivated([in] ICARequest *preq);
  729. [   id(2203),helpstring("method NotifyOfferAdded")] HRESULT NotifyOfferAdded([in] ICAOffer *pOffer,[in] long cOffers);
  730. [   id(2204),helpstring("method NotifyOfferRemoved")] HRESULT NotifyOfferRemoved([in] ICAOffer *pOffer,[in] long cOffers);
  731. [   id(2205),helpstring("method NotifyPolicyAdded")] HRESULT NotifyPolicyAdded([in] ICAPolicy *pPolicy,[in] long cPolicies);
  732. [   id(2206),helpstring("method NotifyPolicyRemoved")] HRESULT NotifyPolicyRemoved([in] ICAPolicy *pPolicy,[in] long cPolicies);
  733. [   id(2207),helpstring("method NotifyRequestDenialAdded")] HRESULT NotifyRequestDenialAdded([in] ICARequest *preq, [in] ICADenial *pDenial,[in] long cDenials);
  734. [   id(2208),helpstring("method NotifyRequestDenialRemoved")] HRESULT NotifyRequestDenialRemoved([in] ICARequest *preq, [in] ICADenial *pDenial,[in] long cDenials);
  735. [   id(2209),helpstring("method NotifyDenialTollAdded")] HRESULT NotifyDenialTollAdded([in] ICADenial *pDenial, [in] ICAToll *pToll, [in] long cTolls);
  736. [   id(2210),helpstring("method NotifyDenialTollRemoved")] HRESULT NotifyDenialTollRemoved([in] ICADenial *pDenial, [in] ICAToll *pToll, [in] long cTolls);
  737. [   id(2211),helpstring("method NotifyTollDenialAdded")] HRESULT NotifyTollDenialAdded([in] ICAToll *pToll, [in] ICADenial *pDenial,[in] long cDenials);
  738. [   id(2212),helpstring("method NotifyTollDenialRemoved")] HRESULT NotifyTollDenialRemoved([in] ICAToll *pToll, [in] ICADenial *pDenial,[in] long cDenials);
  739. [   id(2213),helpstring("method NotifyOfferTollAdded")] HRESULT NotifyOfferTollAdded([in] ICAOffer *pOffer, [in] ICAToll *pToll, [in] long cTolls);
  740. [   id(2214),helpstring("method NotifyOfferTollRemoved")] HRESULT NotifyOfferTollRemoved([in] ICAOffer *pOffer, [in] ICAToll *pToll, [in] long cTolls);
  741. [         id(2215),helpstring("method NotifyTollStateChanged")] HRESULT NotifyTollStateChanged([in] ICAToll *pToll, [in] CATollState enStateLast);
  742. [         id(2216),helpstring("method NotifyDenialStateChanged")] HRESULT NotifyDenialStateChanged([in] ICADenial *pDenial, [in] CADenialState enStateLast);
  743. [         id(2217),helpstring("method NotifyComponentDenialAdded")] HRESULT NotifyComponentDenialAdded([in] ICAComponent *preq, [in] ICADenial *pDenial,[in] long cDenials);
  744. [         id(2218),helpstring("method NotifyComponentDenialRemoved")] HRESULT NotifyComponentDenialRemoved([in] ICAComponent *preq, [in] ICADenial *pDenial,[in] long cDenials);
  745. };
  746. [
  747. uuid(11166998-DF8A-463a-B620-7BEC23542010),
  748. helpstring("CA Default RequestDenial Control")
  749. ]
  750. coclass CAResDenialTree
  751. {
  752. [default] interface ICAResDenialTree;
  753. [default, source] dispinterface _ICAResDenialTreeEvents;
  754. };
  755. // -----------------------------
  756.     [
  757.             uuid(11166991-DF8A-463a-B620-7BEC23542010),
  758.             helpstring("_ICADefaultDlgEvents Interface")
  759.     ]
  760.     dispinterface _ICADefaultDlgEvents
  761.     {
  762.             properties:
  763.             methods:
  764.     };
  765.     [
  766.             uuid(11166990-DF8A-463a-B620-7BEC23542010),
  767.             helpstring("CADefaultDlg Class")
  768.     ]
  769.     coclass CADefaultDlg
  770.     {
  771.             [default] interface ICADefaultDlg;
  772.             [default, source] dispinterface _ICADefaultDlgEvents;
  773.     };
  774. // -------------------------------------
  775. //  Magic way to define the SID_ ...
  776. cpp_quote("#define SID_CAManager CLSID_CAManager")
  777. };