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.

142 lines
3.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: remras.idl
  8. //
  9. //--------------------------------------------------------------------------
  10. // remrras.idl : IDL source for remrras.dll
  11. //
  12. // This file will be processed by the MIDL tool to
  13. // produce the type library (remrras.tlb) and marshalling code.
  14. import "oaidl.idl";
  15. import "ocidl.idl";
  16. import "wtypes.idl";
  17. import "netcfgp.idl";
  18. [
  19. uuid(66A2DB1e-D706-11d0-A37B-00C04FC9DA04),
  20. helpstring("IRemoteTCPIPChangeNotify Interface"),
  21. pointer_default(unique)
  22. ]
  23. interface IRemoteTCPIPChangeNotify : IUnknown
  24. {
  25. HRESULT NotifyChanges([in] BOOL fEnableRouter,
  26. [in] BYTE uPerformRouterDiscovery);
  27. };
  28. [
  29. uuid(66A2DB1a-D706-11d0-A37B-00C04FC9DA04),
  30. helpstring("IRemoteRouterConfig Interface"),
  31. pointer_default(unique)
  32. ]
  33. interface IRemoteRouterConfig : IUnknown
  34. {
  35. HRESULT SetRasEndpoints([in] DWORD dwFlags,
  36. [in] DWORD dwTotalEndpoints,
  37. [in] DWORD dwTotalIncoming,
  38. [in] DWORD dwTotalOutgoing);
  39. HRESULT GetIpxVirtualNetworkNumber([out] DWORD *pdwVNetworkNumber);
  40. HRESULT SetIpxVirtualNetworkNumber([in] DWORD dwVNetworkNumber);
  41. // The following two methods are for remote tcpip configuration.
  42. typedef struct tagREMOTE_RRAS_IPINFO
  43. {
  44. DWORD dwEnableDhcp;
  45. BSTR bstrIpAddrList;
  46. BSTR bstrSubnetMaskList;
  47. BSTR bstrOptionList;
  48. } REMOTE_RRAS_IPINFO;
  49. HRESULT GetIpInfo([in] const GUID *pGuid,
  50. [out] REMOTE_RRAS_IPINFO **ppInfo);
  51. HRESULT SetIpInfo([in] const GUID *pGuid,
  52. [in] REMOTE_RRAS_IPINFO *pIpInfo);
  53. };
  54. [
  55. uuid(66A2DB1B-D706-11d0-A37B-00C04FC9DA04),
  56. helpstring("IRemoteNetworkConfig Interface"),
  57. pointer_default(unique)
  58. ]
  59. interface IRemoteNetworkConfig : IUnknown
  60. {
  61. HRESULT UpgradeRouterConfig();
  62. HRESULT SetUserConfig([in] LPCOLESTR pszService,
  63. [in] LPCOLESTR pszNewGroup);
  64. };
  65. [
  66. uuid(66A2DB20-D706-11d0-A37B-00C04FC9DA04),
  67. helpstring("IRemoteRouterRestart Interface"),
  68. pointer_default(unique)
  69. ]
  70. interface IRemoteRouterRestart : IUnknown
  71. {
  72. HRESULT RestartRouter([in] DWORD dwFlags);
  73. };
  74. [
  75. uuid(66A2DB21-D706-11d0-A37B-00C04FC9DA04),
  76. helpstring("IRemoteSetDnsConfig Interface"),
  77. pointer_default(unique)
  78. ]
  79. interface IRemoteSetDnsConfig : IUnknown
  80. {
  81. HRESULT SetDnsConfig([in] DWORD dwConfigId,
  82. [in] DWORD dwNewValue);
  83. };
  84. [
  85. uuid(66A2DB22-D706-11d0-A37B-00C04FC9DA04),
  86. helpstring("IRemoteICFICSConfig Interface"),
  87. pointer_default(unique)
  88. ]
  89. interface IRemoteICFICSConfig : IUnknown
  90. {
  91. //The following methods are for determining if
  92. // ICF/ICS is enabled on any connection
  93. HRESULT GetIcfEnabled([out] BOOL * status);
  94. HRESULT GetIcsEnabled([out] BOOL * status);
  95. };
  96. [
  97. uuid(66A2DB80-D706-11d0-A37B-00C04FC9DA04),
  98. version(1.0),
  99. helpstring("remrras 1.0 Type Library")
  100. ]
  101. library REMRRASLib
  102. {
  103. importlib("stdole2.tlb");
  104. [
  105. uuid(1AA7F844-C7F5-11d0-A376-00C04FC9DA04),
  106. helpstring("RemCfg Class")
  107. ]
  108. coclass RemoteRouterConfig
  109. {
  110. [default] interface IRemoteRouterConfig;
  111. interface IRemoteNetworkConfig;
  112. interface IRemoteSetDnsConfig;
  113. interface IRemoteICFICSConfig;
  114. };
  115. };