From: Cat Stevens Date: Sat, 19 May 2018 20:57:15 +0000 (-0400) Subject: flesh out windows implementation X-Git-Tag: 0.99~1669 X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=commitdiff_plain;h=9070fc75f9cfe2ee57ceed02adfcc289ecfe0b58 flesh out windows implementation --- diff --git a/basis/elevate/windows/windows.factor b/basis/elevate/windows/windows.factor index 6d2934ab53..404f1644c4 100644 --- a/basis/elevate/windows/windows.factor +++ b/basis/elevate/windows/windows.factor @@ -4,9 +4,20 @@ IN: elevate.windows command >>command + ] [ + ! hwnd lpOperation + f "runas" + command dup string? [ " " split ] when + ! lpFile lpParameters lpDirectory nShowCmd + [ first ] [ rest ] bi f win-console? 1 0 ? + ! call shell function + ShellExecuteW :> retval retval n>win32-error-check + retval replace? [ exit ] [ ] if + ] if ; ! no-op (not possible to lower) -M: windows lowered ; +M: windows lowered PRIVATE> \ No newline at end of file