Attempt to refresh shortcuts on create

This commit is contained in:
James Rowe 2019-12-08 17:26:18 -07:00
parent 9999c52ea8
commit 6210a2668f

View File

@ -99,6 +99,10 @@ extern "C" int saveShortcut(
goto err; goto err;
} }
// Notify that a new shortcut was created using the shell api
SHChangeNotify(SHCNE_CREATE, SHCNF_PATH, shortcutPath, NULL);
SHChangeNotify(SHCNE_UPDATEITEM, SHCNF_PATH, shortcutPath, NULL);
persistFile->Release(); persistFile->Release();
shellLink->Release(); shellLink->Release();
CoUninitialize(); CoUninitialize();