Page 1 of 1

Runshell in Windows10

Posted: Mon Dec 21, 2015 1:24 pm
by bamunz@earthlink.net
Anybody having a problem with runshell in Win 10?

Re: Runshell in Windows10

Posted: Mon Dec 21, 2015 2:27 pm
by Auge_Ohr
bamunz@earthlink.net wrote:Anybody having a problem with runshell in Win 10?
32bit or 64bit ?
32bit Xbase++ seem to have Problem on 64bit Windows 8.1 / 10 when Runshell( 32bit DLL / EXE ) which are also in c:\Windows\SysWOW64\

this does not work on 8.1/10 64bit :

Code: Select all

PROCEDURE MAIN
   Runshell("","c:\Windows\System32\osk.exe", .T.)
   WAIT
RETURN
it will give a Error
oError:genCode : 40
oError:operation : RunShell
oError:osCode : 740
it tell you wrong (!!!) about "Rights" ... which is not the Problem

workaround :
use ShellExecuteA API instead of Runshell
ShellOpen.zip
(833 Bytes) Downloaded 827 times
and disable 32bit redirection
https://msdn.microsoft.com/en-us/librar ... 65744.aspx