1 /* 2 * PROJECT: ReactOS Shell32 3 * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later) 4 * PURPOSE: Defining shell policy data 5 * COPYRIGHT: Copyright 2022 Hermès Bélusca-Maïto 6 * Copyright 2024 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com> 7 */ 8 9 /* 10 * NOTE: Up to date as of SHELL32 v6.00 (Win2k3). 11 * References: 12 * https://www.geoffchappell.com/studies/windows/shell/shell32/api/util/restrictions.htm 13 * https://docs.microsoft.com/en-us/windows/win32/api/shlobj_core/ne-shlobj_core-restrictions 14 * https://abi-laboratory.pro/compatibility/Windows_5.0_to_Windows_6.0/x86_64/headers_diff/shell32.dll/diff.html 15 */ 16 17 DEFINE_POLICY( REST_NORUN, "Explorer", "NoRun" ), 18 DEFINE_POLICY( REST_NOCLOSE, "Explorer", "NoClose" ), 19 DEFINE_POLICY( REST_NOSAVESET, "Explorer", "NoSaveSettings" ), 20 DEFINE_POLICY( REST_NOFILEMENU, "Explorer", "NoFileMenu" ), 21 DEFINE_POLICY( REST_NOSETFOLDERS, "Explorer", "NoSetFolders" ), 22 DEFINE_POLICY( REST_NOSETTASKBAR, "Explorer", "NoSetTaskbar" ), 23 DEFINE_POLICY( REST_NODESKTOP, "Explorer", "NoDesktop" ), 24 DEFINE_POLICY( REST_NOFIND, "Explorer", "NoFind" ), 25 DEFINE_POLICY( REST_NODRIVES, "Explorer", "NoDrives" ), 26 DEFINE_POLICY( REST_NODRIVEAUTORUN, "Explorer", "NoDriveAutoRun" ), 27 DEFINE_POLICY( REST_NODRIVETYPEAUTORUN, "Explorer", "NoDriveTypeAutoRun" ), 28 DEFINE_POLICY( REST_NONETHOOD, "Explorer", "NoNetHood" ), 29 DEFINE_POLICY( REST_STARTBANNER, "Explorer", "NoStartBanner" ), 30 DEFINE_POLICY( REST_RESTRICTRUN, "Explorer", "RestrictRun" ), // REGSTR_VAL_RESTRICTRUN 31 DEFINE_POLICY( REST_NOPRINTERTABS, "Explorer", "NoPrinterTabs" ), // REGSTR_VAL_PRINTERS_HIDETABS 32 DEFINE_POLICY( REST_NOPRINTERDELETE, "Explorer", "NoDeletePrinter" ), // REGSTR_VAL_PRINTERS_NODELETE 33 DEFINE_POLICY( REST_NOPRINTERADD, "Explorer", "NoAddPrinter" ), // REGSTR_VAL_PRINTERS_NOADD 34 DEFINE_POLICY( REST_NOSTARTMENUSUBFOLDERS, "Explorer", "NoStartMenuSubFolders" ), 35 DEFINE_POLICY( REST_MYDOCSONNET, "Explorer", "MyDocsOnNet" ), 36 DEFINE_POLICY( REST_NOEXITTODOS, "WinOldApp", "NoRealMode" ), // REGSTR_VAL_WINOLDAPP_NOREALMODE 37 DEFINE_POLICY( REST_ENFORCESHELLEXTSECURITY, "Explorer", "EnforceShellExtensionSecurity" ), 38 DEFINE_POLICY( REST_LINKRESOLVEIGNORELINKINFO, "Explorer", "LinkResolveIgnoreLinkInfo" ), 39 DEFINE_POLICY( REST_NOCOMMONGROUPS, "Explorer", "NoCommonGroups" ), 40 DEFINE_POLICY( REST_SEPARATEDESKTOPPROCESS, "Explorer", "SeparateProcess" ), 41 DEFINE_POLICY( REST_NOWEB, "Explorer", "NoWebMenu" ), 42 DEFINE_POLICY( REST_NOTRAYCONTEXTMENU, "Explorer", "NoTrayContextMenu" ), 43 DEFINE_POLICY( REST_NOVIEWCONTEXTMENU, "Explorer", "NoViewContextMenu" ), 44 DEFINE_POLICY( REST_NONETCONNECTDISCONNECT, "Explorer", "NoNetConnectDisconnect" ), 45 46 #if (WINE_FILEVERSION_MAJOR < 5) 47 // NOTE: This policy only controls the LogOff capability in the TaskMgr. 48 DEFINE_POLICY( REST_STARTMENULOGOFF, "Explorer", "NoLogoff" ), 49 #else 50 // NOTE: This policy now controls the presence/absence of the LogOff item in the Start Menu. 51 DEFINE_POLICY( REST_STARTMENULOGOFF, "Explorer", "StartMenuLogoff" ), 52 #endif 53 54 DEFINE_POLICY( REST_NOSETTINGSASSIST, "Explorer", "NoSettingsWizards" ), 55 DEFINE_POLICY( REST_NOINTERNETICON, "Explorer", "NoInternetIcon" ), 56 DEFINE_POLICY( REST_NORECENTDOCSHISTORY, "Explorer", "NoRecentDocsHistory" ), 57 DEFINE_POLICY( REST_NORECENTDOCSMENU, "Explorer", "NoRecentDocsMenu" ), 58 DEFINE_POLICY( REST_NOACTIVEDESKTOP, "Explorer", "NoActiveDesktop" ), 59 DEFINE_POLICY( REST_NOACTIVEDESKTOPCHANGES, "Explorer", "NoActiveDesktopChanges" ), 60 DEFINE_POLICY( REST_NOFAVORITESMENU, "Explorer", "NoFavoritesMenu" ), 61 DEFINE_POLICY( REST_CLEARRECENTDOCSONEXIT, "Explorer", "ClearRecentDocsOnExit" ), 62 DEFINE_POLICY( REST_CLASSICSHELL, "Explorer", "ClassicShell" ), 63 DEFINE_POLICY( REST_NOCUSTOMIZEWEBVIEW, "Explorer", "NoCustomizeWebView" ), 64 DEFINE_POLICY( REST_NOHTMLWALLPAPER, "ActiveDesktop", "NoHTMLWallpaper" ), 65 DEFINE_POLICY( REST_NOCHANGINGWALLPAPER, "ActiveDesktop", "NoChangingWallpaper" ), 66 DEFINE_POLICY( REST_NODESKCOMP, "ActiveDesktop", "NoComponents" ), 67 DEFINE_POLICY( REST_NOADDDESKCOMP, "ActiveDesktop", "NoAddingComponents" ), 68 DEFINE_POLICY( REST_NODELDESKCOMP, "ActiveDesktop", "NoDeletingComponents" ), 69 DEFINE_POLICY( REST_NOCLOSEDESKCOMP, "ActiveDesktop", "NoClosingComponents" ), 70 71 #if (WINE_FILEVERSION_MAJOR < 5) 72 DEFINE_POLICY( REST_NOCLOSE_DRAGDROPBAND, "ActiveDesktop", "NoCloseDragDropBands" ), 73 DEFINE_POLICY( REST_NOMOVINGBAND, "ActiveDesktop", "NoMovingBands" ), 74 #else 75 DEFINE_POLICY( REST_NOCLOSE_DRAGDROPBAND, "Explorer", "NoCloseDragDropBands" ), 76 DEFINE_POLICY( REST_NOMOVINGBAND, "Explorer", "NoMovingBands" ), 77 #endif 78 79 DEFINE_POLICY( REST_NOEDITDESKCOMP, "ActiveDesktop", "NoEditingComponents" ), 80 DEFINE_POLICY( REST_NORESOLVESEARCH, "Explorer", "NoResolveSearch" ), 81 DEFINE_POLICY( REST_NORESOLVETRACK, "Explorer", "NoResolveTrack" ), 82 DEFINE_POLICY( REST_FORCECOPYACLWITHFILE, "Explorer", "ForceCopyACLWithFile" ), 83 84 #if (WINE_FILEVERSION_MAJOR <= 6) && (NTDDI_VERSION < NTDDI_LONGHORN) 85 DEFINE_POLICY( REST_NOLOGO3CHANNELNOTIFY, "Explorer", "NoMSAppLogo5ChannelNotify" ), 86 #endif 87 88 DEFINE_POLICY( REST_NOFORGETSOFTWAREUPDATE, "Explorer", "NoForgetSoftwareUpdate" ), 89 DEFINE_POLICY( REST_NOSETACTIVEDESKTOP, "Explorer", "NoSetActiveDesktop" ), 90 DEFINE_POLICY( REST_NOUPDATEWINDOWS, "Explorer", "NoWindowsUpdate" ), 91 DEFINE_POLICY( REST_NOCHANGESTARMENU, "Explorer", "NoChangeStartMenu" ), 92 DEFINE_POLICY( REST_NOFOLDEROPTIONS, "Explorer", "NoFolderOptions" ), 93 DEFINE_POLICY( REST_HASFINDCOMPUTERS, "Explorer", "FindComputers" ), 94 DEFINE_POLICY( REST_INTELLIMENUS, "Explorer", "IntelliMenus" ), 95 DEFINE_POLICY( REST_RUNDLGMEMCHECKBOX, "Explorer", "MemCheckBoxInRunDlg" ), 96 DEFINE_POLICY( REST_ARP_ShowPostSetup, "Uninstall", "ShowPostSetup" ), 97 DEFINE_POLICY( REST_NOCSC, "Explorer", "NoSyncAll" ), 98 DEFINE_POLICY( REST_NOCONTROLPANEL, "Explorer", "NoControlPanel" ), 99 DEFINE_POLICY( REST_ENUMWORKGROUP, "Explorer", "EnumWorkgroup" ), 100 DEFINE_POLICY( REST_ARP_NOARP, "Uninstall", "NoAddRemovePrograms" ), 101 DEFINE_POLICY( REST_ARP_NOREMOVEPAGE, "Uninstall", "NoRemovePage" ), 102 DEFINE_POLICY( REST_ARP_NOADDPAGE, "Uninstall", "NoAddPage" ), 103 DEFINE_POLICY( REST_ARP_NOWINSETUPPAGE, "Uninstall", "NoWindowsSetupPage" ), 104 DEFINE_POLICY( REST_GREYMSIADS, "Explorer", "GreyMSIAds" ), 105 DEFINE_POLICY( REST_NOCHANGEMAPPEDDRIVELABEL, "Explorer", "NoChangeMappedDriveLabel" ), 106 DEFINE_POLICY( REST_NOCHANGEMAPPEDDRIVECOMMENT, "Explorer", "NoChangeMappedDriveComment" ), 107 DEFINE_POLICY( REST_MaxRecentDocs, "Explorer", "MaxRecentDocs" ), 108 DEFINE_POLICY( REST_NONETWORKCONNECTIONS, "Explorer", "NoNetworkConnections" ), 109 DEFINE_POLICY( REST_FORCESTARTMENULOGOFF, "Explorer", "ForceStartMenuLogoff" ), 110 DEFINE_POLICY( REST_NOWEBVIEW, "Explorer", "NoWebView" ), 111 DEFINE_POLICY( REST_NOCUSTOMIZETHISFOLDER, "Explorer", "NoCustomizeThisFolder" ), 112 DEFINE_POLICY( REST_NOENCRYPTION, "Explorer", "NoEncryption" ), 113 114 #if (WINE_FILEVERSION_MAJOR == 5) && (NTDDI_VERSION < NTDDI_LONGHORN) 115 DEFINE_POLICY( REST_ALLOWFRENCHENCRYPTION, "Explorer", "AllowFrenchEncryption" ), 116 #endif 117 118 DEFINE_POLICY( REST_DONTSHOWSUPERHIDDEN, "Explorer", "DontShowSuperHidden" ), 119 DEFINE_POLICY( REST_NOSHELLSEARCHBUTTON, "Explorer", "NoShellSearchButton" ), 120 DEFINE_POLICY( REST_NOHARDWARETAB, "Explorer", "NoHardwareTab" ), 121 122 #if (WINE_FILEVERSION_MAJOR <= 6) && (NTDDI_VERSION < NTDDI_LONGHORN) 123 DEFINE_POLICY( REST_NORUNASINSTALLPROMPT, "Explorer", "NoRunasInstallPrompt" ), 124 DEFINE_POLICY( REST_PROMPTRUNASINSTALLNETPATH, "Explorer", "PromptRunasInstallNetPath" ), 125 #endif 126 127 DEFINE_POLICY( REST_NOMANAGEMYCOMPUTERVERB, "Explorer", "NoManageMyComputerVerb" ), 128 129 #if (WINE_FILEVERSION_MAJOR <= 6) && (NTDDI_VERSION < NTDDI_LONGHORN) 130 DEFINE_POLICY( REST_NORECENTDOCSNETHOOD, "Explorer", "NoRecentDocsNetHood" ), 131 #endif 132 133 DEFINE_POLICY( REST_DISALLOWRUN, "Explorer", "DisallowRun" ), 134 DEFINE_POLICY( REST_NOWELCOMESCREEN, "Explorer", "NoWelcomeScreen" ), 135 DEFINE_POLICY( REST_RESTRICTCPL, "Explorer", "RestrictCpl" ), 136 DEFINE_POLICY( REST_DISALLOWCPL, "Explorer", "DisallowCpl" ), 137 DEFINE_POLICY( REST_NOSMBALLOONTIP, "Explorer", "NoSMBalloonTip" ), 138 DEFINE_POLICY( REST_NOSMHELP, "Explorer", "NoSMHelp" ), 139 DEFINE_POLICY( REST_NOWINKEYS, "Explorer", "NoWinKeys" ), 140 DEFINE_POLICY( REST_NOENCRYPTONMOVE, "Explorer", "NoEncryptOnMove" ), 141 DEFINE_POLICY( REST_NOLOCALMACHINERUN, "Explorer", "DisableLocalMachineRun" ), 142 DEFINE_POLICY( REST_NOCURRENTUSERRUN, "Explorer", "DisableCurrentUserRun" ), 143 DEFINE_POLICY( REST_NOLOCALMACHINERUNONCE, "Explorer", "DisableLocalMachineRunOnce" ), 144 DEFINE_POLICY( REST_NOCURRENTUSERRUNONCE, "Explorer", "DisableCurrentUserRunOnce" ), 145 DEFINE_POLICY( REST_FORCEACTIVEDESKTOPON, "Explorer", "ForceActiveDesktopOn" ), 146 147 #if (WINE_FILEVERSION_MAJOR <= 6) && (NTDDI_VERSION < NTDDI_LONGHORN) 148 DEFINE_POLICY( REST_NOCOMPUTERSNEARME, "Explorer", "NoComputersNearMe" ), 149 #endif 150 151 DEFINE_POLICY( REST_NOVIEWONDRIVE, "Explorer", "NoViewOnDrive" ), 152 DEFINE_POLICY( REST_NONETCRAWL, "Explorer", "NoNetCrawling" ), 153 DEFINE_POLICY( REST_NOSHAREDDOCUMENTS, "Explorer", "NoSharedDocuments" ), 154 DEFINE_POLICY( REST_NOSMMYDOCS, "Explorer", "NoSMMyDocs" ), 155 DEFINE_POLICY( REST_NOSMMYPICS, "Explorer", "NoSMMyPictures" ), 156 DEFINE_POLICY( REST_ALLOWBITBUCKDRIVES, "Explorer", "RecycleBinDrives" ), 157 158 /* 0x4000050 - 0x4000060 */ 159 #if (WINE_FILEVERSION_MAJOR >= 6) 160 DEFINE_POLICY( REST_NONLEGACYSHELLMODE, "Explorer", "NoneLegacyShellMode" ), 161 #endif 162 163 DEFINE_POLICY( REST_NOCONTROLPANELBARRICADE, "Explorer", "NoControlPanelBarricade" ), 164 165 // NOTE: REST_NOSTARTPAGE never really existed. 166 167 #if (WINE_FILEVERSION_MAJOR >= 6) 168 DEFINE_POLICY( REST_NOAUTOTRAYNOTIFY, "Explorer", "NoAutoTrayNotify" ), 169 DEFINE_POLICY( REST_NOTASKGROUPING, "Explorer", "NoTaskGrouping" ), 170 DEFINE_POLICY( REST_NOCDBURNING, "Explorer", "NoCDBurning" ), 171 #endif // WINE_FILEVERSION_MAJOR 172 173 DEFINE_POLICY( REST_MYCOMPNOPROP, "Explorer", "NoPropertiesMyComputer" ), 174 DEFINE_POLICY( REST_MYDOCSNOPROP, "Explorer", "NoPropertiesMyDocuments" ), 175 176 #if (WINE_FILEVERSION_MAJOR >= 6) 177 DEFINE_POLICY( REST_NOSTARTPANEL, "Explorer", "NoSimpleStartMenu" ), 178 DEFINE_POLICY( REST_NODISPLAYAPPEARANCEPAGE, "System", "NoDispAppearancePage" ), // REGSTR_VAL_DISPCPL_NOAPPEARANCEPAGE 179 DEFINE_POLICY( REST_NOTHEMESTAB, "Explorer", "NoThemesTab" ), 180 DEFINE_POLICY( REST_NOVISUALSTYLECHOICE, "System", "NoVisualStyleChoice" ), 181 DEFINE_POLICY( REST_NOSIZECHOICE, "System", "NoSizeChoice" ), 182 DEFINE_POLICY( REST_NOCOLORCHOICE, "System", "NoColorChoice" ), 183 DEFINE_POLICY( REST_SETVISUALSTYLE, "System", "SetVisualStyle" ), 184 #endif // WINE_FILEVERSION_MAJOR 185 186 DEFINE_POLICY( REST_STARTRUNNOHOMEPATH, "Explorer", "StartRunNoHOMEPATH" ), 187 188 #if (WINE_FILEVERSION_MAJOR >= 6) 189 DEFINE_POLICY( REST_NOUSERNAMEINSTARTPANEL, "Explorer", "NoUserNameInStartMenu" ), 190 DEFINE_POLICY( REST_NOMYCOMPUTERICON, "NonEnum", "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" ), 191 DEFINE_POLICY( REST_NOSMNETWORKPLACES, "Explorer", "NoStartMenuNetworkPlaces" ), 192 DEFINE_POLICY( REST_NOSMPINNEDLIST, "Explorer", "NoStartMenuPinnedList" ), 193 DEFINE_POLICY( REST_NOSMMYMUSIC, "Explorer", "NoStartMenuMyMusic" ), 194 DEFINE_POLICY( REST_NOSMEJECTPC, "Explorer", "NoStartMenuEjectPC" ), 195 DEFINE_POLICY( REST_NOSMMOREPROGRAMS, "Explorer", "NoStartMenuMorePrograms" ), 196 DEFINE_POLICY( REST_NOSMMFUPROGRAMS, "Explorer", "NoStartMenuMFUprogramsList" ), 197 DEFINE_POLICY( REST_NOTRAYITEMSDISPLAY, "Explorer", "NoTrayItemsDisplay" ), 198 DEFINE_POLICY( REST_NOTOOLBARSONTASKBAR, "Explorer", "NoToolbarsOnTaskbar" ), 199 #endif // WINE_FILEVERSION_MAJOR 200 201 DEFINE_POLICY( REST_NOSMCONFIGUREPROGRAMS, "Explorer", "NoSMConfigurePrograms" ), 202 203 #if (WINE_FILEVERSION_MAJOR >= 6) 204 DEFINE_POLICY( REST_HIDECLOCK, "Explorer", "HideClock" ), 205 DEFINE_POLICY( REST_NOLOWDISKSPACECHECKS, "Explorer", "NoLowDiskSpaceChecks" ), 206 #endif 207 208 #if (WINE_FILEVERSION_MAJOR <= 6) && (NTDDI_VERSION < NTDDI_LONGHORN) 209 DEFINE_POLICY( REST_NOENTIRENETWORK, "Network", "NoEntireNetwork" ), // REGSTR_VAL_NOENTIRENETWORK 210 DEFINE_POLICY( REST_NODESKTOPCLEANUP, "Explorer", "NoDesktopCleanupWizard" ), 211 #endif 212 213 #if (WINE_FILEVERSION_MAJOR >= 6) 214 DEFINE_POLICY( REST_BITBUCKNUKEONDELETE, "Explorer", "NoRecycleFiles" ), 215 DEFINE_POLICY( REST_BITBUCKCONFIRMDELETE, "Explorer", "ConfirmFileDelete" ), 216 DEFINE_POLICY( REST_BITBUCKNOPROP, "Explorer", "NoPropertiesRecycleBin" ), 217 DEFINE_POLICY( REST_NODISPBACKGROUND, "System", "NoDispBackgroundPage" ), // REGSTR_VAL_DISPCPL_NOBACKGROUNDPAGE 218 DEFINE_POLICY( REST_NODISPSCREENSAVEPG, "System", "NoDispScrSavPage" ), // REGSTR_VAL_DISPCPL_NOSCRSAVPAGE 219 DEFINE_POLICY( REST_NODISPSETTINGSPG, "System", "NoDispSettingsPage" ), // REGSTR_VAL_DISPCPL_NOSETTINGSPAGE 220 DEFINE_POLICY( REST_NODISPSCREENSAVEPREVIEW, "System", "NoScreenSavePreview" ), 221 DEFINE_POLICY( REST_NODISPLAYCPL, "System", "NoDispCPL" ), // REGSTR_VAL_DISPCPL_NODISPCPL 222 DEFINE_POLICY( REST_HIDERUNASVERB, "Explorer", "HideRunAsVerb" ), 223 DEFINE_POLICY( REST_NOTHUMBNAILCACHE, "Explorer", "NoThumbnailCache" ), 224 DEFINE_POLICY( REST_NOSTRCMPLOGICAL, "Explorer", "NoStrCmpLogical" ), 225 DEFINE_POLICY( REST_NOPUBLISHWIZARD, "Explorer", "NoPublishingWizard" ), 226 DEFINE_POLICY( REST_NOONLINEPRINTSWIZARD, "Explorer", "NoOnlinePrintsWizard" ), 227 DEFINE_POLICY( REST_NOWEBSERVICES, "Explorer", "NoWebServices" ), 228 #endif // WINE_FILEVERSION_MAJOR 229 230 DEFINE_POLICY( REST_ALLOWUNHASHEDWEBVIEW, "Explorer", "AllowUnhashedWebView" ), 231 232 #if (WINE_FILEVERSION_MAJOR >= 6) 233 DEFINE_POLICY( REST_ALLOWLEGACYWEBVIEW, "Explorer", "AllowLegacyWebView" ), 234 #endif 235 236 DEFINE_POLICY( REST_REVERTWEBVIEWSECURITY, "Explorer", "RevertWebViewSecurity" ), 237 DEFINE_POLICY( REST_INHERITCONSOLEHANDLES, "Explorer", "InheritConsoleHandles" ), 238 239 #if (WINE_FILEVERSION_MAJOR >= 6) 240 241 #if (NTDDI_VERSION < NTDDI_LONGHORN) 242 DEFINE_POLICY( REST_SORTMAXITEMCOUNT, "Explorer", "SortMaxItemCount" ), 243 #endif 244 DEFINE_POLICY( REST_NOREMOTERECURSIVEEVENTS, "Explorer", "NoRemoteRecursiveEvents" ), 245 246 #endif // WINE_FILEVERSION_MAJOR 247 248 DEFINE_POLICY( REST_NOREMOTECHANGENOTIFY, "Explorer", "NoRemoteChangeNotify" ), 249 250 #if (WINE_FILEVERSION_MAJOR >= 6) 251 252 #if (NTDDI_VERSION < NTDDI_LONGHORN) 253 DEFINE_POLICY( REST_NOSIMPLENETIDLIST, "Explorer", "NoSimpleNetIDList" ), 254 #endif 255 256 // #if (NTDDI_VERSION < NTDDI_LONGHORN) 257 // NOTE: Geoff Chappell is inacurrate here. 258 DEFINE_POLICY( REST_NOENUMENTIRENETWORK, "Explorer", "NoEnumEntireNetwork" ), 259 // #endif 260 261 #if (NTDDI_VERSION < NTDDI_LONGHORN) 262 DEFINE_POLICY( REST_NODETAILSTHUMBNAILONNETWORK, "Explorer", "NoDetailsThumbnailOnNetwork" ), 263 #endif 264 265 DEFINE_POLICY( REST_NOINTERNETOPENWITH, "Explorer", "NoInternetOpenWith" ), 266 267 #if (NTDDI_VERSION >= NTDDI_WINXPSP2) && (NTDDI_VERSION < NTDDI_LONGHORN) 268 DEFINE_POLICY( REST_ALLOWLEGACYLMZBEHAVIOR, "Explorer", "AllowLegacyLMZBehavior" ), 269 #endif 270 271 DEFINE_POLICY( REST_DONTRETRYBADNETNAME, "Explorer", "DontRetryBadNetName" ), 272 DEFINE_POLICY( REST_ALLOWFILECLSIDJUNCTIONS, "Explorer", "AllowFileCLSIDJunctions" ), 273 DEFINE_POLICY( REST_NOUPNPINSTALL, "Explorer", "NoUPnPInstallTask" ), 274 275 // "NormalizeLinkNetPidls" only in version 6.0 from Windows XP SP3. 276 277 #if (NTDDI_VERSION >= NTDDI_LONGHORN) 278 DEFINE_POLICY( REST_ARP_DONTGROUPPATCHES, "Uninstall", "DontGroupPatches" ), 279 DEFINE_POLICY( REST_ARP_NOCHOOSEPROGRAMSPAGE, "Uninstall", "NoChooseProgramsPage" ), 280 #endif 281 282 // "AllowCLSIDPROGIDMapping" in Windows XP SP3 and Windows Server 2003 SP2 only. 283 // Maybe in Vista+ too? 284 285 #endif // WINE_FILEVERSION_MAJOR 286 287 /* 0x4000061 - 0x4000086 */ 288 DEFINE_POLICY( REST_NODISCONNECT, "Explorer", "NoDisconnect" ), 289 DEFINE_POLICY( REST_NOSECURITY, "Explorer", "NoNTSecurity" ), 290 DEFINE_POLICY( REST_NOFILEASSOCIATE, "Explorer", "NoFileAssociate" ), 291 292 #if (WINE_FILEVERSION_MAJOR >= 6) 293 294 // #if (NTDDI_VERSION < NTDDI_LONGHORN) 295 // NOTE: Either Geoff Chappell or MSDN is inaccurate here. 296 DEFINE_POLICY( REST_ALLOWCOMMENTTOGGLE, "Explorer", "ToggleCommentPosition" ), 297 // #endif 298 #if (NTDDI_VERSION < NTDDI_LONGHORN) 299 DEFINE_POLICY( REST_USEDESKTOPINICACHE, "Explorer", "UseDesktopIniCache" ), 300 #endif 301 302 // "NoNetFolderInfoTip" only in version 6.0 from Windows XP SP3. 303 304 #endif // WINE_FILEVERSION_MAJOR 305 306 // NOTE: This is a SHDOCVW-only policy. 307 // DEFINE_POLICY( 0x50000024, "Explorer", "NoFileUrl" ), 308