Hi,
I need to call CeCreateProcess FROM THE DESKTOP.
My code doesn't work, I can't find any working examples.
I declare CeCreateProcess as follows:
Private Declare Function CeCreateProcess Lib "rapi.dll" _
(ByVal lpApplicationName As String, ByVal lpCommandLine As String, _
ByVal lpProcessAttributes As Long, ByVal lpThreadAttributes As Long, _
ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, _
ByVal lpEnvironment As Long, ByVal lpCurrentDirectory As Long, _
ByVal lpStartupInfo As Long, ByVal lpProcessInformation As Long) As Long
When I call the function, I get error 2 (The system cannot find the file specified):
ret = CeCreateProcess("peghelp.exe", "file:test.htm#one", 0, 0, 0, 0, 0, 0, 0, 0)
When I call the function from my eVB program, it works fine (the only thing I have to change is "rapi.dll" in the Declare Function statement to "coredll").
Can you, please, tell me what I'm doing wrong or possibly give me an example that works? Thank you.
ret = CeCreateProcess(StrConv("p
It works.