1 // TortoiseGit - a Windows shell extension for easy version control
\r
3 // Copyright (C) 2003-2008 - Stefan Kueng
\r
5 // This program is free software; you can redistribute it and/or
\r
6 // modify it under the terms of the GNU General Public License
\r
7 // as published by the Free Software Foundation; either version 2
\r
8 // of the License, or (at your option) any later version.
\r
10 // This program is distributed in the hope that it will be useful,
\r
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 // GNU General Public License for more details.
\r
15 // You should have received a copy of the GNU General Public License
\r
16 // along with this program; if not, write to the Free Software Foundation,
\r
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
\r
20 #include "registry.h"
\r
21 #include "Globals.h"
\r
22 #include "GitAdminDir.h"
\r
25 #define REGISTRYTIMEOUT 2000
\r
26 #define EXCLUDELISTTIMEOUT 5000
\r
27 #define ADMINDIRTIMEOUT 10000
\r
28 #define DRIVETYPETIMEOUT 300000 // 5 min
\r
29 #define NUMBERFMTTIMEOUT 300000
\r
30 #define MENUTIMEOUT 100
\r
32 typedef CComCritSecLock<CComCriticalSection> Locker;
\r
35 * \ingroup TortoiseShell
\r
36 * Helper class which caches access to the registry. Also provides helper methods
\r
37 * for checks against the settings stored in the registry.
\r
47 dllFull,// same as dll except it uses commandline git tool with all status modes supported
\r
51 cachetype = CRegStdWORD(_T("Software\\TortoiseGit\\CacheType"), GetSystemMetrics(SM_REMOTESESSION) ? dll : exe);
\r
52 showrecursive = CRegStdWORD(_T("Software\\TortoiseGit\\RecursiveOverlay"), TRUE);
\r
53 folderoverlay = CRegStdWORD(_T("Software\\TortoiseGit\\FolderOverlay"), TRUE);
\r
54 driveremote = CRegStdWORD(_T("Software\\TortoiseGit\\DriveMaskRemote"));
\r
55 drivefixed = CRegStdWORD(_T("Software\\TortoiseGit\\DriveMaskFixed"), TRUE);
\r
56 drivecdrom = CRegStdWORD(_T("Software\\TortoiseGit\\DriveMaskCDROM"));
\r
57 driveremove = CRegStdWORD(_T("Software\\TortoiseGit\\DriveMaskRemovable"));
\r
58 drivefloppy = CRegStdWORD(_T("Software\\TortoiseGit\\DriveMaskFloppy"));
\r
59 driveram = CRegStdWORD(_T("Software\\TortoiseGit\\DriveMaskRAM"));
\r
60 driveunknown = CRegStdWORD(_T("Software\\TortoiseGit\\DriveMaskUnknown"));
\r
61 excludelist = CRegStdString(_T("Software\\TortoiseGit\\OverlayExcludeList"));
\r
62 includelist = CRegStdString(_T("Software\\TortoiseGit\\OverlayIncludeList"));
\r
63 simplecontext = CRegStdWORD(_T("Software\\TortoiseGit\\SimpleContext"), FALSE);
\r
64 unversionedasmodified = CRegStdWORD(_T("Software\\TortoiseGit\\UnversionedAsModified"), FALSE);
\r
65 showunversionedoverlay = CRegStdWORD(_T("Software\\TortoiseGit\\ShowUnversionedOverlay"), TRUE);
\r
66 showignoredoverlay = CRegStdWORD(_T("Software\\TortoiseGit\\ShowIgnoredOverlay"), TRUE);
\r
67 getlocktop = CRegStdWORD(_T("Software\\TortoiseGit\\GetLockTop"), TRUE);
\r
68 excludedasnormal = CRegStdWORD(_T("Software\\TortoiseGit\\ShowExcludedAsNormal"), TRUE);
\r
69 cachetypeticker = GetTickCount();
\r
70 recursiveticker = cachetypeticker;
\r
71 folderoverlayticker = cachetypeticker;
\r
72 driveticker = cachetypeticker;
\r
73 drivetypeticker = cachetypeticker;
\r
74 langticker = cachetypeticker;
\r
75 columnrevformatticker = cachetypeticker;
\r
76 excludelistticker = cachetypeticker;
\r
77 includelistticker = cachetypeticker;
\r
78 simplecontextticker = cachetypeticker;
\r
79 unversionedasmodifiedticker = cachetypeticker;
\r
80 showunversionedoverlayticker = cachetypeticker;
\r
81 showignoredoverlayticker = cachetypeticker;
\r
82 admindirticker = cachetypeticker;
\r
83 columnseverywhereticker = cachetypeticker;
\r
84 getlocktopticker = cachetypeticker;
\r
85 excludedasnormalticker = cachetypeticker;
\r
86 excontextticker = cachetypeticker;
\r
87 menulayoutlow = CRegStdWORD(_T("Software\\TortoiseGit\\ContextMenuEntries"), MENUSYNC|MENUCREATEREPOS|MENUCLONE|MENUCOMMIT);
\r
88 menulayouthigh = CRegStdWORD(_T("Software\\TortoiseGit\\ContextMenuEntrieshigh"), (MENUSYNC|MENUCREATEREPOS|MENUCLONE|MENUCOMMIT)>>32);
\r
89 menumasklow_lm = CRegStdWORD(_T("Software\\TortoiseGit\\ContextMenuEntriesMaskLow"), 0, FALSE, HKEY_LOCAL_MACHINE);
\r
90 menumaskhigh_lm = CRegStdWORD(_T("Software\\TortoiseGit\\ContextMenuEntriesMaskHigh"), 0, FALSE, HKEY_LOCAL_MACHINE);
\r
91 menumasklow_cu = CRegStdWORD(_T("Software\\TortoiseGit\\ContextMenuEntriesMaskLow"), 0);
\r
92 menumaskhigh_cu = CRegStdWORD(_T("Software\\TortoiseGit\\ContextMenuEntriesMaskHigh"), 0);
\r
93 langid = CRegStdWORD(_T("Software\\TortoiseGit\\LanguageID"), 1033);
\r
94 blockstatus = CRegStdWORD(_T("Software\\TortoiseGit\\BlockStatus"), 0);
\r
95 columnseverywhere = CRegStdWORD(_T("Software\\TortoiseGit\\ColumnsEveryWhere"), FALSE);
\r
96 for (int i=0; i<27; i++)
\r
98 drivetypecache[i] = (UINT)-1;
\r
100 // A: and B: are floppy disks
\r
101 drivetypecache[0] = DRIVE_REMOVABLE;
\r
102 drivetypecache[1] = DRIVE_REMOVABLE;
\r
104 columnrevformatticker = GetTickCount();
\r
105 SecureZeroMemory(&columnrevformat, sizeof(NUMBERFMT));
\r
106 GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, &szDecSep[0], sizeof(szDecSep));
\r
107 GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_STHOUSAND, &szThousandsSep[0], sizeof(szThousandsSep));
\r
108 columnrevformat.lpDecimalSep = szDecSep;
\r
109 columnrevformat.lpThousandSep = szThousandsSep;
\r
110 GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SGROUPING, &szBuffer[0], sizeof(szBuffer));
\r
111 columnrevformat.Grouping = _ttoi(szBuffer);
\r
112 GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_INEGNUMBER, &szBuffer[0], sizeof(szBuffer));
\r
113 columnrevformat.NegativeOrder = _ttoi(szBuffer);
\r
114 sAdminDirCacheKey.reserve(MAX_PATH); // MAX_PATH as buffer reservation ok.
\r
115 nocontextpaths = CRegStdString(_T("Software\\TortoiseGit\\NoContextPaths"), _T(""));
\r
118 void ForceRefresh()
\r
121 showrecursive.read();
\r
122 folderoverlay.read();
\r
123 driveremote.read();
\r
126 driveremove.read();
\r
127 drivefloppy.read();
\r
129 driveunknown.read();
\r
130 excludelist.read();
\r
131 includelist.read();
\r
132 simplecontext.read();
\r
133 unversionedasmodified.read();
\r
134 showunversionedoverlay.read();
\r
135 showignoredoverlay.read();
\r
136 excludedasnormal.read();
\r
137 menulayoutlow.read();
\r
138 menulayouthigh.read();
\r
140 blockstatus.read();
\r
141 columnseverywhere.read();
\r
143 menumasklow_lm.read();
\r
144 menumaskhigh_lm.read();
\r
145 menumasklow_cu.read();
\r
146 menumaskhigh_cu.read();
\r
147 nocontextpaths.read();
\r
149 CacheType GetCacheType()
\r
151 if ((GetTickCount() - REGISTRYTIMEOUT) > cachetypeticker)
\r
153 cachetypeticker = GetTickCount();
\r
156 return CacheType(DWORD((cachetype)));
\r
158 DWORD BlockStatus()
\r
160 if ((GetTickCount() - REGISTRYTIMEOUT) > blockstatusticker)
\r
162 blockstatusticker = GetTickCount();
\r
163 blockstatus.read();
\r
165 return (blockstatus);
\r
167 unsigned __int64 GetMenuLayout()
\r
169 if ((GetTickCount() - REGISTRYTIMEOUT) > layoutticker)
\r
171 layoutticker = GetTickCount();
\r
172 menulayoutlow.read();
\r
173 menulayouthigh.read();
\r
175 unsigned __int64 temp = unsigned __int64(DWORD(menulayouthigh))<<32;
\r
176 temp |= unsigned __int64(DWORD(menulayoutlow));
\r
179 unsigned __int64 GetMenuMask()
\r
181 if ((GetTickCount() - REGISTRYTIMEOUT) > menumaskticker)
\r
183 menumaskticker = GetTickCount();
\r
184 menumasklow_lm.read();
\r
185 menumaskhigh_lm.read();
\r
186 menumasklow_cu.read();
\r
187 menumaskhigh_cu.read();
\r
189 DWORD low = (DWORD)menumasklow_lm | (DWORD)menumasklow_cu;
\r
190 DWORD high = (DWORD)menumaskhigh_lm | (DWORD)menumaskhigh_cu;
\r
191 unsigned __int64 temp = unsigned __int64(high)<<32;
\r
192 temp |= unsigned __int64(low);
\r
197 if ((GetTickCount() - REGISTRYTIMEOUT)>recursiveticker)
\r
199 recursiveticker = GetTickCount();
\r
200 showrecursive.read();
\r
202 return (showrecursive);
\r
204 BOOL IsFolderOverlay()
\r
206 if ((GetTickCount() - REGISTRYTIMEOUT)>folderoverlayticker)
\r
208 folderoverlayticker = GetTickCount();
\r
209 folderoverlay.read();
\r
211 return (folderoverlay);
\r
213 BOOL IsSimpleContext()
\r
215 if ((GetTickCount() - REGISTRYTIMEOUT)>simplecontextticker)
\r
217 simplecontextticker = GetTickCount();
\r
218 simplecontext.read();
\r
220 return (simplecontext!=0);
\r
222 BOOL IsUnversionedAsModified()
\r
224 if ((GetTickCount() - REGISTRYTIMEOUT)>unversionedasmodifiedticker)
\r
226 unversionedasmodifiedticker = GetTickCount();
\r
227 unversionedasmodified.read();
\r
229 return (unversionedasmodified);
\r
231 BOOL ShowUnversionedOverlay()
\r
233 if ((GetTickCount() - REGISTRYTIMEOUT)>showunversionedoverlayticker)
\r
235 showunversionedoverlayticker = GetTickCount();
\r
236 showunversionedoverlay.read();
\r
238 return (showunversionedoverlay);
\r
240 BOOL ShowIgnoredOverlay()
\r
242 if ((GetTickCount() - REGISTRYTIMEOUT)>showignoredoverlayticker)
\r
244 showignoredoverlayticker = GetTickCount();
\r
245 showignoredoverlay.read();
\r
247 return (showignoredoverlay);
\r
249 BOOL IsGetLockTop()
\r
251 if ((GetTickCount() - REGISTRYTIMEOUT)>getlocktopticker)
\r
253 getlocktopticker = GetTickCount();
\r
256 return (getlocktop);
\r
258 BOOL ShowExcludedAsNormal()
\r
260 if ((GetTickCount() - REGISTRYTIMEOUT)>excludedasnormalticker)
\r
262 excludedasnormalticker = GetTickCount();
\r
263 excludedasnormal.read();
\r
265 return (excludedasnormal);
\r
270 return (driveremote);
\r
275 return (drivefixed);
\r
280 return (drivecdrom);
\r
285 return (driveremove);
\r
295 return (driveunknown);
\r
297 BOOL IsContextPathAllowed(LPCTSTR path)
\r
299 Locker lock(m_critSec);
\r
300 ExcludeContextValid();
\r
301 for (std::vector<stdstring>::iterator I = excontextvector.begin(); I != excontextvector.end(); ++I)
\r
305 if (I->size() && I->at(I->size()-1)=='*')
\r
307 stdstring str = I->substr(0, I->size()-1);
\r
308 if (_tcsnicmp(str.c_str(), path, str.size())==0)
\r
311 else if (_tcsicmp(I->c_str(), path)==0)
\r
316 BOOL IsPathAllowed(LPCTSTR path)
\r
318 Locker lock(m_critSec);
\r
319 IncludeListValid();
\r
320 for (std::vector<stdstring>::iterator I = invector.begin(); I != invector.end(); ++I)
\r
324 if (I->at(I->size()-1)=='*')
\r
326 stdstring str = I->substr(0, I->size()-1);
\r
327 if (_tcsnicmp(str.c_str(), path, str.size())==0)
\r
329 if (str.size() && (str.at(str.size()-1) == '\\') && (_tcsnicmp(str.c_str(), path, str.size()-1)==0))
\r
332 else if (_tcsicmp(I->c_str(), path)==0)
\r
334 else if ((I->at(I->size()-1) == '\\') &&
\r
335 ((_tcsnicmp(I->c_str(), path, I->size())==0) || (_tcsicmp(I->c_str(), path)==0)) )
\r
339 UINT drivetype = 0;
\r
340 int drivenumber = PathGetDriveNumber(path);
\r
341 if ((drivenumber >=0)&&(drivenumber < 25))
\r
343 drivetype = drivetypecache[drivenumber];
\r
344 if ((drivetype == -1)||((GetTickCount() - DRIVETYPETIMEOUT)>drivetypeticker))
\r
346 if ((drivenumber == 0)||(drivenumber == 1))
\r
347 drivetypecache[drivenumber] = DRIVE_REMOVABLE;
\r
350 drivetypeticker = GetTickCount();
\r
351 TCHAR pathbuf[MAX_PATH+4]; // MAX_PATH ok here. PathStripToRoot works with partial paths too.
\r
352 _tcsncpy_s(pathbuf, MAX_PATH+4, path, MAX_PATH+3);
\r
353 PathStripToRoot(pathbuf);
\r
354 PathAddBackslash(pathbuf);
\r
355 ATLTRACE2(_T("GetDriveType for %s, Drive %d\n"), pathbuf, drivenumber);
\r
356 drivetype = GetDriveType(pathbuf);
\r
357 drivetypecache[drivenumber] = drivetype;
\r
363 TCHAR pathbuf[MAX_PATH+4]; // MAX_PATH ok here. PathIsUNCServer works with partial paths too.
\r
364 _tcsncpy_s(pathbuf, MAX_PATH+4, path, MAX_PATH+3);
\r
365 if (PathIsUNCServer(pathbuf))
\r
366 drivetype = DRIVE_REMOTE;
\r
369 PathStripToRoot(pathbuf);
\r
370 PathAddBackslash(pathbuf);
\r
371 if (_tcsncmp(pathbuf, drivetypepathcache, MAX_PATH-1)==0) // MAX_PATH ok.
\r
372 drivetype = drivetypecache[26];
\r
375 ATLTRACE2(_T("GetDriveType for %s\n"), pathbuf);
\r
376 drivetype = GetDriveType(pathbuf);
\r
377 drivetypecache[26] = drivetype;
\r
378 _tcsncpy_s(drivetypepathcache, MAX_PATH, pathbuf, MAX_PATH); // MAX_PATH ok.
\r
382 if ((drivetype == DRIVE_REMOVABLE)&&(!IsRemovable()))
\r
384 if ((drivetype == DRIVE_REMOVABLE)&&(drivefloppy == 0)&&((drivenumber==0)||(drivenumber==1)))
\r
386 if ((drivetype == DRIVE_FIXED)&&(!IsFixed()))
\r
388 if (((drivetype == DRIVE_REMOTE)||(drivetype == DRIVE_NO_ROOT_DIR))&&(!IsRemote()))
\r
390 if ((drivetype == DRIVE_CDROM)&&(!IsCDRom()))
\r
392 if ((drivetype == DRIVE_RAMDISK)&&(!IsRAM()))
\r
394 if ((drivetype == DRIVE_UNKNOWN)&&(IsUnknown()))
\r
397 ExcludeListValid();
\r
398 for (std::vector<stdstring>::iterator I = exvector.begin(); I != exvector.end(); ++I)
\r
402 if (I->size() && I->at(I->size()-1)=='*')
\r
404 stdstring str = I->substr(0, I->size()-1);
\r
405 if (_tcsnicmp(str.c_str(), path, str.size())==0)
\r
408 else if (_tcsicmp(I->c_str(), path)==0)
\r
415 if ((GetTickCount() - REGISTRYTIMEOUT) > langticker)
\r
417 langticker = GetTickCount();
\r
422 NUMBERFMT * GetNumberFmt()
\r
424 if ((GetTickCount() - NUMBERFMTTIMEOUT) > columnrevformatticker)
\r
427 columnrevformatticker = GetTickCount();
\r
428 SecureZeroMemory(&columnrevformat, sizeof(NUMBERFMT));
\r
429 GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, &szDecSep[0], sizeof(szDecSep));
\r
430 GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_STHOUSAND, &szThousandsSep[0], sizeof(szThousandsSep));
\r
431 columnrevformat.lpDecimalSep = szDecSep;
\r
432 columnrevformat.lpThousandSep = szThousandsSep;
\r
433 GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SGROUPING, &szBuffer[0], sizeof(szBuffer));
\r
434 columnrevformat.Grouping = _ttoi(szBuffer);
\r
435 GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_INEGNUMBER, &szBuffer[0], sizeof(szBuffer));
\r
436 columnrevformat.NegativeOrder = _ttoi(szBuffer);
\r
438 return &columnrevformat;
\r
440 BOOL HasSVNAdminDir(LPCTSTR path, BOOL bIsDir, CString *ProjectTopDir = NULL)
\r
442 size_t len = _tcslen(path);
\r
443 TCHAR * buf = new TCHAR[len+1];
\r
444 _tcscpy_s(buf, len+1, path);
\r
447 TCHAR * ptr = _tcsrchr(buf, '\\');
\r
453 if ((GetTickCount() - ADMINDIRTIMEOUT) < admindirticker)
\r
455 std::map<stdstring, AdminDir_s>::iterator iter;
\r
456 sAdminDirCacheKey.assign(buf);
\r
457 if ((iter = admindircache.find(sAdminDirCacheKey)) != admindircache.end())
\r
460 if (ProjectTopDir && iter->second.bHasAdminDir)
\r
461 *ProjectTopDir = iter->second.sProjectRoot.c_str();
\r
462 return iter->second.bHasAdminDir;
\r
465 CString sProjectRoot;
\r
466 BOOL hasAdminDir = g_GitAdminDir.HasAdminDir(buf, true, &sProjectRoot);
\r
467 admindirticker = GetTickCount();
\r
468 Locker lock(m_critSec);
\r
470 AdminDir_s &ad = admindircache[buf];
\r
471 ad.bHasAdminDir = hasAdminDir;
\r
474 ad.sProjectRoot.assign(sProjectRoot);
\r
477 *ProjectTopDir = sProjectRoot;
\r
481 return hasAdminDir;
\r
483 bool IsColumnsEveryWhere()
\r
485 if ((GetTickCount() - REGISTRYTIMEOUT) > columnseverywhereticker)
\r
487 columnseverywhereticker = GetTickCount();
\r
488 columnseverywhere.read();
\r
490 return !!(DWORD)columnseverywhere;
\r
495 if ((GetTickCount() - REGISTRYTIMEOUT)>driveticker)
\r
497 driveticker = GetTickCount();
\r
498 driveremote.read();
\r
501 driveremove.read();
\r
502 drivefloppy.read();
\r
505 void ExcludeContextValid()
\r
507 if ((GetTickCount() - EXCLUDELISTTIMEOUT)>excontextticker)
\r
509 Locker lock(m_critSec);
\r
510 excontextticker = GetTickCount();
\r
511 nocontextpaths.read();
\r
512 if (excludecontextstr.compare((stdstring)nocontextpaths)==0)
\r
514 excludecontextstr = (stdstring)nocontextpaths;
\r
515 excontextvector.clear();
\r
516 size_t pos = 0, pos_ant = 0;
\r
517 pos = excludecontextstr.find(_T("\n"), pos_ant);
\r
518 while (pos != stdstring::npos)
\r
520 stdstring token = excludecontextstr.substr(pos_ant, pos-pos_ant);
\r
521 excontextvector.push_back(token);
\r
523 pos = excludecontextstr.find(_T("\n"), pos_ant);
\r
525 if (!excludecontextstr.empty())
\r
527 excontextvector.push_back(excludecontextstr.substr(pos_ant, excludecontextstr.size()-1));
\r
529 excludecontextstr = (stdstring)nocontextpaths;
\r
532 void ExcludeListValid()
\r
534 if ((GetTickCount() - EXCLUDELISTTIMEOUT)>excludelistticker)
\r
536 Locker lock(m_critSec);
\r
537 excludelistticker = GetTickCount();
\r
538 excludelist.read();
\r
539 if (excludeliststr.compare((stdstring)excludelist)==0)
\r
541 excludeliststr = (stdstring)excludelist;
\r
543 size_t pos = 0, pos_ant = 0;
\r
544 pos = excludeliststr.find(_T("\n"), pos_ant);
\r
545 while (pos != stdstring::npos)
\r
547 stdstring token = excludeliststr.substr(pos_ant, pos-pos_ant);
\r
548 exvector.push_back(token);
\r
550 pos = excludeliststr.find(_T("\n"), pos_ant);
\r
552 if (!excludeliststr.empty())
\r
554 exvector.push_back(excludeliststr.substr(pos_ant, excludeliststr.size()-1));
\r
556 excludeliststr = (stdstring)excludelist;
\r
559 void IncludeListValid()
\r
561 if ((GetTickCount() - EXCLUDELISTTIMEOUT)>includelistticker)
\r
563 Locker lock(m_critSec);
\r
564 includelistticker = GetTickCount();
\r
565 includelist.read();
\r
566 if (includeliststr.compare((stdstring)includelist)==0)
\r
568 includeliststr = (stdstring)includelist;
\r
570 size_t pos = 0, pos_ant = 0;
\r
571 pos = includeliststr.find(_T("\n"), pos_ant);
\r
572 while (pos != stdstring::npos)
\r
574 stdstring token = includeliststr.substr(pos_ant, pos-pos_ant);
\r
575 invector.push_back(token);
\r
577 pos = includeliststr.find(_T("\n"), pos_ant);
\r
579 if (!includeliststr.empty())
\r
581 invector.push_back(includeliststr.substr(pos_ant, includeliststr.size()-1));
\r
583 includeliststr = (stdstring)includelist;
\r
590 stdstring sProjectRoot;
\r
593 CRegStdWORD cachetype;
\r
594 CRegStdWORD blockstatus;
\r
595 CRegStdWORD langid;
\r
596 CRegStdWORD showrecursive;
\r
597 CRegStdWORD folderoverlay;
\r
598 CRegStdWORD getlocktop;
\r
599 CRegStdWORD driveremote;
\r
600 CRegStdWORD drivefixed;
\r
601 CRegStdWORD drivecdrom;
\r
602 CRegStdWORD driveremove;
\r
603 CRegStdWORD drivefloppy;
\r
604 CRegStdWORD driveram;
\r
605 CRegStdWORD driveunknown;
\r
606 CRegStdWORD menulayoutlow;
\r
607 CRegStdWORD menulayouthigh;
\r
608 CRegStdWORD simplecontext;
\r
609 CRegStdWORD menumasklow_lm;
\r
610 CRegStdWORD menumaskhigh_lm;
\r
611 CRegStdWORD menumasklow_cu;
\r
612 CRegStdWORD menumaskhigh_cu;
\r
613 CRegStdWORD unversionedasmodified;
\r
614 CRegStdWORD showunversionedoverlay;
\r
615 CRegStdWORD showignoredoverlay;
\r
616 CRegStdWORD excludedasnormal;
\r
617 CRegStdString excludelist;
\r
618 CRegStdWORD columnseverywhere;
\r
619 stdstring excludeliststr;
\r
620 std::vector<stdstring> exvector;
\r
621 CRegStdString includelist;
\r
622 stdstring includeliststr;
\r
623 std::vector<stdstring> invector;
\r
624 DWORD cachetypeticker;
\r
625 DWORD recursiveticker;
\r
626 DWORD folderoverlayticker;
\r
627 DWORD getlocktopticker;
\r
629 DWORD drivetypeticker;
\r
630 DWORD layoutticker;
\r
631 DWORD menumaskticker;
\r
633 DWORD blockstatusticker;
\r
634 DWORD columnrevformatticker;
\r
635 DWORD excludelistticker;
\r
636 DWORD includelistticker;
\r
637 DWORD simplecontextticker;
\r
638 DWORD unversionedasmodifiedticker;
\r
639 DWORD showunversionedoverlayticker;
\r
640 DWORD showignoredoverlayticker;
\r
641 DWORD excludedasnormalticker;
\r
642 DWORD columnseverywhereticker;
\r
643 UINT drivetypecache[27];
\r
644 TCHAR drivetypepathcache[MAX_PATH]; // MAX_PATH ok.
\r
645 NUMBERFMT columnrevformat;
\r
647 TCHAR szThousandsSep[5];
\r
648 std::map<stdstring, AdminDir_s> admindircache;
\r
649 stdstring sAdminDirCacheKey;
\r
650 CRegStdString nocontextpaths;
\r
651 stdstring excludecontextstr;
\r
652 std::vector<stdstring> excontextvector;
\r
653 DWORD excontextticker;
\r
654 DWORD admindirticker;
\r
655 CComCriticalSection m_critSec;
\r