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.

83 lines
2.7 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corp., 1997 **/
  4. /**********************************************************************/
  5. /*
  6. rtrcomn.h
  7. Miscellaneous common router UI.
  8. FILE HISTORY:
  9. */
  10. #ifndef _RTRCOMN_H
  11. #define _RTRCOMN_H
  12. //----------------------------------------------------------------------------
  13. // Function: IfInterfaceIdHasIpxExtensions
  14. //
  15. // Checks the id to see if it has the following extensions
  16. // EthernetSNAP
  17. // EthernetII
  18. // Ethernet802.2
  19. // Ethernet802.3
  20. // These are frame types used by IPX.
  21. //
  22. // Returns the position of the extension in the string (or 0) if not found.
  23. // If an ID has this extension at position 0, then it's not one of our
  24. // special IPX extensions.
  25. //----------------------------------------------------------------------------
  26. int IfInterfaceIdHasIpxExtensions(LPCTSTR pszIfId);
  27. HRESULT CoCreateRouterConfig(LPCTSTR pszMachine,
  28. IRouterInfo *pRouter,
  29. COSERVERINFO *pcsi,
  30. const GUID& riid,
  31. IUnknown **ppUnk);
  32. /*!--------------------------------------------------------------------------
  33. CoCreateProtocolConfig
  34. This will CoCreate the routing config object (given the GUID).
  35. If the machine is an NT4 machine, then we use the default
  36. configuration object.
  37. Author: KennT
  38. ---------------------------------------------------------------------------*/
  39. interface IRouterProtocolConfig;
  40. HRESULT CoCreateProtocolConfig(const IID& iid,
  41. IRouterInfo *pRouter,
  42. DWORD dwTransportId,
  43. DWORD dwProtocolId,
  44. IRouterProtocolConfig **ppConfig);
  45. //----------------------------------------------------------------------------
  46. // Function: QueryIpAddressList(
  47. //
  48. // Loads a list of strings with the IP addresses configured
  49. // for a given LAN interface, if any.
  50. //----------------------------------------------------------------------------
  51. HRESULT
  52. QueryIpAddressList(
  53. LPCTSTR pszMachine,
  54. HKEY hkeyMachine,
  55. LPCTSTR pszInterface,
  56. CStringList *pAddressList,
  57. CStringList* pNetmaskList,
  58. BOOL * pfDhcpObtained = NULL,
  59. BOOL * pfDns = NULL,
  60. CString * pDhcpServer = NULL
  61. );
  62. DWORD OpenTcpipInterfaceParametersKey(LPCTSTR pszMachine,
  63. LPCTSTR pszInterface,
  64. HKEY hkeyMachine,
  65. HKEY *phkeyParams);
  66. #endif