#include <commctrl.h>
#include <stdio.h>
+#include <io.h>
#include <tchar.h>
#include <stdlib.h>
CreateShortcut(CSIDL_PROGRAMS, sAccessories, _T("regedit.lnk"), _T("regedit.exe"), IDS_CMT_REGEDIT);
}
- /* create Games subfolder */
- CreateShortcutFolder(CSIDL_PROGRAMS, IDS_GAMES, sGames, 256);
+ /* create Games subfolder and fill if the exe is available */
+ if (CreateShortcutFolder(CSIDL_PROGRAMS, IDS_GAMES, sGames, 256)) {
+ /* Check for existence */
+ if( (_access( "c:\\reactos\\system32\\sol.exe", 0 )) != -1 )
+ CreateShortcut(CSIDL_PROGRAMS, sGames, _T("Solitaire.lnk"), _T("sol.exe"), IDS_CMT_SOLITAIRE);
+
+ }
CoUninitialize();
#define IDS_CMT_WINEFILE 3212
#define IDS_CMT_NOTEPAD 3213
#define IDS_CMT_REGEDIT 3214
+#define IDS_CMT_SOLITAIRE 3215
#define IDR_GPL 4000