Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

158 lines
4.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: rrasui.idl
  8. //
  9. //--------------------------------------------------------------------------
  10. // rrasui.idl : IDL source for MPRSNAP UI
  11. //
  12. #ifndef _RRASUI_IDL_
  13. #define _RRASUI_IDL_
  14. import "basetsd.h";
  15. import "wtypes.idl";
  16. /*---------------------------------------------------------------------------
  17. IRtrAdviseSink
  18. ---------------------------------------------------------------------------*/
  19. [
  20. object,
  21. uuid(66A2DB14-D706-11d0-A37B-00C04FC9DA04),
  22. local,
  23. pointer_default(unique),
  24. ]
  25. interface IRtrAdviseSink : IUnknown
  26. {
  27. import "unknwn.idl";
  28. HRESULT OnChange([in] LONG_PTR ulConnection,
  29. [in] DWORD dwChangeType,
  30. [in] DWORD dwObjectType,
  31. [in] LPARAM lUserParam,
  32. [in] LPARAM lParam);
  33. };
  34. cpp_quote("// Valid values for dwChangeType of OnChange")
  35. cpp_quote("#define ROUTER_REFRESH 1")
  36. cpp_quote("#define ROUTER_DO_DISCONNECT 2")
  37. cpp_quote("#define DeclareIRtrAdviseSinkMembers(IPURE) \\")
  38. cpp_quote(" STDMETHOD(OnChange)(THIS_ LONG_PTR ulConnection, \\")
  39. cpp_quote(" DWORD dwChangeType, \\")
  40. cpp_quote(" DWORD dwObjectType, \\")
  41. cpp_quote(" LPARAM lUserParam, \\")
  42. cpp_quote(" LPARAM lParam) IPURE; \\")
  43. cpp_quote(" ")
  44. /*---------------------------------------------------------------------------
  45. IRouterRefresh
  46. ---------------------------------------------------------------------------*/
  47. [
  48. object,
  49. uuid(66a2db15-d706-11d0-a37b-00c04fc9da04),
  50. local,
  51. pointer_default(unique),
  52. ]
  53. interface IRouterRefresh : IUnknown
  54. {
  55. import "unknwn.idl";
  56. //
  57. // Function: Start
  58. // This will start the automatic refresh
  59. //
  60. HRESULT Start(DWORD dwSeconds);
  61. //
  62. // Function: GetRefreshInterval
  63. // Gets the interval between refresh actions (time is in seconds).
  64. //
  65. HRESULT GetRefreshInterval([out] DWORD *pdwSeconds);
  66. //
  67. // Function: SetRefreshInterval
  68. // Sets the interval between refresh actions (time is in seconds).
  69. //
  70. HRESULT SetRefreshInterval([in] DWORD dwSeconds);
  71. //
  72. // Function: Stop
  73. // This will turn off the automatic refresh mechanism (note that
  74. // this will not change the automatic refresh variable).
  75. //
  76. HRESULT Stop();
  77. //
  78. // Function: IsRefreshStarted
  79. // Returns S_OK if the refresh has been started, S_FALSE if not
  80. //
  81. HRESULT IsRefreshStarted();
  82. //
  83. // Function: IsInRefresh
  84. // Returns S_OK if we are in a refresh, returns S_FALSE if not
  85. //
  86. HRESULT IsInRefresh();
  87. //
  88. // Function: Refresh
  89. // Kicks off a full refresh cycle manually.
  90. //
  91. HRESULT Refresh();
  92. HRESULT AdviseRefresh([in] IRtrAdviseSink *pRtrAdviseSink,
  93. [out] LONG_PTR *pulConnection,
  94. [in] LPARAM ulUserParam);
  95. HRESULT UnadviseRefresh([in] LONG_PTR ulConnection);
  96. HRESULT NotifyRefresh();
  97. };
  98. cpp_quote("#define DeclareIRouterRefreshMembers(IPURE)\\")
  99. cpp_quote(" STDMETHOD(IsInRefresh)(THIS) IPURE;\\")
  100. cpp_quote(" STDMETHOD(Refresh)(THIS) IPURE;\\")
  101. cpp_quote(" STDMETHOD(Start)(THIS_ DWORD dwSeconds) IPURE;\\")
  102. cpp_quote(" STDMETHOD(GetRefreshInterval)(THIS_ DWORD *pdwSeconds) IPURE;\\")
  103. cpp_quote(" STDMETHOD(SetRefreshInterval)(THIS_ DWORD dwSeconds) IPURE;\\")
  104. cpp_quote(" STDMETHOD(Stop)(THIS) IPURE;\\")
  105. cpp_quote(" STDMETHOD(IsRefreshStarted)(THIS) IPURE;\\")
  106. cpp_quote(" STDMETHOD(AdviseRefresh)(THIS_ IRtrAdviseSink *pRtrAdviseSink,\\")
  107. cpp_quote(" LONG_PTR *pulConnection, \\")
  108. cpp_quote(" LPARAM lUserParam) IPURE;\\")
  109. cpp_quote(" STDMETHOD(UnadviseRefresh)(THIS_ LONG_PTR ulConnection) IPURE;\\")
  110. cpp_quote(" STDMETHOD(NotifyRefresh)(THIS) IPURE;\\")
  111. /*---------------------------------------------------------------------------
  112. IRouterRefreshAccess
  113. ---------------------------------------------------------------------------*/
  114. [
  115. object,
  116. uuid(66a2db1c-d706-11d0-a37b-00c04fc9da04),
  117. local,
  118. pointer_default(unique),
  119. ]
  120. interface IRouterRefreshAccess : IUnknown
  121. {
  122. import "unknwn.idl";
  123. HRESULT GetRefreshObject([out] IRouterRefresh **ppRouterRefresh);
  124. };
  125. cpp_quote("#define DeclareIRouterRefreshAccessMembers(IPURE)\\")
  126. cpp_quote(" STDMETHOD(GetRefreshObject)(THIS_ IRouterRefresh **ppRtrRef) IPURE;\\")
  127. #endif // _RRASUI_IDL_