mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-06-14 03:16:38 +10:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user