Hi!
This thread helps me a lot.
On Windows >= Vista I'm programming a simple updater. It needs to "run as administrator, to get the preferred rights.
Now, I use this:
QString proggi
= qApp
->applicationDirPath
()+ "/Updater.exe";
int result = (int)ShellExecute(hwnd,
reinterpret_cast<const WCHAR*>(doing.utf16()),
reinterpret_cast<const WCHAR*>(proggi.utf16()),
NULL,
NULL,
SW_SHOWNORMAL);
QString doing = "runas";
QString proggi = qApp->applicationDirPath()+ "/Updater.exe";
int result = (int)ShellExecute(hwnd,
reinterpret_cast<const WCHAR*>(doing.utf16()),
reinterpret_cast<const WCHAR*>(proggi.utf16()),
NULL,
NULL,
SW_SHOWNORMAL);
To copy to clipboard, switch view to plain text mode
How can you this behave with "OpenUrl" ?
Tenx
Attila
Bookmarks