Hello, I program with visual foxpro and when I want to make a call to ShellExecute I do it in the following way:
DECLARE INTEGER ShellExecute IN c:/winfows/system32/shell32.dll INTEGER, STRING, STRING, STRING, STRING, INTEGER
Var1 = ShellExecute(0, "open", "notepad", "", "", 1)
and open notepad correctly and Var1 returns the value 42.
But when I want to make the call from Winflector I do it in the following way;
DECLARE integer TApiInitialize IN c:/winflector/server/gtrmapi.dll
Var0 = TApiInitialize()
DECLARE INTEGER TApiRemoteShellExecute IN c:/winflector/server/gtrmapi.dll INTEGER, STRING, STRING, STRING, STRING, INTEGER
Var1 = TApiRemoteShellExecute(0, "open", "notepad", "", "", 1)
and notepad does not open and Var1 returns the value 2.
Anyone know what might be happening?
Thank you.