//****************************************
// On Windows XP
//****************************************
ShellExecute(
NULL,
"open",
sCompletePath,
NULL,
NULL,
SW_SHOWNORMAL );
//****************************************
// On Windows Vista
//****************************************
ShellExecute(
NULL,
"runas",//<------------------ on Vista machines
sCompletePath,
NULL, // params
NULL, // directory
SW_SHOWNORMAL);
//****************************************
// On Windows XP
//****************************************
ShellExecute(
NULL,
"open",
sCompletePath,
NULL,
NULL,
SW_SHOWNORMAL );
//****************************************
// On Windows Vista
//****************************************
ShellExecute(
NULL,
"runas",//<------------------ on Vista machines
sCompletePath,
NULL, // params
NULL, // directory
SW_SHOWNORMAL);
To copy to clipboard, switch view to plain text mode
Bookmarks