Source code of Windows XP (NT5)
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.

174 lines
5.4 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1999 **/
  4. /**********************************************************************/
  5. /*
  6. rtrui.h
  7. Miscellaneous common router UI.
  8. FILE HISTORY:
  9. */
  10. #ifndef _RTRUI_H
  11. #define _RTRUI_H
  12. //----------------------------------------------------------------------------
  13. // Function: AddRmInterfacePrompt
  14. //
  15. // Prompts the user to select from a list of the interfaces on which
  16. // a specified router-manager can be enabled.
  17. //
  18. // Returns TRUE if the user selects an interface, FALSE otherwise.
  19. //
  20. // If the user selects an interface, then on output 'ppRmInterfaceInfo'
  21. // will contain a pointer to a 'CRmInterfaceInfo' describing the interface
  22. // selected by the user.
  23. //
  24. // Requires common.rc.
  25. //----------------------------------------------------------------------------
  26. BOOL
  27. AddRmInterfacePrompt(
  28. IRouterInfo * pRouterInfo,
  29. IRtrMgrInfo * pRtrMgrInfo,
  30. IRtrMgrInterfaceInfo **ppRtrMgrInterfaceInfo,
  31. CWnd * pParent);
  32. //----------------------------------------------------------------------------
  33. // Function: AddRmProtInterfacePrompt
  34. //
  35. // Prompts the user to select from a list of the interfaces on which
  36. // a specified routing-protocol can be enabled.
  37. //
  38. // Returns TRUE if the user selects an interface, FALSE otherwise.
  39. //
  40. // If the user selects an interface, then on output 'ppRmInterfaceInfo'
  41. // will contain a pointer to a 'CRmInterfaceInfo' describing the interface
  42. // selected by the user.
  43. //
  44. // Requires common.rc.
  45. //----------------------------------------------------------------------------
  46. BOOL
  47. AddRmProtInterfacePrompt(
  48. IN IRouterInfo* pRouterInfo,
  49. IN IRtrMgrProtocolInfo* pRmProtInfo,
  50. OUT IRtrMgrProtocolInterfaceInfo** ppRmProtInterfaceInfo,
  51. IN CWnd* pParent = NULL );
  52. //----------------------------------------------------------------------------
  53. // Function: AddProtocolPrompt
  54. //
  55. // Prompts the user to select from a list of the routing-protocols
  56. // which can be installed for the specified transport.
  57. //
  58. // Returns TRUE if the user selects a routing-protocol, FALSE otherwise.
  59. //
  60. // If the user selects a protocol, then on output 'ppRmProtInfo' will contain
  61. // a pointer to an 'CRmProtInfo' describing the protocol selected by the user.
  62. //
  63. // Requires common.rc.
  64. //----------------------------------------------------------------------------
  65. BOOL
  66. AddProtocolPrompt(
  67. IN IRouterInfo * pRouter,
  68. IN IRtrMgrInfo* pRmInfo,
  69. OUT IRtrMgrProtocolInfo** ppRmProtInfo,
  70. IN CWnd* pParent = NULL );
  71. //----------------------------------------------------------------------------
  72. // Function: CreateRtrLibImageList
  73. //
  74. // Creates an imagelist containing images from the resource
  75. // 'IDB_RTRLIB_IMAGELIST'.
  76. //----------------------------------------------------------------------------
  77. BOOL
  78. CreateRtrLibImageList(
  79. IN CImageList* imageList
  80. );
  81. //
  82. // Indices of images in shared bitmap 'images.bmp'
  83. //
  84. enum RTRLIB_IMAGELISTINDEX {
  85. ILI_RTRLIB_NETCARD = 0,
  86. ILI_RTRLIB_PROTOCOL = 1,
  87. ILI_RTRLIB_SERVER = 2,
  88. ILI_RTRLIB_CLIENT = 3,
  89. ILI_RTRLIB_UNKNOWN = 4,
  90. ILI_RTRLIB_WINFLAG = 5,
  91. ILI_RTRLIB_BOB = 6,
  92. ILI_RTRLIB_DISABLED = 7,
  93. ILI_RTRLIB_PRINTER = 8,
  94. ILI_RTRLIB_PRINTSERVICE = 9,
  95. ILI_RTRLIB_PARTLYDISABLED = 10,
  96. ILI_RTRLIB_NETCARD_0 = 11,
  97. ILI_RTRLIB_SERVER_0 = 12,
  98. ILI_RTRLIB_CLIENT_0 = 13,
  99. ILI_RTRLIB_FOLDER = 14,
  100. ILI_RTRLIB_FOLDER_0 = 15,
  101. ILI_RTRLIB_MODEM = 16
  102. };
  103. #define PROTO_FROM_PROTOCOL_ID(pid) ((pid) & 0xF000FFFF )
  104. /*---------------------------------------------------------------------------
  105. Function : IsWanInterface
  106. Returns TRUE if the interface type passed in is for a WAN interface.
  107. WAN interfaces are interfaces that are NOT
  108. ROUTER_IF_TYPE_INTERNAL
  109. ROUTER_IF_TYPE_DEDICATED
  110. ROUTER_IF_TYPE_LOOPBACK
  111. ROUTER_IF_TYPE_TUNNEL1
  112. ---------------------------------------------------------------------------*/
  113. #define IsWanInterface(type) ((type != ROUTER_IF_TYPE_INTERNAL) && \
  114. (type != ROUTER_IF_TYPE_DEDICATED) && \
  115. (type != ROUTER_IF_TYPE_LOOPBACK) && \
  116. (type != ROUTER_IF_TYPE_TUNNEL1))
  117. /*---------------------------------------------------------------------------
  118. Function : IsDedicatedInterface
  119. Returns TRUE if the interface type passed in is a dedicated interface.
  120. Dedicated interfaces are of type
  121. ROUTER_IF_TYPE_INTERNAL
  122. ROUTER_IF_TYPE_DEDICATED
  123. ROUTER_IF_TYPE_LOOPBACK
  124. ROUTER_IF_TYPE_TUNNEL1
  125. ---------------------------------------------------------------------------*/
  126. #define IsDedicatedInterface(type) ((type == ROUTER_IF_TYPE_INTERNAL) || \
  127. (type == ROUTER_IF_TYPE_LOOPBACK) || \
  128. (type == ROUTER_IF_TYPE_TUNNEL1) || \
  129. (type == ROUTER_IF_TYPE_DEDICATED) )
  130. BOOL ExtractComputerAddedAsLocal(LPDATAOBJECT lpDataObject);
  131. /*---------------------------------------------------------------------------
  132. Function: NatConflictExists
  133. Returns TRUE if SharedAccess is already running on the specified
  134. machine.
  135. ---------------------------------------------------------------------------*/
  136. BOOL NatConflictExists(LPCTSTR lpszMachine);
  137. #endif