mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-19 22:04:01 -06:00
Bazaar/UpdaterTest : more tests on raising application level
git-svn-id: svn://ultimatepp.org/upp/trunk@3037 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
743be86b2f
commit
ecd39ea52f
1 changed files with 17 additions and 1 deletions
|
|
@ -24,14 +24,30 @@ typedef struct _SHELLEXECUTEINFO {
|
|||
HANDLE hProcess;
|
||||
} SHELLEXECUTEINFO, *LPSHELLEXECUTEINFO;
|
||||
*/
|
||||
/*
|
||||
::ShellExecute(0, // owner window
|
||||
"runas", // operation
|
||||
"C:\\Windows\\Notepad.exe", // file
|
||||
0, // params //
|
||||
0, // directory
|
||||
SW_SHOWNORMAL);
|
||||
*/
|
||||
SHELLEXECUTEINFO info =
|
||||
{
|
||||
sizeof(SHELLEXECUTEINFO),
|
||||
SEE_MASK_NOASYNC,// 0,//SEE_MASK_ASYNCOK,
|
||||
0,
|
||||
"runas",
|
||||
"C:\\Windows\\Notepad.exe",
|
||||
0, // parameters
|
||||
0, // directory
|
||||
SW_SHOW,
|
||||
0, // hHinsApp -- result handle or error code
|
||||
// REST AS DEFAULT -- NOT NEEDED
|
||||
};
|
||||
|
||||
PromptOK("DONE");
|
||||
BOOL res = ShellExecuteEx(&info);
|
||||
PromptOK("DONE, result is" + String(res ? "TRUE" : "FALSE"));
|
||||
return;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue