Runshell in Windows10

Xbase++ 2.0 Build 554 or later
Post Reply
Message
Author
bamunz@earthlink.net
Posts: 23
Joined: Fri Apr 17, 2015 11:09 am

Runshell in Windows10

#1 Post by bamunz@earthlink.net »

Anybody having a problem with runshell in Win 10?

User avatar
Auge_Ohr
Posts: 1422
Joined: Wed Feb 24, 2010 3:44 pm

Re: Runshell in Windows10

#2 Post 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 850 times
and disable 32bit redirection
https://msdn.microsoft.com/en-us/librar ... 65744.aspx
greetings by OHR
Jimmy

Post Reply