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.

196 lines
10 KiB

  1. #include <windows.h>
  2. #include <ntverp.h>
  3. #include "gpresult.h"
  4. #define VER_FILETYPE VFT_APP
  5. #define VER_FILESUBTYPE VFT2_UNKNOWN
  6. #define VER_FILEDESCRIPTION_STR "Microsoft\256 Resultant Set of Policy Tool"
  7. #define VER_INTERNALNAME_STR "gpresult.exe"
  8. #define VER_ORIGINALFILENAME_STR "gpresult.exe"
  9. #include <common.ver>
  10. 1 ICON policy.ico
  11. STRINGTABLE
  12. BEGIN
  13. IDS_NEWLINE "\n"
  14. IDS_2NEWLINE "\n\n"
  15. IDS_LEGAL1 "Microsoft (R) Windows (R) 2000 Operating System Group Policy Result tool\n"
  16. IDS_LEGAL2 "Copyright (C) Microsoft Corp. 1981-1999"
  17. IDS_USAGE1 "\nThis tool displays the result of Group Policy for the current user and computer.\n"
  18. IDS_USAGE2 "usage: gpresult [/V] [/S] [/C | /U] [/?]\n\n"
  19. IDS_USAGE3 "\t/V\tVerbose mode\n"
  20. IDS_USAGE4 "\t/S\tSuper verbose mode\n"
  21. IDS_USAGE5 "\t/C\tComputer settings only\n"
  22. IDS_USAGE6 "\t/U\tUser settings only\n"
  23. IDS_CREATEINFO "\nCreated on %s at %s\n\n"
  24. IDS_OSINFO "\nOperating System Information:\n\n"
  25. IDS_OS_PRO "Operating System Type:\t\tProfessional\n"
  26. IDS_OS_SRV "Operating System Type:\t\tServer\n"
  27. IDS_OS_DC "Operating System Type:\t\tDomain Controller\n"
  28. IDS_OS_BUILDNUMBER1 "Operating System Version:\t%d.%d.%d.%s\n"
  29. IDS_OS_BUILDNUMBER2 "Operating System Version:\t%d.%d.%d\n"
  30. IDS_TS_REMOTEADMIN "Terminal Server Mode:\t\tRemote Administration\n"
  31. IDS_TS_APPSERVER "Terminal Server Mode:\t\tApplication Server\n"
  32. IDS_TS_NONE "Terminal Server Mode:\t\tNone\n"
  33. IDS_TS_NOTSUPPORTED "Terminal Server Mode:\t\tNot supported\n"
  34. IDS_LINE "###############################################################\n"
  35. IDS_LINE2 "\n\n===============================================================\n"
  36. IDS_COMPRESULTS1 " Computer Group Policy results for:\n\n"
  37. IDS_COMPRESULTS2 " %s\n\n"
  38. IDS_DOMAINNAME " Domain Name:\t\t%s\n"
  39. IDS_W2KDOMAIN " Domain Type:\t\tWindows 2000\n"
  40. IDS_SITENAME " Site Name:\t\t%s\n"
  41. IDS_LOCALCOMP " Domain Type:\t\tNone (Local computer)\n"
  42. IDS_NT4DOMAIN " Domain Type:\t\tWindows NT v4\n"
  43. IDS_USERRESULTS1 " User Group Policy results for:\n\n"
  44. IDS_USERRESULTS2 " %s\n\n"
  45. IDS_LOCALUSER " Domain Type:\t\tNone (Local user account)\n"
  46. IDS_LASTTIME "Last time Group Policy was applied: %s at %s\n"
  47. IDS_DCNAME "Group Policy was applied from: %s\n"
  48. IDS_COMPREGPOLICY "\n\nThe computer received ""Registry"" settings from these GPOs:\n\n"
  49. IDS_USERREGPOLICY "\n\nThe user received ""Registry"" settings from these GPOs:\n\n"
  50. IDS_COMPPOLICY "The computer received ""%s"" settings from these GPOs:\n\n"
  51. IDS_USERPOLICY "The user received ""%s"" settings from these GPOs:\n\n"
  52. IDS_GPONAME "\t%s\n"
  53. IDS_SECEDIT "\n\tRun the Security Configuration Editor for more information.\n"
  54. IDS_NOINFO "\n\tAdditional information is not available for this type of policy setting.\n"
  55. IDS_ROAMINGPROFILE " Roaming profile:\t%s\n"
  56. IDS_NOROAMINGPROFILE " Roaming profile:\t(None)\n"
  57. IDS_LOCALPROFILE " Local profile:\t%s\n"
  58. IDS_NOLOCALPROFILE " Local profile:\t(None)\n"
  59. IDS_SECURITYGROUPS1 "\n The user is a member of the following security groups:\n\n"
  60. IDS_SECURITYGROUPS2 "\n The computer is a member of the following security groups:\n\n"
  61. IDS_GROUPNAME "\t%s\\%s\n"
  62. IDS_SECURITYPRIVILEGES "\n The user has the following security privileges:\n\n"
  63. IDS_REVISIONNUMBER1 "\t Revision Number:\t%d (Active Directory) %d (Sysvol)\n"
  64. IDS_REVISIONNUMBER2 "\t Revision Number:\t%d\n"
  65. IDS_UNIQUENAME "\t Unique Name:\t%s\n"
  66. IDS_DOMAINNAME2 "\t Domain Name:\t%s\n"
  67. IDS_LOCALLINK "\t Linked to:\t\tLocal computer\n"
  68. IDS_SITELINK "\t Linked to:\t\tSite (%s)\n"
  69. IDS_DOMAINLINK "\t Linked to:\t\tDomain (%s)\n"
  70. IDS_OULINK "\t Linked to:\t\tOrganizational Unit (%s)\n"
  71. IDS_UNKNOWNLINK "\t Linked to:\t\tUnknown\n"
  72. IDS_FOLDERREDIR "\t%s is redirected to %s.\n"
  73. IDS_IPSEC_NAME "\tPolicy Name:\t%s\n"
  74. IDS_IPSEC_DESC "\tDescription:\t%s\n"
  75. IDS_IPSEC_PATH "\tPolicy Path:\t%s\n"
  76. IDS_DQ_ENABLED1 "\tDisk Quotas enabled:\t\t\t\tYes\n"
  77. IDS_DQ_ENABLED2 "\tDisk Quotas enabled:\t\t\t\tNo\n"
  78. IDS_DQ_ENFORCED1 "\tDisk Quotas enforced:\t\t\t\tYes\n"
  79. IDS_DQ_ENFORCED2 "\tDisk Quotas enforced:\t\t\t\tNo\n"
  80. IDS_DQ_LIMIT1 "\tQuota limit:\t\t\t\t\t%u "
  81. IDS_DQ_LIMIT2 "\tQuota limit:\t\t\t\t\tNo limit\n"
  82. IDS_DQ_KB "KB\n"
  83. IDS_DQ_MB "MB\n"
  84. IDS_DQ_GB "GB\n"
  85. IDS_DQ_TB "TB\n"
  86. IDS_DQ_PB "PB\n"
  87. IDS_DQ_EB "EB\n"
  88. IDS_DQ_WARNING1 "\tWarning level:\t\t\t\t\t%u "
  89. IDS_DQ_WARNING2 "\tWarning level:\t\t\t\t\tNo limit\n"
  90. IDS_DQ_LIMIT_EXCEED1 "\tLog event when quota limit exceeded:\t\tYes\n"
  91. IDS_DQ_LIMIT_EXCEED2 "\tLog event when quota limit exceeded:\t\tNo\n"
  92. IDS_DQ_LIMIT_EXCEED3 "\tLog event when quota warning level exceeded:\tYes\n"
  93. IDS_DQ_LIMIT_EXCEED4 "\tLog event when quota warning level exceeded:\tNo\n"
  94. IDS_DQ_REMOVABLE1 "\tApply policy to removable media:\t\tYes\n"
  95. IDS_DQ_REMOVABLE2 "\tApply policy to removable media:\t\tNo\n"
  96. IDS_SCRIPTS_TITLE "\n\t%s: %s\n"
  97. IDS_SCRIPTS_ENTRY "\t %s %s\n"
  98. IDS_APPMGMT_TITLE1 "\n\n\tThe computer has been assigned the following applications:\n"
  99. IDS_APPMGMT_TITLE2 "\n\n\tThe user has been assigned the following applications:\n"
  100. IDS_APPMGMT_NAME "\n\t %s\n"
  101. IDS_APPMGMT_GPONAME "\t\tGPO Name:\t%s\n"
  102. IDS_APPMGMT_ORPHAN "\t\tRemoval Option:\tApplication is orphaned when policy is removed\n"
  103. IDS_APPMGMT_UNINSTALL "\t\tRemoval Option:\tApplication is uninstalled when policy is removed\n"
  104. IDS_APPMGMT_NONE "\n\t (None)\n"
  105. IDS_APPMGMT_ARP1 "\n\n\tTo view the applications available in Add/Remove Programs, use the /S switch.\n"
  106. IDS_APPMGMT_ARP2 "\n\n\tThe user has the following applications available in Add/Remove Programs:\n"
  107. IDS_APPMGMT_TITLE3 "\n\n\tThe user has installed the following published applications:\n"
  108. IDS_APPMGMT_STATE1 "\t\tInstalled:\tYes\n"
  109. IDS_APPMGMT_STATE2 "\t\tInstalled:\tNo\n"
  110. IDS_REGVIEW_PREF1 "\t +++++++ Warning! The next registry setting is not a true policy setting\n"
  111. IDS_REGVIEW_PREF2 "\t +++++++ and will be left in the registry when the GPO\n"
  112. IDS_REGVIEW_PREF3 "\t +++++++ that created it is no longer applied.\n"
  113. IDS_REGVIEW_GPONAME "\n\n\tThe following settings were applied from: %s\n"
  114. IDS_REGVIEW_KEYNAME "\n\t KeyName:\t%s\n"
  115. IDS_REGVIEW_VALUENAME "\t ValueName:\t%s\n"
  116. IDS_REGVIEW_DWORD "\t ValueType:\tREG_DWORD\n"
  117. IDS_REGVIEW_DWORDDATA "\t Value:\t0x%08x\n"
  118. IDS_REGVIEW_SZ "\t ValueType:\tREG_SZ\n"
  119. IDS_REGVIEW_SZDATA "\t Value:\t%s\n"
  120. IDS_REGVIEW_EXPANDSZ "\t ValueType:\tREG_EXPAND_SZ\n"
  121. IDS_REGVIEW_MULTISZ "\t ValueType:\tREG_MULTI_SZ\n"
  122. IDS_REGVIEW_MULTIDATA1 "\t Value:\n\t\t"
  123. IDS_REGVIEW_MULTIDATA2 "%s\n\t\t"
  124. IDS_REGVIEW_BINARY "\t ValueType:\tREG_BINARY\n"
  125. IDS_REGVIEW_BINARYDATA1 "\t Value:\n\n\t\t "
  126. IDS_REGVIEW_BINARYFRMT "%02x "
  127. IDS_REGVIEW_NEXTLINE "\n\t\t "
  128. IDS_REGVIEW_SPACE " "
  129. IDS_REGVIEW_STRING1 " %S"
  130. IDS_REGVIEW_STRING2 " %S\n"
  131. IDS_REGVIEW_VERBOSE "\t Value:\tBinary data. Use the /S switch to display.\n"
  132. IDS_REGVIEW_NONE "\t ValueType:\tREG_NONE\n"
  133. IDS_REGVIEW_NOVALUES "\t Value:\tThis key contains no values\n"
  134. IDS_REGVIEW_UNKNOWN "\t ValueType:\tUnknown\n"
  135. IDS_REGVIEW_UNKNOWNSIZE "\t ValueSize:\t%d\n"
  136. IDS_OPENHISTORYFAILED "Failed to open key with %d\n"
  137. IDS_QUERYKEYINFOFAILED "Failed to query key info with %d\n"
  138. IDS_OPENPROCESSTOKEN "Failed to open the process token with %d\n."
  139. IDS_QUERYSID "Failed to query the user's sid from the token.\n"
  140. IDS_QUERYVALUEFAILED "Failed to query registry value with %d.\n"
  141. IDS_MEMALLOCFAILED "Failed to allocate memory with %d.\n"
  142. IDS_TOKENINFO "Failed to get the token information with %d.\n"
  143. IDS_LOOKUPACCOUNT "LookupAccountSid failed with %d.\n"
  144. IDS_PRIVSIZE "Failed to get the privileges buffer size.\n"
  145. IDS_LOOKUPFAILED "LookupPrivilegeName failed with %d.\n"
  146. IDS_GETFOLDERPATH "SHGetFolderPath failed.\n"
  147. IDS_GETPRIVATEPROFILE "GetPrivateProfileSectionNames failed.\n"
  148. IDS_CREATEFILE "CreateFile failed with %d."
  149. IDS_INVALIDSIGNATURE1 "Failed to read signature with %d"
  150. IDS_INVALIDSIGNATURE2 "Invalid file signature"
  151. IDS_VERSIONNUMBER1 "Failed to read version number with %d"
  152. IDS_VERSIONNUMBER2 "Invalid file version"
  153. IDS_FAILEDFIRSTCHAR "Failed to read first character with %d"
  154. IDS_FAILEDKEYNAMECHAR "Failed to read keyname character with %d"
  155. IDS_FAILEDSEMICOLON "Failed to read semicolon character with %d"
  156. IDS_FAILEDVALUENAME "Failed to read valuename with %d"
  157. IDS_FAILEDTYPE "Failed to read type with %d"
  158. IDS_FAILEDDATALENGTH "Failed to read data length with %d"
  159. IDS_FAILEDDATA "Failed to read data with %d"
  160. IDS_CLOSINGBRACKET1 "Failed to skip closing bracket with %d"
  161. IDS_CLOSINGBRACKET2 "Expected to find ], but found %c"
  162. END