call default windows executables in C program

c, winapi, windows

Solution

The easiest way to do this on Windows is to call `ShellExecute`. Pass `SW_HIDE` to make sure that no console window is shown.

You could alternatively use `CreateProcess` but it's a little trickier to call. Use the `CREATE_NO_WINDOW` flag to suppress the console window.

Problem

I used `system()` function to call `certmgr.exe` in my C code. Once I start my executable, a command promt appears showing certificate successfully installed. But I dont want the command promt to be opened. How to do that?? any other ways available to call the "exe's" in C language.. thanks,,,

Original source