views:

58

answers:

3

Hi all,

I want to launch a application using win32 ...

Plase let me know your ideas to achive the same

A: 

You need to call CreateProcess.

Dean Harding
CreateProcess can fail on applications that require elevation, we have no clue what kind of process we are starting here so it is probably not the best choice.
Anders
+3  A: 

In (approximately) ascending order of control and complexity: WinExec, ShellExecute, ShellExecuteEx, CreateProcess.

Jerry Coffin
+3  A: 

Your best option is ShellExecute (It can launch any filetype and will handle elevation) If you need more control of the new process, use CreateProcess

Anders