Sorry but that's a code fragment so I can't tell how you declared everything.
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
(0 == CreateProcess(_T("\\windows\\wmplayer.exe"),NULL,NULL,NULL,NULL,
"Music palyer launch failed");
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.
Looking for great gifts under $100?
Trendy tech gifts don't require a hefty price tag. Choose from these CNET-recommended useful and high-quality gadgets.