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

模拟服务器

开发平台:

C/C++

  1. //+---------------------------------------------------------------------------
  2. //
  3. //  (C) Copyright 1998 Microsoft Corporation. All Rights Reserved.
  4. //
  5. //  Contents:   Declarations for EAP UI interfaces.
  6. //
  7. //----------------------------------------------------------------------------
  8. cpp_quote("//=--------------------------------------------------------------------------=")
  9. cpp_quote("// RRasCfg.h")
  10. cpp_quote("//=--------------------------------------------------------------------------=")
  11. cpp_quote("// (C) Copyright 1998 Microsoft Corporation.  All Rights Reserved.")
  12. cpp_quote("//")
  13. cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF")
  14. cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO")
  15. cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A")
  16. cpp_quote("// PARTICULAR PURPOSE.")
  17. cpp_quote("//=--------------------------------------------------------------------------=")
  18. cpp_quote(" ")
  19. import "basetsd.h";
  20. import "wtypes.idl";
  21. typedef BYTE *  PBYTE;
  22. /*---------------------------------------------------------------------------
  23. IRouterProtocolConfig
  24.  ---------------------------------------------------------------------------*/
  25. [
  26.    object,
  27.    uuid(66A2DB16-D706-11D0-A37B-00C04FC9DA04),
  28.    local,
  29.    pointer_default(unique),
  30. ]
  31.    
  32.    
  33. interface IRouterProtocolConfig :IUnknown
  34. {
  35. import "unknwn.idl";
  36. HRESULT AddProtocol([in,string] LPCOLESTR pszMachineName,
  37. [in] DWORD dwTransportId,
  38. [in] DWORD dwProtocolId,
  39. [in] HWND hWnd,
  40. [in] DWORD dwFlags,
  41. [in] IUnknown *pRouter,
  42. [in] ULONG_PTR uReserved1);
  43. HRESULT RemoveProtocol([in,string] LPCOLESTR pszMachineName,
  44.   [in] DWORD dwTransportId,
  45.   [in] DWORD dwProtocolId,
  46.   [in] HWND hWnd,
  47.   [in] DWORD dwFlags,
  48.   [in] IUnknown *pRouter,
  49.   [in] ULONG_PTR uReserved1);
  50. };
  51. // a macro to help declare all of the methods
  52. cpp_quote("#define DeclareIRouterProtocolConfigMembers(IPURE) \")
  53. cpp_quote(" STDMETHOD(AddProtocol)(THIS_ LPCOLESTR pszMachineName,\")
  54. cpp_quote("    DWORD dwTransportId,\")
  55. cpp_quote("    DWORD dwProtocolId,\")
  56. cpp_quote("    HWND hWnd,\")
  57. cpp_quote("    DWORD dwFlags,\")
  58. cpp_quote("    IUnknown *pRouter,\")
  59. cpp_quote("    ULONG_PTR uReserved1) IPURE;\")
  60. cpp_quote(" STDMETHOD(RemoveProtocol)(THIS_ LPCOLESTR pszMachineName,\")
  61. cpp_quote("  DWORD dwTransportId,\")
  62. cpp_quote("  DWORD dwProtocolId,\")
  63. cpp_quote("  HWND hWnd,\")
  64. cpp_quote("  DWORD dwFlags,\")
  65. cpp_quote("  IUnknown *pRouter,\")
  66. cpp_quote("  ULONG_PTR uReserved2) IPURE;\")
  67. cpp_quote(" ")
  68. /*---------------------------------------------------------------------------
  69. IAuthenticationProviderConfig
  70.  ---------------------------------------------------------------------------*/
  71. [
  72.    object,
  73.    uuid(66A2DB17-D706-11D0-A37B-00C04FC9DA04),
  74.    local,
  75.    pointer_default(unique),
  76. ]
  77.    
  78.    
  79. interface IAuthenticationProviderConfig :IUnknown
  80. {
  81. import "unknwn.idl";
  82. HRESULT Initialize([in, string] LPCOLESTR pszMachineName,
  83.    [out] ULONG_PTR *puConnectionParam);
  84. HRESULT Uninitialize([in] ULONG_PTR uConnectionParam);
  85. HRESULT Configure([in] ULONG_PTR uConnectionParam,
  86.   [in] HWND hWnd,
  87.   [in] DWORD dwFlags,
  88.   [in] ULONG_PTR uReserved1,
  89.   [in] ULONG_PTR uReserved2);
  90. HRESULT Activate([in] ULONG_PTR uConnectionParam,
  91.  [in] ULONG_PTR uReserved1,
  92.  [in] ULONG_PTR uReserved2);
  93. HRESULT Deactivate([in] ULONG_PTR uConnectionParam,
  94.    [in] ULONG_PTR uReserved1,
  95.    [in] ULONG_PTR uReserved2);
  96. };
  97. // a macro to help declare all of the methods
  98. cpp_quote("#define DeclareIAuthenticationProviderConfigMembers(IPURE) \")
  99. cpp_quote(" STDMETHOD(Initialize)(THIS_ \")
  100. cpp_quote(" LPCOLESTR pszMachineName, \")
  101. cpp_quote(" ULONG_PTR *puConnectionParam) IPURE; \")
  102. cpp_quote(" STDMETHOD(Uninitialize)(THIS_ \")
  103. cpp_quote(" ULONG_PTR uConnectionParam) IPURE; \")
  104. cpp_quote("  \")
  105. cpp_quote(" STDMETHOD(Configure)(THIS_ \")
  106. cpp_quote(" ULONG_PTR uConnectionParam, \")
  107. cpp_quote(" HWND hWnd, \")
  108. cpp_quote("   DWORD dwFlags, \")
  109. cpp_quote("   ULONG_PTR uReserved1, \")
  110. cpp_quote("   ULONG_PTR uReserved2) IPURE; \")
  111. cpp_quote(" \")
  112. cpp_quote(" STDMETHOD(Activate)(THIS_ \")
  113. cpp_quote(" ULONG_PTR uConnectionParam, \")
  114. cpp_quote("  ULONG_PTR uReserved1, \")
  115. cpp_quote("  ULONG_PTR uReserved2) IPURE; \")
  116. cpp_quote(" \")
  117. cpp_quote(" STDMETHOD(Deactivate)(THIS_ \")
  118. cpp_quote(" ULONG_PTR uConnectionParam, \")
  119. cpp_quote("    ULONG_PTR uReserved1, \")
  120. cpp_quote("    ULONG_PTR uReserved2) IPURE; \")
  121. cpp_quote(" ")
  122. /*---------------------------------------------------------------------------
  123. IAccountingProviderConfig
  124.  ---------------------------------------------------------------------------*/
  125. [
  126.    object,
  127.    uuid(66A2DB18-D706-11D0-A37B-00C04FC9DA04),
  128.    local,
  129.    pointer_default(unique),
  130. ]
  131.    
  132.    
  133. interface IAccountingProviderConfig :IUnknown
  134. {
  135. import "unknwn.idl";
  136. HRESULT Initialize([in, string] LPCOLESTR pszMachineName,
  137.    [out] ULONG_PTR *puConnectionParam);
  138. HRESULT Uninitialize([in] ULONG_PTR uConnectionParam);
  139. HRESULT Configure([in] ULONG_PTR uConnectionParam,
  140.   [in] HWND hWnd,
  141.   [in] DWORD dwFlags,
  142.   [in] ULONG_PTR uReserved1,
  143.   [in] ULONG_PTR uReserved2);
  144. HRESULT Activate([in] ULONG_PTR uConnectionParam,
  145.  [in] ULONG_PTR uReserved1,
  146.  [in] ULONG_PTR uReserved2);
  147. HRESULT Deactivate([in] ULONG_PTR uConnectionParam,
  148.    [in] ULONG_PTR uReserved1,
  149.    [in] ULONG_PTR uReserved2);
  150. };
  151. // a macro to help declare all of the methods
  152. cpp_quote("#define DeclareIAccountingProviderConfigMembers(IPURE) \")
  153. cpp_quote(" STDMETHOD(Initialize)(THIS_ \")
  154. cpp_quote(" LPCOLESTR pszMachineName, \")
  155. cpp_quote(" ULONG_PTR *puConnectionParam) IPURE; \")
  156. cpp_quote(" STDMETHOD(Uninitialize)(THIS_ \")
  157. cpp_quote(" ULONG_PTR uConnectionParam) IPURE; \")
  158. cpp_quote(" STDMETHOD(Configure)(THIS_ \")
  159. cpp_quote(" ULONG_PTR uConnectionParam, \")
  160. cpp_quote(" HWND hWnd, \")
  161. cpp_quote("   DWORD dwFlags, \")
  162. cpp_quote("   ULONG_PTR uReserved1, \")
  163. cpp_quote("   ULONG_PTR uReserved2) IPURE; \")
  164. cpp_quote(" \")
  165. cpp_quote(" STDMETHOD(Activate)(THIS_ \")
  166. cpp_quote(" ULONG_PTR uConnectionParam, \")
  167. cpp_quote("  ULONG_PTR uReserved1, \")
  168. cpp_quote("  ULONG_PTR uReserved2) IPURE; \")
  169. cpp_quote(" \")
  170. cpp_quote(" STDMETHOD(Deactivate)(THIS_ \")
  171. cpp_quote(" ULONG_PTR uConnectionParam, \")
  172. cpp_quote("    ULONG_PTR uReserved1, \")
  173. cpp_quote("    ULONG_PTR uReserved2) IPURE; \")
  174. cpp_quote(" ")
  175. /*---------------------------------------------------------------------------
  176. IEAPProviderConfig
  177.  ---------------------------------------------------------------------------*/
  178. [
  179.    object,
  180.    uuid(66A2DB19-D706-11D0-A37B-00C04FC9DA04),
  181.    local,
  182.    pointer_default(unique),
  183. ]
  184.    
  185.    
  186. interface IEAPProviderConfig :IUnknown
  187. {
  188. import "unknwn.idl";
  189. HRESULT Initialize([in, string] LPCOLESTR pszMachineName,
  190.   [out] ULONG_PTR *puConnectionParam);
  191. HRESULT Uninitialize([in] ULONG_PTR uConnectionParam);
  192. HRESULT Configure([in] ULONG_PTR uConnectionParam,
  193.   [in] HWND hWnd,
  194.   [in] ULONG_PTR uReserved1,
  195.   [in] ULONG_PTR uReserved2);
  196. };
  197. // a macro to help declare all of the methods
  198. cpp_quote("#define DeclareIEAPProviderConfigMembers(IPURE) \")
  199. cpp_quote(" STDMETHOD(Initialize)(THIS_ LPCOLESTR pszMachineName, \")
  200. cpp_quote(" ULONG_PTR *puConnectionParam) IPURE; \")
  201. cpp_quote(" STDMETHOD(Uninitialize)(THIS_ \")
  202. cpp_quote(" ULONG_PTR uConnectionParam) IPURE; \")
  203. cpp_quote(" STDMETHOD(Configure)(THIS_ ULONG_PTR uConnectionParam, \")
  204. cpp_quote(" HWND hWnd, ULONG_PTR dwRes1, ULONG_PTR dwRes2) IPURE; \")
  205. cpp_quote(" ")