Mobile Apps - How to bring up "Programs" menu?

Asked By Aska Chen on 28-May-07 09:04 AM
Hello,

Is there anyone know how to bring up the "Programs" menu?

Thanks.


Lisa Pearlson replied on 29-May-07 04:19 AM
you just ShellExecute the \Windows\Startmenu\Programs (use
SHGetSpecialFolderPath(m_hWnd, szPath, CSIDL_PROGRAMS, FALSE)).

Lisa
Aska Chen replied on 29-May-07 07:35 AM
Hi Lisa,

I've tried the program below, but still not make it.

TCHAR szPath[MAX_PATH];
SHGetSpecialFolderPath(hWnd, szPath, CSIDL_PROGRAMS, FALSE);

SHELLEXECUTEINFO info;
info.cbSize = sizeof(info);
info.hwnd = hWnd;
info.lpFile = szPath;
info.lpParameters = _T("");
info.lpDirectory = _T("");
info.nShow = SW_HIDE;
info.hInstApp = g_hInst;
info.fMask = 0;
info.lpVerb = _T("open");
::ShellExecuteEx(&info);

It shows an error msg on the screen, "The file 'Programs' cannot be
opened. Either it is not signed with a trusted certificate,
or ........."
Do you have any idea?

Thanks for your kindly help

Aska
Paul Monson replied on 29-May-07 05:10 PM
Try putting quotes around the path "\"\Program Files\""
Paul Monson
Intrinsyc
Lisa Pearlson replied on 30-May-07 10:07 PM
Why do you have SW_HIDE instead of SW_SHOW?
Aska Chen replied on 31-May-07 05:56 AM
Using SW_SHOW or putting quotes is still useless.
BTW, I am testing on Windows Mobile 6.
Thanks for your help.