or download this
/* In C/C++: */
ShellExecute(0, NULL, file, NULL, NULL, SW_SHOWNORMAL); // request def
+ault action
ShellExecute(0, "open", file, NULL, NULL, SW_SHOWNORMAL); // request o
+pen
ShellExecute(0, "print", file, NULL, NULL, SW_SHOWNORMAL); // request
+printing