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.

183 lines
5.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 2000
  5. //
  6. // File: cstrings.cpp
  7. //
  8. // Contents: Defines the global strings that are used in the parser
  9. //
  10. // History: 24-Sep-2000 hiteshr Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #include "pch.h"
  14. //
  15. // The command line executable name
  16. //
  17. PCWSTR g_pszDSCommandName = L"dsquery";
  18. //
  19. // Object types as are typed on the command line
  20. //
  21. PCWSTR g_pszStar = L"*";
  22. PCWSTR g_pszOU = L"ou";
  23. PCWSTR g_pszUser = L"user";
  24. PCWSTR g_pszContact = L"contact";
  25. PCWSTR g_pszComputer = L"computer";
  26. PCWSTR g_pszGroup = L"group";
  27. PCWSTR g_pszServer = L"server";
  28. PCWSTR g_pszSite = L"site";
  29. PCWSTR g_pszSubnet = L"subnet";
  30. //
  31. // Common switches
  32. //
  33. PCWSTR c_sz_arg1_com_debug = L"debug";
  34. PCWSTR c_sz_arg1_com_help = L"h";
  35. PCWSTR c_sz_arg2_com_help = L"?";
  36. PCWSTR c_sz_arg1_com_server = L"s";
  37. PCWSTR c_sz_arg2_com_server = L"server";
  38. PCWSTR c_sz_arg1_com_domain = L"d";
  39. PCWSTR c_sz_arg2_com_domain = L"domain";
  40. PCWSTR c_sz_arg1_com_username = L"u";
  41. PCWSTR c_sz_arg2_com_username = L"username";
  42. PCWSTR c_sz_arg1_com_password = L"p";
  43. PCWSTR c_sz_arg2_com_password = L"password";
  44. PCWSTR c_sz_arg1_com_quiet = L"q";
  45. PCWSTR c_sz_arg1_com_objecttype = L"objecttype";
  46. PCWSTR c_sz_arg1_com_recurse = L"r";
  47. PCWSTR c_sz_arg1_com_gc = L"gc";
  48. PCWSTR c_sz_arg1_com_output = L"o";
  49. PCWSTR c_sz_arg1_com_startnode = L"startnode";
  50. PCWSTR c_sz_arg1_com_limit = L"limit";
  51. //
  52. // Star switches
  53. //
  54. PCWSTR g_pszArg1StarScope = L"scope";
  55. PCWSTR g_pszArg1StarFilter = L"filter";
  56. PCWSTR g_pszArg1StarAttr = L"attr";
  57. PCWSTR g_pszArg1StarAttrsOnly = L"attrsonly";
  58. PCWSTR g_pszArg1StarList = L"l";
  59. //
  60. // User switches
  61. //
  62. PCWSTR g_pszArg1UserScope = L"scope";
  63. PCWSTR g_pszArg1UserName = L"name";
  64. PCWSTR g_pszArg1UserDesc = L"desc";
  65. PCWSTR g_pszArg1UserUpn = L"upn";
  66. PCWSTR g_pszArg1UserSamid = L"samid";
  67. PCWSTR g_pszArg1UserInactive = L"inactive";
  68. PCWSTR g_pszArg1UserDisabled = L"disabled";
  69. PCWSTR g_pszArg1UserStalepwd = L"stalepwd";
  70. //
  71. // Computer switches
  72. //
  73. PCWSTR g_pszArg1ComputerScope = L"scope";
  74. PCWSTR g_pszArg1ComputerName = L"name";
  75. PCWSTR g_pszArg1ComputerDesc = L"desc";
  76. PCWSTR g_pszArg1ComputerSamid = L"samid";
  77. PCWSTR g_pszArg1ComputerInactive = L"inactive";
  78. PCWSTR g_pszArg1ComputerDisabled = L"disabled";
  79. PCWSTR g_pszArg1ComputerStalepwd = L"stalepwd";
  80. //
  81. // Group switches
  82. //
  83. PCWSTR g_pszArg1GroupScope = L"scope";
  84. PCWSTR g_pszArg1GroupName = L"name";
  85. PCWSTR g_pszArg1GroupDesc = L"desc";
  86. PCWSTR g_pszArg1GroupSamid = L"samid";
  87. //
  88. // Ou switches
  89. //
  90. PCWSTR g_pszArg1OUScope = L"scope";
  91. PCWSTR g_pszArg1OUName = L"name";
  92. PCWSTR g_pszArg1OUDesc = L"desc";
  93. //
  94. // Server switches
  95. //
  96. PCWSTR g_pszArg1ServerForest = L"forest";
  97. PCWSTR g_pszArg1ServerSite = L"site";
  98. PCWSTR g_pszArg1ServerName = L"name";
  99. PCWSTR g_pszArg1ServerDesc = L"desc";
  100. PCWSTR g_pszArg1ServerHasFSMO = L"hasfsmo";
  101. PCWSTR g_pszArg1ServerIsGC = L"isgc";
  102. //
  103. // Site switches
  104. //
  105. PCWSTR g_pszArg1SiteName = L"name";
  106. PCWSTR g_pszArg1SiteDesc = L"desc";
  107. //
  108. // Subnet switches
  109. //
  110. PCWSTR g_pszArg1SubnetName = L"name";
  111. PCWSTR g_pszArg1SubnetDesc = L"desc";
  112. PCWSTR g_pszArg1SubnetLoc = L"loc";
  113. PCWSTR g_pszArg1SubnetSite = L"site";
  114. //
  115. // Valid Output formats{dn, rdn, upn, samid, ntlmid}
  116. //
  117. PCWSTR g_pszDN = L"dn";
  118. PCWSTR g_pszRDN = L"rdn";
  119. PCWSTR g_pszUPN = L"upn";
  120. PCWSTR g_pszSamId = L"samid";
  121. PCWSTR g_pszNtlmId = L"ntlmid";
  122. //
  123. //Valid Scope Strings
  124. //
  125. PCWSTR g_pszSubTree = L"subtree";
  126. PCWSTR g_pszOneLevel = L"onelevel";
  127. PCWSTR g_pszBase = L"base";
  128. //Default Filter and Prefix filter
  129. PCWSTR g_pszDefStarFilter = L"(objectClass=*)";
  130. PCWSTR g_pszDefUserFilter = L"&(objectCategory=person)(objectClass=user)";
  131. PCWSTR g_pszDefComputerFilter = L"&(objectCategory=Computer)";
  132. PCWSTR g_pszDefGroupFilter = L"&(objectCategory=Group)";
  133. PCWSTR g_pszDefOUFilter = L"&(objectCategory=organizationalUnit)";
  134. PCWSTR g_pszDefServerFilter = L"&(objectCategory=server)";
  135. PCWSTR g_pszDefSiteFilter = L"&(objectCategory=site)";
  136. PCWSTR g_pszDefSubnetFilter = L"&(objectCategory=subnet)";
  137. PCWSTR g_pszDefContactFilter = L"&(objectCategory=person)(objectClass=contact)";
  138. //Valid start node values
  139. PCWSTR g_pszDomainRoot = L"domainroot";
  140. PCWSTR g_pszForestRoot = L"forestroot";
  141. PCWSTR g_pszSiteRoot = L"site";
  142. //Attributes to fetch
  143. PCWSTR g_szAttrDistinguishedName = L"distinguishedName";
  144. PCWSTR g_szAttrUserPrincipalName = L"userPrincipalName";
  145. PCWSTR g_szAttrSamAccountName = L"sAMAccountName";
  146. PCWSTR g_szAttrRDN = L"name";
  147. PCWSTR g_szAttrServerReference = L"serverReference";
  148. // FSMOs
  149. PCWSTR g_pszSchema = L"schema";
  150. PCWSTR g_pszName = L"name";
  151. PCWSTR g_pszInfr = L"infr";
  152. PCWSTR g_pszPDC = L"pdc";
  153. PCWSTR g_pszRID = L"rid";