blob: f4bccab295ee428b70806457eadc947bd78a1ee4 (
plain)
1
2
3
4
5
6
7
8
9
10
|
wchar_t* GetShortcutPath();
HRESULT InstallShortcut(_In_z_ wchar_t *shortcutPath);
__forceinline bool ShortcutExists()
{ return (GetFileAttributes(ptrW(GetShortcutPath())) < 0xFFFFFFF);
}
__forceinline HRESULT TryCreateShortcut()
{ return (ShortcutExists() ? S_OK : InstallShortcut(ptrW(GetShortcutPath())));
}
|