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.

165 lines
5.4 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. /*++
  3. Copyright (C) Microsoft Corporation, 1997 - 1999
  4. Module Name:
  5. Globals.h
  6. Abstract:
  7. Header file with common declarations
  8. Revision History:
  9. mmaguire 12/03/97 - created
  10. --*/
  11. //////////////////////////////////////////////////////////////////////////////
  12. #if !defined(_NAP_GLOBALS_H_)
  13. #define _NAP_GLOBALS_H_
  14. //////////////////////////////////////////////////////////////////////////////
  15. // BEGIN INCLUDES
  16. //
  17. // where we can find what this file needs:
  18. //
  19. #include "resource.h"
  20. #include "dns.h"
  21. //
  22. // END INCLUDES
  23. //////////////////////////////////////////////////////////////////////////////
  24. //The machine node is the root node in the extension snapin.
  25. typedef enum
  26. {
  27. INTERNET_AUTHENTICATION_SERVICE_SNAPIN,
  28. NETWORK_MANAGEMENT_SNAPIN,
  29. RRAS_SNAPIN
  30. }_enum_EXTENDED_SNAPIN;
  31. // ISSUE: I don't know what the appropriate length should be here -- perhaps MMC imposes a limit somehow?
  32. #define NAP_MAX_STRING MAX_PATH
  33. #define IAS_MAX_STRING MAX_PATH
  34. // Note: We can't just use MAX_COMPUTERNAME_LENGTH anymore because this is 15 characters
  35. // wide and now, with Active Directory, people can enter full DNS names that are much longer
  36. #define IAS_MAX_COMPUTERNAME_LENGTH (DNS_MAX_NAME_LENGTH + 3)
  37. // These are the icon indices within the bitmaps we pass in for IComponentData::Initialize
  38. #define IDBI_NODE_MACHINE_OPEN 1
  39. #define IDBI_NODE_MACHINE_CLOSED 1
  40. #define IDBI_NODE_POLICIES_OK_CLOSED 1
  41. #define IDBI_NODE_POLICIES_OK_OPEN 1
  42. #define IDBI_NODE_POLICY 0
  43. #define IDBI_NODE_POLICIES_BUSY_CLOSED 2
  44. #define IDBI_NODE_POLICIES_BUSY_OPEN 2
  45. #define IDBI_NODE_POLICIES_ERROR_CLOSED 3
  46. #define IDBI_NODE_POLICIES_ERROR_OPEN 3
  47. #define IDBI_NODE_LOGGING_METHODS_OPEN 9
  48. #define IDBI_NODE_LOGGING_METHODS_CLOSED 5
  49. #define IDBI_NODE_LOCAL_FILE_LOGGING 4
  50. #define IDBI_NODE_LOGGING_METHODS_BUSY_OPEN 10
  51. #define IDBI_NODE_LOGGING_METHODS_BUSY_CLOSED 6
  52. #define IDBI_NODE_LOGGING_METHODS_ERROR_OPEN 8
  53. #define IDBI_NODE_LOGGING_METHODS_ERROR_CLOSED 7
  54. // ISSUE: We will need to change this later to use a variable
  55. // which can read in (perhaps from registry?) the location of these files
  56. // as they may be found in a different place depending on where the user
  57. // chose to install them
  58. #define HELPFILE_NAME TEXT("napmmc.hlp")
  59. #define HTMLHELP_NAME TEXT("napmmc.chm")
  60. #define MATCH_PREFIX _T("MATCH") // match-type condition prefix
  61. #define TOD_PREFIX _T("TIMEOFDAY") // Time of day condition prefix
  62. #define NTG_PREFIX _T("NTGROUPS") // nt groups condition prefix
  63. // defines that are used in DebugTrace and ErrorTrace
  64. #define ERROR_NAPMMC_MATCHCOND 0x1001
  65. #define DEBUG_NAPMMC_MATCHCOND 0x2001
  66. #define ERROR_NAPMMC_IASATTR 0x1002
  67. #define DEBUG_NAPMMC_IASATTR 0x2002
  68. #define ERROR_NAPMMC_POLICIESNODE 0x1003
  69. #define DEBUG_NAPMMC_POLICIESNODE 0x2003
  70. #define ERROR_NAPMMC_POLICYPAGE1 0x1004
  71. #define DEBUG_NAPMMC_POLICYPAGE1 0x2004
  72. #define ERROR_NAPMMC_COMPONENT 0x1006
  73. #define DEBUG_NAPMMC_COMPONENT 0x2006
  74. #define ERROR_NAPMMC_COMPONENTDATA 0x1007
  75. #define DEBUG_NAPMMC_COMPONENTDATA 0x2007
  76. #define ERROR_NAPMMC_ENUMCONDATTR 0x1008
  77. #define DEBUG_NAPMMC_ENUMCONDATTR 0x2008
  78. #define ERROR_NAPMMC_CONDITION 0x1009
  79. #define DEBUG_NAPMMC_CONDITION 0x2009
  80. #define ERROR_NAPMMC_TODCONDITION 0x100A
  81. #define DEBUG_NAPMMC_TODCONDITION 0x200A
  82. #define ERROR_NAPMMC_NTGCONDITION 0x100A
  83. #define DEBUG_NAPMMC_NTGCONDITION 0x200A
  84. #define ERROR_NAPMMC_ENUMCONDITION 0x100B
  85. #define DEBUG_NAPMMC_ENUMCONDITION 0x200B
  86. #define ERROR_NAPMMC_IASATTRLIST 0x100C
  87. #define DEBUG_NAPMMC_IASATTRLIST 0x200C
  88. #define ERROR_NAPMMC_SELATTRDLG 0x100D
  89. #define DEBUG_NAPMMC_SELATTRDLG 0x200D
  90. #define ERROR_NAPMMC_MACHINENODE 0x100E
  91. #define DEBUG_NAPMMC_MACHINENODE 0x200E
  92. #define ERROR_NAPMMC_TIMEOFDAY 0x100F
  93. #define DEBUG_NAPMMC_TIMEOFDAY 0x200F
  94. #define ERROR_NAPMMC_ENUMTASK 0x1010
  95. #define DEBUG_NAPMMC_ENUMTASK 0x2010
  96. #define ERROR_NAPMMC_POLICYNODE 0x1011
  97. #define DEBUG_NAPMMC_POLICYNODE 0x2011
  98. #define ERROR_NAPMMC_CONNECTION 0x1012
  99. #define DEBUG_NAPMMC_CONNECTION 0x2012
  100. //
  101. // notification block
  102. //
  103. #define PROPERTY_CHANGE_GENERIC 0x01 // no special handling required
  104. #define PROPERTY_CHANGE_NAME 0x02 // the policy name for this node has been
  105. // changed. This is used for renaming of policy
  106. // clipboard format for NodeID
  107. extern unsigned int CF_MMC_NodeID;
  108. typedef
  109. struct _PROPERTY_CHANGE_NOTIFY_DATA_
  110. {
  111. DWORD dwPropertyChangeType; // what kind of property change?
  112. void* pNode; // the property for which node?
  113. DWORD dwParam; // extra data?
  114. CComBSTR bstrNewName; // new name that has been changed
  115. // we need to pass this new name back
  116. // Please note: this is property change
  117. // was actually designed for name change notify
  118. // and is solely used for this purpose
  119. } PROPERTY_CHANGE_NOTIFY_DATA;
  120. #define RAS_HELP_INDEX 1
  121. #endif // _NAP_GLOBALS_H_