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.

144 lines
2.5 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 2001
  5. //
  6. // File: cmdtable.h
  7. //
  8. // Contents: Defines an enum for the index into the tables which contain the
  9. // command line arguments.
  10. //
  11. // History: 26-Mar-2001 EricB Created
  12. //
  13. //-----------------------------------------------------------------------------
  14. #ifndef _CMDTABLE_H_
  15. #define _CMDTABLE_H_
  16. typedef enum TAG_NETDOM_ARG_ENUM
  17. {
  18. eArgBegin = 0,
  19. //
  20. // Primary operation commands
  21. //
  22. ePriHelp = eArgBegin,
  23. ePriHelp2,
  24. ePriExpertHelp,
  25. ePriAdd,
  26. ePriCompName,
  27. ePriJoin,
  28. ePriMove,
  29. ePriQuery,
  30. ePriRemove,
  31. ePriMoveNT4BDC,
  32. ePriRenameComputer,
  33. ePriReset,
  34. ePriResetPwd,
  35. ePriTrust,
  36. ePriVerify,
  37. ePriTime,
  38. ePriEnd = ePriTime,
  39. //
  40. // Object argument.
  41. //
  42. eObject = eArgBegin,
  43. //
  44. // Query sub-commands.
  45. //
  46. eQueryBegin,
  47. eQueryPDC = eQueryBegin,
  48. eQueryServer,
  49. eQueryWksta,
  50. eQueryDC,
  51. eQueryOU,
  52. eQueryFSMO,
  53. eQueryTrust,
  54. eQueryEnd = eQueryTrust,
  55. //
  56. // Common switches
  57. //
  58. eCommHelp,
  59. eCommQHelp,
  60. eCommExpertHelp,
  61. eCommUserNameO,
  62. eCommPasswordO,
  63. eCommUserNameD,
  64. eCommPasswordD,
  65. eCommDomain,
  66. eCommOU,
  67. eCommVerify,
  68. eCommVerbose,
  69. eCommServer,
  70. eCommReset,
  71. eCommRestart,
  72. eCommForce,
  73. //
  74. // Help switch
  75. //
  76. eHelpSyntax,
  77. //
  78. // Add switch
  79. //
  80. eAddDC,
  81. //
  82. // Move switches
  83. //
  84. eMoveUserNameF,
  85. eMovePasswordF,
  86. //
  87. // Query switch
  88. //
  89. eQueryDirect,
  90. //
  91. // Rename Computer switch
  92. //
  93. eRenCompNewName,
  94. //
  95. // Trust switches (add and remove also used by CompName)
  96. //
  97. eTrustRealm,
  98. eTrustPasswordT,
  99. eCommAdd,
  100. eCommRemove,
  101. eTrustTwoWay,
  102. eTrustKerberos,
  103. eTrustTransitive,
  104. eTrustOneSide,
  105. eTrustNameSuffixes,
  106. eTrustToggleSuffixes,
  107. eTrustFilterSIDs,
  108. eTrustResetOneSide,
  109. eTrustTreatAsExternal,
  110. eTrustForestTransitive,
  111. eTrustCrossOrganization,
  112. eTrustAddTLN,
  113. eTrustAddTLNEX,
  114. eTrustRemoveTLN,
  115. eTrustRemoveTLNEX,
  116. //
  117. // ComputerName switches.
  118. //
  119. eCompNameMakePri,
  120. eCompNameEnum,
  121. eArgEnd,
  122. eArgError,
  123. eArgNull
  124. } NETDOM_ARG_ENUM;
  125. //
  126. // The parser tables
  127. //
  128. extern ARG_RECORD rgNetDomPriArgs[];
  129. extern ARG_RECORD rgNetDomArgs[];
  130. #endif //_CMDTABLE_H_