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.

184 lines
5.5 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. #include "commonstrings.cpp"
  15. //
  16. // The command line executable name
  17. //
  18. PCWSTR g_pszDSCommandName = L"dsquery";
  19. //
  20. // Object types as are typed on the command line
  21. //
  22. PCWSTR g_pszStar = L"*";
  23. PCWSTR g_pszOU = L"ou";
  24. PCWSTR g_pszUser = L"user";
  25. PCWSTR g_pszContact = L"contact";
  26. PCWSTR g_pszComputer = L"computer";
  27. PCWSTR g_pszGroup = L"group";
  28. PCWSTR g_pszServer = L"server";
  29. PCWSTR g_pszSite = L"site";
  30. PCWSTR g_pszSubnet = L"subnet";
  31. PCWSTR g_pszQuota = L"quota";
  32. PCWSTR g_pszPartition = L"partition";
  33. PCWSTR c_sz_arg1_com_recurse = L"r";
  34. PCWSTR c_sz_arg1_com_gc = L"gc";
  35. PCWSTR c_sz_arg1_com_output = L"o";
  36. PCWSTR c_sz_arg1_com_startnode = L"startnode";
  37. PCWSTR c_sz_arg1_com_limit = L"limit";
  38. //
  39. // Star switches
  40. //
  41. PCWSTR g_pszArg1StarScope = L"scope";
  42. PCWSTR g_pszArg1StarFilter = L"filter";
  43. PCWSTR g_pszArg1StarAttr = L"attr";
  44. PCWSTR g_pszArg1StarAttrsOnly = L"attrsonly";
  45. PCWSTR g_pszArg1StarList = L"l";
  46. //
  47. // User switches
  48. //
  49. PCWSTR g_pszArg1UserScope = L"scope";
  50. PCWSTR g_pszArg1UserName = L"name";
  51. PCWSTR g_pszArg1UserDesc = L"desc";
  52. PCWSTR g_pszArg1UserUpn = L"upn";
  53. PCWSTR g_pszArg1UserSamid = L"samid";
  54. PCWSTR g_pszArg1UserInactive = L"inactive";
  55. PCWSTR g_pszArg1UserDisabled = L"disabled";
  56. PCWSTR g_pszArg1UserStalepwd = L"stalepwd";
  57. //
  58. // Computer switches
  59. //
  60. PCWSTR g_pszArg1ComputerScope = L"scope";
  61. PCWSTR g_pszArg1ComputerName = L"name";
  62. PCWSTR g_pszArg1ComputerDesc = L"desc";
  63. PCWSTR g_pszArg1ComputerSamid = L"samid";
  64. PCWSTR g_pszArg1ComputerInactive = L"inactive";
  65. PCWSTR g_pszArg1ComputerDisabled = L"disabled";
  66. PCWSTR g_pszArg1ComputerStalepwd = L"stalepwd";
  67. //
  68. // Group switches
  69. //
  70. PCWSTR g_pszArg1GroupScope = L"scope";
  71. PCWSTR g_pszArg1GroupName = L"name";
  72. PCWSTR g_pszArg1GroupDesc = L"desc";
  73. PCWSTR g_pszArg1GroupSamid = L"samid";
  74. //
  75. // Ou switches
  76. //
  77. PCWSTR g_pszArg1OUScope = L"scope";
  78. PCWSTR g_pszArg1OUName = L"name";
  79. PCWSTR g_pszArg1OUDesc = L"desc";
  80. //
  81. // Server switches
  82. //
  83. PCWSTR g_pszArg1ServerForest = L"forest";
  84. PCWSTR g_pszArg1ServerSite = L"site";
  85. PCWSTR g_pszArg1ServerName = L"name";
  86. PCWSTR g_pszArg1ServerDesc = L"desc";
  87. PCWSTR g_pszArg1ServerHasFSMO = L"hasfsmo";
  88. PCWSTR g_pszArg1ServerIsGC = L"isgc";
  89. //
  90. // Site switches
  91. //
  92. PCWSTR g_pszArg1SiteName = L"name";
  93. PCWSTR g_pszArg1SiteDesc = L"desc";
  94. //
  95. // Subnet switches
  96. //
  97. PCWSTR g_pszArg1SubnetName = L"name";
  98. PCWSTR g_pszArg1SubnetDesc = L"desc";
  99. PCWSTR g_pszArg1SubnetLoc = L"loc";
  100. PCWSTR g_pszArg1SubnetSite = L"site";
  101. //
  102. // Quota switches
  103. //
  104. PCWSTR g_pszArg1QuotaAcct = L"acct";
  105. PCWSTR g_pszArg1QuotaQLimit = L"qlimit";
  106. PCWSTR g_pszArg1QuotaDesc = L"desc";
  107. //
  108. // Partition switches
  109. //
  110. PCWSTR g_pszArg1PartitionPart = L"part";
  111. PCWSTR g_pszArg1PartitionDesc = L"desc";
  112. //
  113. // Valid Output formats{dn, rdn, upn, samid, ntlmid}
  114. //
  115. PCWSTR g_pszDN = L"dn";
  116. PCWSTR g_pszRDN = L"rdn";
  117. PCWSTR g_pszUPN = L"upn";
  118. PCWSTR g_pszSamId = L"samid";
  119. PCWSTR g_pszNtlmId = L"ntlmid";
  120. //
  121. //Valid Scope Strings
  122. //
  123. PCWSTR g_pszSubTree = L"subtree";
  124. PCWSTR g_pszOneLevel = L"onelevel";
  125. PCWSTR g_pszBase = L"base";
  126. //Default Filter and Prefix filter
  127. PCWSTR g_pszDefStarFilter = L"(objectClass=*)";
  128. PCWSTR g_pszDefUserFilter = L"&(objectCategory=person)(objectClass=user)";
  129. PCWSTR g_pszDefComputerFilter = L"&(objectCategory=Computer)";
  130. PCWSTR g_pszDefGroupFilter = L"&(objectCategory=Group)";
  131. PCWSTR g_pszDefOUFilter = L"&(objectCategory=organizationalUnit)";
  132. PCWSTR g_pszDefServerFilter = L"&(objectCategory=server)";
  133. PCWSTR g_pszDefSiteFilter = L"&(objectCategory=site)";
  134. PCWSTR g_pszDefSubnetFilter = L"&(objectCategory=subnet)";
  135. PCWSTR g_pszDefContactFilter = L"&(objectCategory=person)(objectClass=contact)";
  136. PCWSTR g_pszDefQuotaFilter = L"&(objectCategory=msDS-QuotaControl)";
  137. PCWSTR g_pszDefPartitionFilter= L"&(objectClass=crossRef)";
  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. PCWSTR g_szAttrNCName = L"nCName";
  149. // FSMOs
  150. PCWSTR g_pszSchema = L"schema";
  151. PCWSTR g_pszName = L"name";
  152. PCWSTR g_pszInfr = L"infr";
  153. PCWSTR g_pszPDC = L"pdc";
  154. PCWSTR g_pszRID = L"rid";