• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 525
  • Last Modified:

WinExec on Windows Mobile

A client wants me to provide a Windows Mobile middle man where we'll offer a choice of installed programs and execute (start up) their choice.  I've used WinExec() on Windows, proper, seemingly forever.  I haven't been able to find a Windows Mobile equivalent.  Anyone?  Thanks.
1 Solution
WinExec was provided by MS only for compatibility with 16 bit windows api and was never supported on Windows Mobile, PocketPC or other Windows CE based operating systems.

As these small devices only have limited resources, the supported Windows API function are also not the fuill set you get on desktop windows.

Instead of WinExec you have to use CreateProcess(): http://msdn.microsoft.com/en-us/library/windows/desktop/ms687393%28v=vs.85%29.aspx
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now