launching built-in application 4m windows mobile application
by baki-1 - 5/18/11 7:33 PM
Hi,
I am developing an application in native language(C) for windows mobile 6.1 (win ce 5.0).
I use windows mobile sdk and visual studio 2005.
In my application I'm trying to launch built-in application (eg Contacts, Music player etc).
Is this possible using native code?
I used CraeteProcess() as below
PROCESS_INFORMATION processInfo;
if
(0 == CreateProcess(_T("\\windows\\wmplayer.exe"),NULL,NULL,NULL,NULL,
CREATE_NEW_CONSOLE
,NULL,NULL,NULL,&processInfo))
{
printf(
"Music palyer launch failed");
return 1;
}
The music player application is open after this.
But the process handle and thread handle in the processInfo is showing NULL.
So, CloseHandle() or TerminateProcess() or SendMessage with WM_CLOSE are not working.
Please let me know where I'm wrong.

Moderator
CNET Staff
Samsung Staff
Dell Staff