The docs say a lot:
Code:
HINSTANCE ShellExecute(HWND hwnd,
LPCTSTR lpOperation,
LPCTSTR lpFile,
LPCTSTR lpParameters,
LPCTSTR lpDirectory,
INT nShowCmd
);
Prototype of Shellexecute.
First argument - handle to your window. If you don't have any, pass NULL.
Operation: passing "open" will open a document, file or whatever you specify.
File: the file you're trying to open.
Parameters: if you try to run an application, what parameters you want to pass to it.
Directory: Working directory.
Last param asks how you want to file to open - how the window is to open. SW_SHOWNORMAL opens it as normal and gives it focus.
So...
Code:
ShellExecute(NULL, _T("your_file_name_here"), NULL, NULL, NULL, SW_SHOWNORMAL);
Is an example of how to use it.