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.

202 lines
9.6 KiB

  1. /*********************************************************************************************
  2. Copyright (c) Microsoft Corporation
  3. Module Name:
  4. VerboseLoggingData.h
  5. Abstract:
  6. Header file containing the constants and function prototypes pertaining to the
  7. Verbose information display
  8. Author:
  9. Wipro Technologies
  10. Revision History:
  11. 22-Feb-2001 : Created It.
  12. *********************************************************************************************/
  13. #ifndef _GVERBOSE_H
  14. #define _GVERBOSE_H
  15. //
  16. // constants
  17. // CLS stands for class
  18. #define CLS_WIN32_DOMAIN _T( "Win32_ComputerSystem" )
  19. #define CLS_WIN32_USER _T( "Win32_UserAccount" )
  20. #define CLS_SOFTWARE _T( "RSOP_ApplicationManagementPolicySetting" )
  21. #define CLS_PASSWD_POLICY _T( "RSOP_SecuritySettingNumeric" )
  22. #define CLS_SECURITY_BOOLEAN _T( "RSOP_SecuritySettingBoolean" )
  23. #define CLS_SECURITY_STRING _T( "RSOP_SecuritySettingString" )
  24. #define CLS_SCRIPTS _T( "RSOP_ScriptPolicySetting" )
  25. #define CLS_EVENTLOG_BOOLEAN _T( "RSOP_SecurityEventLogSettingBoolean" )
  26. #define CLS_EVENTLOG_NUMERIC _T( "RSOP_SecurityEventLogSettingNumeric" )
  27. #define CLS_USER_RIGHTS _T( "RSOP_UserPrivilegeRight" )
  28. #define CLS_AUDIT_POLICY _T( "RSOP_AuditPolicy" )
  29. #define CLS_RESTRICTED_GROUPS _T( "RSOP_RestrictedGroup" )
  30. #define CLS_SYSTEM_SERVICES _T( "RSOP_SystemService" )
  31. #define CLS_REGISTRY _T( "RSOP_RegistryKey" )
  32. #define CLS_FILE _T( "RSOP_File" )
  33. #define CLS_ADMIN _T( "RSOP_RegistryPolicySetting" )
  34. #define CLS_FOLDER_REDIRECTION _T( "RSOP_FolderRedirectionPolicySetting" )
  35. #define CLS_IE_FAVLINKORITEM _T( "RSOP_IEFavoriteOrLinkItem" )
  36. #define CLS_IE_SECURITY_CONTENT _T( "RSOP_IESecurityContentRatings" )
  37. #define CLS_IE_SECURITY_ZONE _T( "RSOP_IESecurityZoneSettings" )
  38. #define CLS_IE_CONNECTION _T( "RSOP_IEConnectionSettings" )
  39. #define CLS_IE_POLICY _T( "RSOP_IEAKPolicySetting" )
  40. // Class Property Value
  41. #define CPV_ID _T( "id" )
  42. #define CPV_GPOID _T( "GPOID" )
  43. #define CPV_KEYNAME1 _T( "Keyname" )
  44. #define CPV_SETTING1 _T( "Setting" )
  45. #define CPV_TYPE _T( "Type" )
  46. #define CPV_REG_FS _T( "Path" )
  47. #define CPV_SCRIPTLIST _T( "scriptList" )
  48. #define CPV_USERRIGHT _T( "UserRight" )
  49. #define CPV_ACCOUNTLIST _T( "AccountList" )
  50. #define CPV_CATEGORY _T( "Category" )
  51. #define CPV_SUCCESS _T( "Success" )
  52. #define CPV_FAILURE _T( "Failure" )
  53. #define CPV_GROUP _T( "GroupName" )
  54. #define CPV_MEMBERS _T( "Members" )
  55. #define CPV_SERVICE _T( "Service" )
  56. #define CPV_STARTUP _T( "StartupMode" )
  57. #define CPV_PRECEDENCE _T( "precedence" )
  58. #define CPV_REGISTRY _T( "registryKey" )
  59. #define CPV_AUTO_INSTALL _T( "DemandInstallable" )
  60. #define CPV_ORIGIN _T( "EntryType" )
  61. #define CPV_SCRIPT _T( "script" )
  62. #define CPV_ARGUMENTS _T( "arguments" )
  63. #define CPV_EXECTIME _T( "executionTime" )
  64. #define CPV_DELETED _T( "deleted" )
  65. #define CPV_VALUE _T( "Value" )
  66. #define CPV_VALUENAME _T( "valueName" )
  67. #define CPV_SCRIPT_ID _T( "id" )
  68. // Properties for folder re-direction
  69. #define CPV_FRINSTYPE _T( "installationType" )
  70. #define CPV_FRSECGROUP _T( "redirectingGroup" )
  71. #define CPV_FRPATH _T( "redirectedPaths" )
  72. #define CPV_FRGRANT _T( "grantType" )
  73. #define CPV_FRMOVE _T( "moveType" )
  74. #define CPV_FRREMOVAL _T( "policyRemoval" )
  75. // Properties for IE settings
  76. #define CPV_HOMEPAGEURL _T( "homePageURL" )
  77. #define CPV_SEARCHBARURL _T( "searchBarURL" )
  78. #define CPV_HELPPAGEURL _T( "onlineHelpPageURL" )
  79. #define CPV_BITMAPNAME _T( "largeAnimatedBitmapName" )
  80. #define CPV_LOGOBITMAPNAME _T( "largeCustomLogoBitmapName" )
  81. #define CPV_USERAGENTTEXT _T( "userAgentText" )
  82. #define CPV_TITLEBARTEXT _T( "titleBarCustomText" )
  83. #define CPV_ALWAYSVIEW _T( "alwaysViewableSites" )
  84. #define CPV_ENABLEPASSWORD _T( "passwordOverrideEnabled" )
  85. #define CPV_DISPLAY_NAME _T( "displayName" )
  86. #define CPV_ZONEMAPPINGS _T( "zoneMappings" )
  87. #define CPV_URL _T( "url" )
  88. #define CPV_AVAILOFFLINE _T( "makeAvailableOffline" )
  89. #define CPV_HTTP_PROXY _T( "httpProxyServer" )
  90. #define CPV_SECURE_PROXY _T( "secureProxyServer" )
  91. #define CPV_FTP_PROXY _T( "ftpProxyServer" )
  92. #define CPV_GOPHER_PROXY _T( "gopherProxyServer" )
  93. #define CPV_SOCKS_PROXY _T( "socksProxyServer" )
  94. #define CPV_AUTO_CONFIG_ENABLE _T( "autoConfigEnable" )
  95. #define CPV_ENABLE_PROXY _T( "enableProxy" )
  96. #define CPV_USE_SAME_PROXY _T( "useSameProxy" )
  97. #define CPV_PROGRAM _T( "importProgramSettings" )
  98. #define CPV_SEC_CONTENT _T( "importContentRatingsSettings" )
  99. #define CPV_SEC_ZONE _T( "importSecurityZoneSettings" )
  100. #define CPV_AUTH_CODE _T( "importAuthenticodeSecurityInfo" )
  101. #define CPV_TRUST_PUB _T( "enableTrustedPublisherLockdown" )
  102. #define CPV_TOOL_BUTTONS _T( "deleteExistingToolbarButtons" )
  103. // Software Installation
  104. #define CPV_APP_NAME _T( "name" )
  105. #define CPV_VER_HI _T( "VersionNumberHi" )
  106. #define CPV_VER_LO _T( "VersionNumberLo" )
  107. #define CPV_DEPLOY_STATE _T( "DeploymentType" )
  108. #define CPV_APP_SRC _T( "PackageLocation" )
  109. #define FPR_STARTUP _T( "startup" )
  110. #define FPR_SHUTDOWN _T( "shutdown" )
  111. // Query Strings
  112. #define QUERY_VERBOSE _T( "SELECT * from %s WHERE precedence=1" )
  113. #define QUERY_SUPER_VERBOSE _T( "SELECT * from %s" )
  114. #define QUERY_START_UP _T( "Select * from %s WHERE ScriptType=3" )
  115. #define QUERY_SHUT_DOWN _T( "Select * from %s WHERE ScriptType=4" )
  116. #define QUERY_LOGON_SCRIPT _T( "Select * from %s WHERE ScriptType=1" )
  117. #define QUERY_LOGOFF_SCRIPT _T( "Select * from %s WHERE ScriptType=2" )
  118. #define QUERY_USER_LOGON_SCRIPT _T( "Select * from %s WHERE ScriptOrder=1" )
  119. #define QUERY_ADMIN_TEMP _T( "Select * from %s WHERE (valueType = 1 OR valueType = 4 OR Deleted = TRUE)" )
  120. #define QUERY_ADD_VERBOSE _T( " AND precedence=1" )
  121. //
  122. // function prototypes
  123. VOID DisplaySoftwareInstallations( IWbemServices *pNameSpace, COAUTHIDENTITY *pAuthIdentity,
  124. BOOL bSuperVerbose );
  125. VOID DisplayPasswordPolicy( IWbemServices *pNameSpace, COAUTHIDENTITY *pAuthIdentity,
  126. BOOL bSuperVerbose );
  127. VOID DisplayAuditPolicy( IWbemServices *pNameSpace, COAUTHIDENTITY *pAuthIdentity,
  128. BOOL bSuperVerbose );
  129. VOID DisplayUserRights( IWbemServices *pNameSpace, COAUTHIDENTITY *pAuthIdentity,
  130. BOOL bSuperVerbose);
  131. VOID DisplayFolderRedirection( IWbemServices *pNameSpace, COAUTHIDENTITY *pAuthIdentity,
  132. BOOL bSuperVerbose );
  133. VOID DisplayRestrictedGroups( IWbemServices *pNameSpace, COAUTHIDENTITY *pAuthIdentity,
  134. BOOL bSuperVerbose );
  135. VOID DisplaySystemServices( IWbemServices *pNameSpace, COAUTHIDENTITY *pAuthIdentity,
  136. BOOL bSuperVerbose );
  137. VOID DisplayScripts( IWbemServices *pNameSpace, BOOL bScriptFlag,
  138. COAUTHIDENTITY *pAuthIdentity, BOOL bSuperVerbose );
  139. VOID DisplaySecurityandEvents( IWbemServices *pNameSpace, BSTR pszClassName,
  140. COAUTHIDENTITY *pAuthIdentity, BOOL bSuperVerbose );
  141. VOID DisplayRegistryandFileInfo( IWbemServices *pNameSpace, BSTR pszClassName,
  142. COAUTHIDENTITY *pAuthIdentity, BOOL bSuperVerbose );
  143. VOID DisplayTemplates( IWbemServices *pNameSpace, COAUTHIDENTITY *pAuthIdentity,
  144. BOOL bSuperVerbose );
  145. VOID GpoName( IWbemServices *pNameSpace, LPTSTR lpszGpoid,
  146. COAUTHIDENTITY *pAuthIdentity );
  147. VOID DisplayIEPolicy( IWbemServices *pNameSpace, COAUTHIDENTITY *pAuthIdentity,
  148. BOOL bSuperVerbose );
  149. VOID DisplayIEFavorites( IWbemServices *pNameSpace, COAUTHIDENTITY *pAuthIdentity );
  150. VOID DisplayIESecurityContent( IWbemServices *pNameSpace, COAUTHIDENTITY *pAuthIdentity );
  151. VOID DisplayIESecurity( IWbemServices *pNameSpace, COAUTHIDENTITY *pAuthIdentity,
  152. BOOL bSuperVerbose );
  153. VOID DisplayIEPrograms( IWbemServices *pNameSpace, COAUTHIDENTITY *pAuthIdentity,
  154. BOOL bSuperVerbose );
  155. VOID DisplayIEProxySetting( IWbemServices *pNameSpace, COAUTHIDENTITY *pAuthIdentity );
  156. VOID DisplayIEImpURLS( IWbemServices *pNameSpace, COAUTHIDENTITY *pAuthIdentity,
  157. BOOL bSuperVerbose );
  158. //these functions is added to display logon and logoff scripts, 15-sep-2001
  159. VOID DisplayUserLogonScripts( IWbemServices *pNameSpace, BOOL bStartUp,
  160. COAUTHIDENTITY *pAuthIdentity, BOOL bSuperVerbose );
  161. VOID DisplayUserPrivileges( LPCWSTR strServerName, CHString strSid, LPWSTR* szUserGroups, DWORD dwNoOfGroups );
  162. #endif