Import legacy Classic Shell data (#28)

Copy data/settings from legacy Classic Shell if we don't have any yet.
This commit is contained in:
ge0rdi
2018-08-12 01:17:59 +02:00
committed by ge0rdi
parent c350b0c037
commit 07a5a7ba72
4 changed files with 50 additions and 1 deletions
+4
View File
@@ -11,6 +11,7 @@
#include "ComHelper.h"
#include "Settings.h"
#include "psapi.h"
#include "Legacy.h"
#include "StartMenuDLL\StartMenuDLL.h"
#include "StartMenuDLL\SettingsUI.h"
@@ -335,6 +336,9 @@ int WINAPI wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpstrC
}
}*/
// one-time import from Classic Shell
ImportLegacyData();
DllLogToFile(STARTUP_LOG,L"StartMenu: start '%s'",lpstrCmdLine);
DWORD winVer=GetVersionEx(GetModuleHandle(L"user32.dll"));
if (wcsstr(lpstrCmdLine,L"-startup") || (wcsstr(lpstrCmdLine,L"-autorun") && HIWORD(winVer)<WIN_VER_WIN8))