diff options
Diffstat (limited to 'plugins/ShellExt/src/main.cpp')
-rw-r--r-- | plugins/ShellExt/src/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/ShellExt/src/main.cpp b/plugins/ShellExt/src/main.cpp index e6b87adf42..24e1cdc736 100644 --- a/plugins/ShellExt/src/main.cpp +++ b/plugins/ShellExt/src/main.cpp @@ -3,6 +3,7 @@ HINSTANCE hInst;
int hLangpack;
+bool bIsVistaPlus;
TCHAR tszLogPath[MAX_PATH];
@@ -23,6 +24,8 @@ PLUGININFOEX pluginInfoEx = { BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
if (fdwReason == DLL_PROCESS_ATTACH) {
+ bIsVistaPlus = GetProcAddress( GetModuleHandleA("kernel32.dll"), "GetProductInfo") != NULL;
+
GetTempPath(SIZEOF(tszLogPath), tszLogPath);
_tcscat_s(tszLogPath, SIZEOF(tszLogPath), _T("shlext.log"));
|