Runshell in Windows10
-
- Posts: 23
- Joined: Fri Apr 17, 2015 11:09 am
Runshell in Windows10
Anybody having a problem with runshell in Win 10?
Re: Runshell in Windows10
32bit or 64bit ?bamunz@earthlink.net wrote:Anybody having a problem with runshell in Win 10?
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 tell you wrong (!!!) about "Rights" ... which is not the ProblemoError:genCode : 40
oError:operation : RunShell
oError:osCode : 740
workaround :
use ShellExecuteA API instead of Runshell and disable 32bit redirection
https://msdn.microsoft.com/en-us/librar ... 65744.aspx
greetings by OHR
Jimmy
Jimmy