1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2012-2013 - TortoiseGit
4 // Copyright (C) 2003-2008 - Stefan Kueng
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #include "GitAdminDir.h"
26 #define REGISTRYTIMEOUT 2000
27 #define EXCLUDELISTTIMEOUT 5000
28 #define ADMINDIRTIMEOUT 10000
29 #define DRIVETYPETIMEOUT 300000 // 5 min
30 #define MENUTIMEOUT 100
32 #define DEFAULTMENUTOPENTRIES MENUSYNC|MENUCREATEREPOS|MENUCLONE|MENUCOMMIT
33 #define DEFAULTMENUEXTENTRIES MENUSVNIGNORE|MENUREFLOG|MENUREFBROWSE|MENUSTASHAPPLY|MENUSUBSYNC
35 typedef CComCritSecLock
<CComCriticalSection
> Locker
;
38 * \ingroup TortoiseShell
39 * Helper class which caches access to the registry. Also provides helper methods
40 * for checks against the settings stored in the registry.
50 dllFull
,// same as dll except it uses commandline git tool with all status modes supported
54 cachetype
= CRegStdDWORD(_T("Software\\TortoiseGit\\CacheType"), GetSystemMetrics(SM_REMOTESESSION
) ? dll
: exe
);
55 showrecursive
= CRegStdDWORD(_T("Software\\TortoiseGit\\RecursiveOverlay"), TRUE
);
56 folderoverlay
= CRegStdDWORD(_T("Software\\TortoiseGit\\FolderOverlay"), TRUE
);
57 driveremote
= CRegStdDWORD(_T("Software\\TortoiseGit\\DriveMaskRemote"));
58 drivefixed
= CRegStdDWORD(_T("Software\\TortoiseGit\\DriveMaskFixed"), TRUE
);
59 drivecdrom
= CRegStdDWORD(_T("Software\\TortoiseGit\\DriveMaskCDROM"));
60 driveremove
= CRegStdDWORD(_T("Software\\TortoiseGit\\DriveMaskRemovable"));
61 drivefloppy
= CRegStdDWORD(_T("Software\\TortoiseGit\\DriveMaskFloppy"));
62 driveram
= CRegStdDWORD(_T("Software\\TortoiseGit\\DriveMaskRAM"));
63 driveunknown
= CRegStdDWORD(_T("Software\\TortoiseGit\\DriveMaskUnknown"));
64 shellmenuaccelerators
= CRegStdDWORD(_T("Software\\TortoiseGit\\ShellMenuAccelerators"), TRUE
);
65 excludelist
= CRegStdString(_T("Software\\TortoiseGit\\OverlayExcludeList"));
66 includelist
= CRegStdString(_T("Software\\TortoiseGit\\OverlayIncludeList"));
67 simplecontext
= CRegStdDWORD(_T("Software\\TortoiseGit\\SimpleContext"), FALSE
);
68 unversionedasmodified
= CRegStdDWORD(_T("Software\\TortoiseGit\\UnversionedAsModified"), FALSE
);
69 hidemenusforunversioneditems
= CRegStdDWORD(_T("Software\\TortoiseGit\\HideMenusForUnversionedItems"), FALSE
);
70 showunversionedoverlay
= CRegStdDWORD(_T("Software\\TortoiseGit\\ShowUnversionedOverlay"), TRUE
);
71 showignoredoverlay
= CRegStdDWORD(_T("Software\\TortoiseGit\\ShowIgnoredOverlay"), TRUE
);
72 getlocktop
= CRegStdDWORD(_T("Software\\TortoiseGit\\GetLockTop"), TRUE
);
73 excludedasnormal
= CRegStdDWORD(_T("Software\\TortoiseGit\\ShowExcludedAsNormal"), TRUE
);
74 cachetypeticker
= GetTickCount();
75 recursiveticker
= cachetypeticker
;
76 folderoverlayticker
= cachetypeticker
;
77 driveticker
= cachetypeticker
;
78 drivetypeticker
= cachetypeticker
;
79 langticker
= cachetypeticker
;
80 excludelistticker
= cachetypeticker
;
81 includelistticker
= cachetypeticker
;
82 simplecontextticker
= cachetypeticker
;
83 shellmenuacceleratorsticker
= cachetypeticker
;
84 unversionedasmodifiedticker
= cachetypeticker
;
85 showunversionedoverlayticker
= cachetypeticker
;
86 showignoredoverlayticker
= cachetypeticker
;
87 admindirticker
= cachetypeticker
;
88 getlocktopticker
= cachetypeticker
;
89 excludedasnormalticker
= cachetypeticker
;
90 hidemenusforunversioneditemsticker
= cachetypeticker
;
91 excontextticker
= cachetypeticker
;
93 unsigned __int64 entries
= (DEFAULTMENUTOPENTRIES
);
94 menulayoutlow
= CRegStdDWORD(_T("Software\\TortoiseGit\\ContextMenuEntries"), entries
&0xFFFFFFFF);
95 menulayouthigh
= CRegStdDWORD(_T("Software\\TortoiseGit\\ContextMenuEntrieshigh"), entries
>>32);
96 layoutticker
= cachetypeticker
;
98 unsigned __int64 ext
= (DEFAULTMENUEXTENTRIES
);
99 menuextlow
= CRegStdDWORD(_T("Software\\TortoiseGit\\ContextMenuExtEntriesLow"), ext
&0xFFFFFFFF );
100 menuexthigh
= CRegStdDWORD(_T("Software\\TortoiseGit\\ContextMenuExtEntriesHigh"), ext
>>32 );
101 exticker
= cachetypeticker
;
103 menumasklow_lm
= CRegStdDWORD(_T("Software\\TortoiseGit\\ContextMenuEntriesMaskLow"), 0, FALSE
, HKEY_LOCAL_MACHINE
);
104 menumaskhigh_lm
= CRegStdDWORD(_T("Software\\TortoiseGit\\ContextMenuEntriesMaskHigh"), 0, FALSE
, HKEY_LOCAL_MACHINE
);
105 menumasklow_cu
= CRegStdDWORD(_T("Software\\TortoiseGit\\ContextMenuEntriesMaskLow"), 0);
106 menumaskhigh_cu
= CRegStdDWORD(_T("Software\\TortoiseGit\\ContextMenuEntriesMaskHigh"), 0);
107 menumaskticker
= cachetypeticker
;
108 langid
= CRegStdDWORD(_T("Software\\TortoiseGit\\LanguageID"), 1033);
109 blockstatus
= CRegStdDWORD(_T("Software\\TortoiseGit\\BlockStatus"), 0);
110 blockstatusticker
= cachetypeticker
;
111 for (int i
= 0; i
< 27; ++i
)
113 drivetypecache
[i
] = (UINT
)-1;
115 // A: and B: are floppy disks
116 drivetypecache
[0] = DRIVE_REMOVABLE
;
117 drivetypecache
[1] = DRIVE_REMOVABLE
;
118 drivetypepathcache
[0] = 0;
120 GetLocaleInfo(LOCALE_USER_DEFAULT
, LOCALE_SDECIMAL
, &szDecSep
[0], _countof(szDecSep
));
121 GetLocaleInfo(LOCALE_USER_DEFAULT
, LOCALE_STHOUSAND
, &szThousandsSep
[0], _countof(szThousandsSep
));
122 GetLocaleInfo(LOCALE_USER_DEFAULT
, LOCALE_SGROUPING
, &szBuffer
[0], _countof(szBuffer
));
123 GetLocaleInfo(LOCALE_USER_DEFAULT
, LOCALE_INEGNUMBER
, &szBuffer
[0], _countof(szBuffer
));
124 sAdminDirCacheKey
.reserve(MAX_PATH
); // MAX_PATH as buffer reservation ok.
125 nocontextpaths
= CRegStdString(_T("Software\\TortoiseGit\\NoContextPaths"), _T(""));
131 showrecursive
.read();
132 folderoverlay
.read();
142 simplecontext
.read();
143 shellmenuaccelerators
.read();
144 unversionedasmodified
.read();
145 showunversionedoverlay
.read();
146 showignoredoverlay
.read();
147 excludedasnormal
.read();
148 hidemenusforunversioneditems
.read();
149 menulayoutlow
.read();
150 menulayouthigh
.read();
154 menumasklow_lm
.read();
155 menumaskhigh_lm
.read();
156 menumasklow_cu
.read();
157 menumaskhigh_cu
.read();
158 nocontextpaths
.read();
160 CacheType
GetCacheType()
162 if ((GetTickCount() - REGISTRYTIMEOUT
) > cachetypeticker
)
164 cachetypeticker
= GetTickCount();
167 return CacheType(DWORD((cachetype
)));
171 if ((GetTickCount() - REGISTRYTIMEOUT
) > blockstatusticker
)
173 blockstatusticker
= GetTickCount();
176 return (blockstatus
);
178 unsigned __int64
GetMenuLayout()
180 if ((GetTickCount() - REGISTRYTIMEOUT
) > layoutticker
)
182 layoutticker
= GetTickCount();
183 menulayoutlow
.read();
184 menulayouthigh
.read();
186 unsigned __int64 temp
= unsigned __int64(DWORD(menulayouthigh
))<<32;
187 temp
|= unsigned __int64(DWORD(menulayoutlow
));
191 unsigned __int64
GetMenuExt()
193 if ((GetTickCount() - REGISTRYTIMEOUT
) > exticker
)
195 exticker
= GetTickCount();
199 unsigned __int64 temp
= unsigned __int64(DWORD(menuexthigh
))<<32;
200 temp
|= unsigned __int64(DWORD(menuextlow
));
204 unsigned __int64
GetMenuMask()
206 if ((GetTickCount() - REGISTRYTIMEOUT
) > menumaskticker
)
208 menumaskticker
= GetTickCount();
209 menumasklow_lm
.read();
210 menumaskhigh_lm
.read();
211 menumasklow_cu
.read();
212 menumaskhigh_cu
.read();
214 DWORD low
= (DWORD
)menumasklow_lm
| (DWORD
)menumasklow_cu
;
215 DWORD high
= (DWORD
)menumaskhigh_lm
| (DWORD
)menumaskhigh_cu
;
216 unsigned __int64 temp
= unsigned __int64(high
)<<32;
217 temp
|= unsigned __int64(low
);
222 if ((GetTickCount() - REGISTRYTIMEOUT
)>recursiveticker
)
224 recursiveticker
= GetTickCount();
225 showrecursive
.read();
227 return (showrecursive
);
229 BOOL
IsFolderOverlay()
231 if ((GetTickCount() - REGISTRYTIMEOUT
)>folderoverlayticker
)
233 folderoverlayticker
= GetTickCount();
234 folderoverlay
.read();
236 return (folderoverlay
);
238 BOOL
IsSimpleContext()
240 if ((GetTickCount() - REGISTRYTIMEOUT
)>simplecontextticker
)
242 simplecontextticker
= GetTickCount();
243 simplecontext
.read();
245 return (simplecontext
!=0);
247 BOOL
HasShellMenuAccelerators()
249 if ((GetTickCount() - shellmenuacceleratorsticker
)>REGISTRYTIMEOUT
)
251 shellmenuacceleratorsticker
= GetTickCount();
252 shellmenuaccelerators
.read();
254 return (shellmenuaccelerators
!=0);
256 BOOL
IsUnversionedAsModified()
258 if ((GetTickCount() - REGISTRYTIMEOUT
)>unversionedasmodifiedticker
)
260 unversionedasmodifiedticker
= GetTickCount();
261 unversionedasmodified
.read();
263 return (unversionedasmodified
);
265 BOOL
ShowUnversionedOverlay()
267 if ((GetTickCount() - REGISTRYTIMEOUT
)>showunversionedoverlayticker
)
269 showunversionedoverlayticker
= GetTickCount();
270 showunversionedoverlay
.read();
272 return (showunversionedoverlay
);
274 BOOL
ShowIgnoredOverlay()
276 if ((GetTickCount() - REGISTRYTIMEOUT
)>showignoredoverlayticker
)
278 showignoredoverlayticker
= GetTickCount();
279 showignoredoverlay
.read();
281 return (showignoredoverlay
);
285 if ((GetTickCount() - REGISTRYTIMEOUT
)>getlocktopticker
)
287 getlocktopticker
= GetTickCount();
292 BOOL
ShowExcludedAsNormal()
294 if ((GetTickCount() - REGISTRYTIMEOUT
)>excludedasnormalticker
)
296 excludedasnormalticker
= GetTickCount();
297 excludedasnormal
.read();
299 return (excludedasnormal
);
301 BOOL
HideMenusForUnversionedItems()
303 if ((GetTickCount() - hidemenusforunversioneditemsticker
)>REGISTRYTIMEOUT
)
305 hidemenusforunversioneditemsticker
= GetTickCount();
306 hidemenusforunversioneditems
.read();
308 return (hidemenusforunversioneditems
);
313 return (driveremote
);
328 return (driveremove
);
338 return (driveunknown
);
340 BOOL
IsContextPathAllowed(LPCTSTR path
)
342 Locker
lock(m_critSec
);
343 ExcludeContextValid();
344 for (std::vector
<stdstring
>::iterator I
= excontextvector
.begin(); I
!= excontextvector
.end(); ++I
)
348 if (I
->size() && I
->at(I
->size()-1)=='*')
350 stdstring str
= I
->substr(0, I
->size()-1);
351 if (_tcsnicmp(str
.c_str(), path
, str
.size())==0)
354 else if (_tcsicmp(I
->c_str(), path
)==0)
359 BOOL
IsPathAllowed(LPCTSTR path
)
361 Locker
lock(m_critSec
);
363 for (std::vector
<stdstring
>::iterator I
= invector
.begin(); I
!= invector
.end(); ++I
)
367 if (I
->at(I
->size()-1)=='*')
369 stdstring str
= I
->substr(0, I
->size()-1);
370 if (_tcsnicmp(str
.c_str(), path
, str
.size())==0)
372 if (!str
.empty() && (str
.at(str
.size()-1) == '\\') && (_tcsnicmp(str
.c_str(), path
, str
.size()-1)==0))
375 else if (_tcsicmp(I
->c_str(), path
)==0)
377 else if ((I
->at(I
->size()-1) == '\\') &&
378 ((_tcsnicmp(I
->c_str(), path
, I
->size())==0) || (_tcsicmp(I
->c_str(), path
)==0)) )
383 int drivenumber
= PathGetDriveNumber(path
);
384 if ((drivenumber
>=0)&&(drivenumber
< 25))
386 drivetype
= drivetypecache
[drivenumber
];
387 if ((drivetype
== -1)||((GetTickCount() - DRIVETYPETIMEOUT
)>drivetypeticker
))
389 if ((drivenumber
== 0)||(drivenumber
== 1))
390 drivetypecache
[drivenumber
] = DRIVE_REMOVABLE
;
393 drivetypeticker
= GetTickCount();
394 TCHAR pathbuf
[MAX_PATH
+4]; // MAX_PATH ok here. PathStripToRoot works with partial paths too.
395 _tcsncpy_s(pathbuf
, MAX_PATH
+4, path
, MAX_PATH
+3);
396 PathStripToRoot(pathbuf
);
397 PathAddBackslash(pathbuf
);
398 CTraceToOutputDebugString::Instance()(_T(__FUNCTION__
) _T(": GetDriveType for %s, Drive %d\n"), pathbuf
, drivenumber
);
399 drivetype
= GetDriveType(pathbuf
);
400 drivetypecache
[drivenumber
] = drivetype
;
406 TCHAR pathbuf
[MAX_PATH
+4]; // MAX_PATH ok here. PathIsUNCServer works with partial paths too.
407 _tcsncpy_s(pathbuf
, MAX_PATH
+4, path
, MAX_PATH
+3);
408 if (PathIsUNCServer(pathbuf
))
409 drivetype
= DRIVE_REMOTE
;
412 PathStripToRoot(pathbuf
);
413 PathAddBackslash(pathbuf
);
414 if (_tcsncmp(pathbuf
, drivetypepathcache
, MAX_PATH
-1)==0) // MAX_PATH ok.
415 drivetype
= drivetypecache
[26];
418 CTraceToOutputDebugString::Instance()(_T(__FUNCTION__
) _T("GetDriveType for %s\n"), pathbuf
);
419 drivetype
= GetDriveType(pathbuf
);
420 drivetypecache
[26] = drivetype
;
421 _tcsncpy_s(drivetypepathcache
, MAX_PATH
, pathbuf
, MAX_PATH
); // MAX_PATH ok.
425 if ((drivetype
== DRIVE_REMOVABLE
)&&(!IsRemovable()))
427 if ((drivetype
== DRIVE_REMOVABLE
)&&(drivefloppy
== 0)&&((drivenumber
==0)||(drivenumber
==1)))
429 if ((drivetype
== DRIVE_FIXED
)&&(!IsFixed()))
431 if (((drivetype
== DRIVE_REMOTE
)||(drivetype
== DRIVE_NO_ROOT_DIR
))&&(!IsRemote()))
433 if ((drivetype
== DRIVE_CDROM
)&&(!IsCDRom()))
435 if ((drivetype
== DRIVE_RAMDISK
)&&(!IsRAM()))
437 if ((drivetype
== DRIVE_UNKNOWN
)&&(IsUnknown()))
441 for (std::vector
<stdstring
>::iterator I
= exvector
.begin(); I
!= exvector
.end(); ++I
)
445 if (I
->size() && I
->at(I
->size()-1)=='*')
447 stdstring str
= I
->substr(0, I
->size()-1);
448 if (_tcsnicmp(str
.c_str(), path
, str
.size())==0)
451 else if (_tcsicmp(I
->c_str(), path
)==0)
458 if ((GetTickCount() - REGISTRYTIMEOUT
) > langticker
)
460 langticker
= GetTickCount();
465 BOOL
HasGITAdminDir(LPCTSTR path
, BOOL bIsDir
, CString
*ProjectTopDir
= NULL
)
467 size_t len
= _tcslen(path
);
468 std::unique_ptr
<TCHAR
[]> buf(new TCHAR
[len
+ 1]);
469 _tcscpy_s(buf
.get(), len
+ 1, path
);
472 TCHAR
* ptr
= _tcsrchr(buf
.get(), '\\');
478 if ((GetTickCount() - ADMINDIRTIMEOUT
) < admindirticker
)
480 std::map
<stdstring
, AdminDir_s
>::iterator iter
;
481 sAdminDirCacheKey
.assign(buf
.get());
482 if ((iter
= admindircache
.find(sAdminDirCacheKey
)) != admindircache
.end())
484 if (ProjectTopDir
&& iter
->second
.bHasAdminDir
)
485 *ProjectTopDir
= iter
->second
.sProjectRoot
.c_str();
486 return iter
->second
.bHasAdminDir
;
489 CString sProjectRoot
;
490 BOOL hasAdminDir
= g_GitAdminDir
.HasAdminDir(buf
.get(), true, &sProjectRoot
);
491 admindirticker
= GetTickCount();
492 Locker
lock(m_critSec
);
494 AdminDir_s
&ad
= admindircache
[buf
.get()];
495 ad
.bHasAdminDir
= hasAdminDir
;
498 ad
.sProjectRoot
.assign(sProjectRoot
);
501 *ProjectTopDir
= sProjectRoot
;
509 if ((GetTickCount() - REGISTRYTIMEOUT
)>driveticker
)
511 driveticker
= GetTickCount();
519 void ExcludeContextValid()
521 if ((GetTickCount() - EXCLUDELISTTIMEOUT
)>excontextticker
)
523 Locker
lock(m_critSec
);
524 excontextticker
= GetTickCount();
525 nocontextpaths
.read();
526 if (excludecontextstr
.compare((stdstring
)nocontextpaths
)==0)
528 excludecontextstr
= (stdstring
)nocontextpaths
;
529 excontextvector
.clear();
530 size_t pos
= 0, pos_ant
= 0;
531 pos
= excludecontextstr
.find(_T("\n"), pos_ant
);
532 while (pos
!= stdstring::npos
)
534 stdstring token
= excludecontextstr
.substr(pos_ant
, pos
-pos_ant
);
535 excontextvector
.push_back(token
);
537 pos
= excludecontextstr
.find(_T("\n"), pos_ant
);
539 if (!excludecontextstr
.empty())
541 excontextvector
.push_back(excludecontextstr
.substr(pos_ant
, excludecontextstr
.size()-1));
543 excludecontextstr
= (stdstring
)nocontextpaths
;
546 void ExcludeListValid()
548 if ((GetTickCount() - EXCLUDELISTTIMEOUT
)>excludelistticker
)
550 Locker
lock(m_critSec
);
551 excludelistticker
= GetTickCount();
553 if (excludeliststr
.compare((stdstring
)excludelist
)==0)
555 excludeliststr
= (stdstring
)excludelist
;
557 size_t pos
= 0, pos_ant
= 0;
558 pos
= excludeliststr
.find(_T("\n"), pos_ant
);
559 while (pos
!= stdstring::npos
)
561 stdstring token
= excludeliststr
.substr(pos_ant
, pos
-pos_ant
);
562 exvector
.push_back(token
);
564 pos
= excludeliststr
.find(_T("\n"), pos_ant
);
566 if (!excludeliststr
.empty())
568 exvector
.push_back(excludeliststr
.substr(pos_ant
, excludeliststr
.size()-1));
570 excludeliststr
= (stdstring
)excludelist
;
573 void IncludeListValid()
575 if ((GetTickCount() - EXCLUDELISTTIMEOUT
)>includelistticker
)
577 Locker
lock(m_critSec
);
578 includelistticker
= GetTickCount();
580 if (includeliststr
.compare((stdstring
)includelist
)==0)
582 includeliststr
= (stdstring
)includelist
;
584 size_t pos
= 0, pos_ant
= 0;
585 pos
= includeliststr
.find(_T("\n"), pos_ant
);
586 while (pos
!= stdstring::npos
)
588 stdstring token
= includeliststr
.substr(pos_ant
, pos
-pos_ant
);
589 invector
.push_back(token
);
591 pos
= includeliststr
.find(_T("\n"), pos_ant
);
593 if (!includeliststr
.empty())
595 invector
.push_back(includeliststr
.substr(pos_ant
, includeliststr
.size()-1));
597 includeliststr
= (stdstring
)includelist
;
604 stdstring sProjectRoot
;
607 CRegStdDWORD cachetype
;
608 CRegStdDWORD blockstatus
;
610 CRegStdDWORD showrecursive
;
611 CRegStdDWORD folderoverlay
;
612 CRegStdDWORD getlocktop
;
613 CRegStdDWORD driveremote
;
614 CRegStdDWORD drivefixed
;
615 CRegStdDWORD drivecdrom
;
616 CRegStdDWORD driveremove
;
617 CRegStdDWORD drivefloppy
;
618 CRegStdDWORD driveram
;
619 CRegStdDWORD driveunknown
;
620 CRegStdDWORD menulayoutlow
; /* Fist level mask */
621 CRegStdDWORD menulayouthigh
;
622 CRegStdDWORD shellmenuaccelerators
;
623 CRegStdDWORD menuextlow
; /* ext menu mask */
624 CRegStdDWORD menuexthigh
;
625 CRegStdDWORD simplecontext
;
626 CRegStdDWORD menumasklow_lm
;
627 CRegStdDWORD menumaskhigh_lm
;
628 CRegStdDWORD menumasklow_cu
;
629 CRegStdDWORD menumaskhigh_cu
;
630 CRegStdDWORD unversionedasmodified
;
631 CRegStdDWORD showunversionedoverlay
;
632 CRegStdDWORD showignoredoverlay
;
633 CRegStdDWORD excludedasnormal
;
634 CRegStdString excludelist
;
635 CRegStdDWORD hidemenusforunversioneditems
;
636 stdstring excludeliststr
;
637 std::vector
<stdstring
> exvector
;
638 CRegStdString includelist
;
639 stdstring includeliststr
;
640 std::vector
<stdstring
> invector
;
641 DWORD cachetypeticker
;
642 DWORD recursiveticker
;
643 DWORD folderoverlayticker
;
644 DWORD getlocktopticker
;
646 DWORD drivetypeticker
;
649 DWORD menumaskticker
;
651 DWORD blockstatusticker
;
652 DWORD excludelistticker
;
653 DWORD includelistticker
;
654 DWORD simplecontextticker
;
655 DWORD shellmenuacceleratorsticker
;
656 DWORD unversionedasmodifiedticker
;
657 DWORD showunversionedoverlayticker
;
658 DWORD showignoredoverlayticker
;
659 DWORD excludedasnormalticker
;
660 DWORD hidemenusforunversioneditemsticker
;
661 UINT drivetypecache
[27];
662 TCHAR drivetypepathcache
[MAX_PATH
]; // MAX_PATH ok.
664 TCHAR szThousandsSep
[5];
665 std::map
<stdstring
, AdminDir_s
> admindircache
;
666 stdstring sAdminDirCacheKey
;
667 CRegStdString nocontextpaths
;
668 stdstring excludecontextstr
;
669 std::vector
<stdstring
> excontextvector
;
670 DWORD excontextticker
;
671 DWORD admindirticker
;
672 CComCriticalSection m_critSec
;