/* In C/C++: */ ShellExecute(0, NULL, file, NULL, NULL, SW_SHOWNORMAL); // request default action ShellExecute(0, "open", file, NULL, NULL, SW_SHOWNORMAL); // request open ShellExecute(0, "print", file, NULL, NULL, SW_SHOWNORMAL); // request printing