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.

150 lines
8.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: strings.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef __CSCUI_STRINGS_H_
  11. #define __CSCUI_STRINGS_H_
  12. #ifdef __cplusplus
  13. # define EXTERN_C extern "C"
  14. #else
  15. # define EXTERN_C extern
  16. #endif
  17. #ifdef DEFINE_CSCUI_STRINGS
  18. # define DEFINE_STRING(x,y) EXTERN_C const TCHAR x[] = TEXT(##y##)
  19. # define DEFINE_STRINGA(x,y) EXTERN_C const char x[] = y
  20. #else
  21. # define DEFINE_STRING(x,y) EXTERN_C const TCHAR x[]
  22. # define DEFINE_STRINGA(x,y) EXTERN_C const char x[]
  23. #endif
  24. DEFINE_STRING(c_szStar, "*");
  25. DEFINE_STRING(c_szCSCKey, "Software\\Microsoft\\Windows\\CurrentVersion\\NetCache");
  26. DEFINE_STRING(c_szCSCShareKey, "Software\\Microsoft\\Windows\\CurrentVersion\\NetCache\\Shares");
  27. DEFINE_STRING(c_szSyncMutex, "Global\\CscUpdate_SyncMutex");
  28. DEFINE_STRING(c_szSyncInProgCounter, "CscUpdate_SyncInProgCounter");
  29. DEFINE_STRING(c_szSyncCompleteEvent, "Global\\CscUpdate_SyncCompleteEvent");
  30. DEFINE_STRING(c_szPurgeInProgCounter, "CscCache_PurgeInProgCounter");
  31. DEFINE_STRING(c_szEncryptionInProgMutex, "CscCache_EncryptionInProgMutex");
  32. DEFINE_STRING(c_szTSConfigMutex, "Global\\TerminalServerConfigMutex");
  33. DEFINE_STRING(c_szPolicy, "Policy");
  34. DEFINE_STRINGA(c_szCmVerbSync, "synchronize");
  35. DEFINE_STRINGA(c_szCmVerbPin, "pin");
  36. DEFINE_STRING(c_szCFDataSrcClsid, "Data Source CLSID");
  37. DEFINE_STRING(c_szPurgeAtNextLogoff, "PurgeAtNextLogoff");
  38. DEFINE_STRING(c_szDllName, "cscui.dll");
  39. DEFINE_STRING(c_szRegKeyAPF, "Software\\Policies\\Microsoft\\Windows\\NetCache\\AssignedOfflineFolders");
  40. DEFINE_STRING(c_szRegKeyAPFResult, "Software\\Microsoft\\Windows\\CurrentVersion\\NetCache\\AssignedOfflineFolders");
  41. DEFINE_STRING(c_szEntryID, "ID");
  42. DEFINE_STRING(c_szLastSync, "LastSyncTime");
  43. DEFINE_STRING(c_szLNK, ".lnk");
  44. DEFINE_STRING(c_szSyncMgrInitialized, "SyncMgrInitialized");
  45. DEFINE_STRING(c_szConfirmDelShown, "ConfirmDelShown");
  46. DEFINE_STRINGA(c_szHtmlHelpFile, "OFFLINEFOLDERS.CHM > windefault");
  47. DEFINE_STRINGA(c_szHtmlHelpTopic, "csc_overview.htm");
  48. DEFINE_STRING(c_szHelpFile, "CSCUI.HLP");
  49. DEFINE_STRING(c_szPropThis, "PropThis");
  50. DEFINE_STRING(c_szPinCountsReset, "PinCountsReset");
  51. DEFINE_STRING(c_szAPFStart, "AdminPinStartTime");
  52. DEFINE_STRING(c_szAPFEnd, "AdminPinFinishTime");
  53. DEFINE_STRING(c_szAPFMessage, "AdminPinNotification");
  54. //
  55. // These need to be macros.
  56. //
  57. #define STR_SYNC_VERB "synchronize"
  58. #define STR_PIN_VERB "pin"
  59. #define STR_UNPIN_VERB "unpin"
  60. #define STR_DELETE_VERB "delete"
  61. //
  62. // The following table lists all of the registry parameters associated with CSC.
  63. // Parameters can be broken into two groups.
  64. // a. Operational values
  65. // b. Restrictions
  66. //
  67. // Operational values provide operational control for CSC. Values may exist as
  68. // system policy (per-user or per-machine) or they may be user-configured.
  69. // The policy value serves as the default with HKLM taking precedence.
  70. // If there is no corresponding restriction and a user-defined value exists, it is
  71. // used in place of the policy value. If there is a restriction or if only the policy
  72. // value exists, the policy value is used. In the case where there is no policy value
  73. // or no user-defined value, a hard-coded default is used.
  74. //
  75. // Restrictions are policy-rules preventing users from performing some action.
  76. // In general, this means controlling the ability for users to change an operational
  77. // value. Restrictions are only present under the CSC "policy" registry key. All of
  78. // the restriction values are prefixed with "No". If a restriction value is not present,
  79. // it is assumed there is no restriction.
  80. //
  81. //
  82. // - User pref- -- Policy --
  83. // Parameter Name HKCU HKLM HKCU HKLM Values
  84. // ----------------------------- ---- ---- ---- ------ --------------------------------------
  85. // CustomGoOfflineActions X X X ShareName-OfflineAction pairs.
  86. // DefCacheSize X (Pct disk * 10000) 5025 = 50.25%
  87. // Enabled X 0 = Disabled,1 = Enabled
  88. // ExtExclusionList X X List of semicolon-delimited file exts.
  89. // GoOfflineAction X X X 0 = Silent, 1 = Fail
  90. // NoConfigCache X X 0 = No restriction, 1 = restricted
  91. // NoCacheViewer X X 0 = No restriction, 1 = restricted
  92. // NoMakeAvailableOffline X X 0 = No restriction, 1 = restricted
  93. // SyncAtLogoff X X X 0 = Partial (quick), 1 = Full
  94. // SyncAtLogon X X X 0 = Partial (quick), 1 = Full
  95. // SyncAtSuspend X X -1 = None, 0 = Quick, 1 = Full
  96. // NoReminders X X X 0 = Show reminders.
  97. // NoConfigReminders X X 0 = No restriction. 1 = restricted.
  98. // ReminderFreqMinutes X X X Frequency of reminder balloons in min.
  99. // InitialBalloonTimeoutSeconds X X X Seconds before initial balloon auto-pops.
  100. // ReminderBalloonTimeoutSeconds X X X Seconds before reminder balloon auto-pops.
  101. // EventLoggingLevel X X 0 = No logging, (1) minimal -> (3) verbose.
  102. // PurgeAtLogoff X X 1 = Purge, 0 = Don't purge users's files
  103. // PurgeOnlyAutoCacheAtLogoff X X 1 = Purge only auto-cached files at logoff.
  104. // AlwaysPinSubFolders X 1 = Always recursively pin.
  105. // EncryptCache X X 1 = Encrypted, 0 = Not encrypted.
  106. // NoMakeAvailableOfflineList X X List of semicolon-delimited paths
  107. //
  108. DEFINE_STRING(REGSTR_KEY_OFFLINEFILESPOLICY, "Software\\Policies\\Microsoft\\Windows\\NetCache");
  109. DEFINE_STRING(REGSTR_KEY_OFFLINEFILES, "Software\\Microsoft\\Windows\\CurrentVersion\\NetCache");
  110. DEFINE_STRING(REGSTR_SUBKEY_CUSTOMGOOFFLINEACTIONS, "CustomGoOfflineActions");
  111. DEFINE_STRING(REGSTR_SUBKEY_NOMAKEAVAILABLEOFFLINELIST, "NoMakeAvailableOfflineList");
  112. DEFINE_STRING(REGSTR_VAL_DEFCACHESIZE, "DefCacheSize");
  113. DEFINE_STRING(REGSTR_VAL_CSCENABLED, "Enabled");
  114. DEFINE_STRING(REGSTR_VAL_EXTEXCLUSIONLIST, "ExcludedExtensions");
  115. DEFINE_STRING(REGSTR_VAL_GOOFFLINEACTION, "GoOfflineAction");
  116. DEFINE_STRING(REGSTR_VAL_NOCONFIGCACHE, "NoConfigCache");
  117. DEFINE_STRING(REGSTR_VAL_NOCACHEVIEWER, "NoCacheViewer");
  118. DEFINE_STRING(REGSTR_VAL_NOMAKEAVAILABLEOFFLINE, "NoMakeAvailableOffline");
  119. DEFINE_STRING(REGSTR_VAL_SYNCATLOGOFF, "SyncAtLogoff");
  120. DEFINE_STRING(REGSTR_VAL_SYNCATLOGON, "SyncAtLogon");
  121. DEFINE_STRING(REGSTR_VAL_SYNCATSUSPEND, "SyncAtSuspend");
  122. DEFINE_STRING(REGSTR_VAL_NOREMINDERS, "NoReminders");
  123. DEFINE_STRING(REGSTR_VAL_NOCONFIGREMINDERS, "NoConfigReminders");
  124. DEFINE_STRING(REGSTR_VAL_REMINDERFREQMINUTES, "ReminderFreqMinutes");
  125. DEFINE_STRING(REGSTR_VAL_INITIALBALLOONTIMEOUTSECONDS, "InitialBalloonTimeoutSeconds");
  126. DEFINE_STRING(REGSTR_VAL_REMINDERBALLOONTIMEOUTSECONDS, "ReminderBalloonTimeoutSeconds");
  127. DEFINE_STRING(REGSTR_VAL_FIRSTPINWIZARDSHOWN, "FirstPinWizardShown");
  128. DEFINE_STRING(REGSTR_VAL_EXPANDSTATUSDLG, "ExpandStatusDlg");
  129. DEFINE_STRING(REGSTR_VAL_FORMATCSCDB, "FormatDatabase");
  130. DEFINE_STRING(REGSTR_VAL_EVENTLOGGINGLEVEL, "EventLoggingLevel");
  131. DEFINE_STRING(REGSTR_VAL_PURGEATLOGOFF, "PurgeAtLogoff");
  132. DEFINE_STRING(REGSTR_VAL_PURGEONLYAUTOCACHEATLOGOFF, "PurgeOnlyAutoCacheAtLogoff");
  133. DEFINE_STRING(REGSTR_VAL_SLOWLINKSPEED, "SlowLinkSpeed");
  134. DEFINE_STRING(REGSTR_VAL_ALWAYSPINSUBFOLDERS, "AlwaysPinSubFolders");
  135. DEFINE_STRING(REGSTR_VAL_ENCRYPTCACHE, "EncryptCache");
  136. DEFINE_STRING(REGSTR_VAL_FOLDERSHORTCUTCREATED, "FolderShortcutCreated");
  137. DEFINE_STRING(REGSTR_VAL_NOFRADMINPIN, "DisableFRAdminPin");
  138. #endif // __CSCUI_STRINGS_H_