RunExeAndWait... - VB.NET

  • Thread starter Thread starter Mobile Boy 36
  • Start date Start date
M

Mobile Boy 36

This code runs an executable on the pocket pc but it doesn't wait till the
exe has been finished.
How can I change this code (for the compact framework), so it waits till the
executable has been finished.
A RunExeAndWait...

Public Shared Function RunExe(ByVal Pad As String) As Boolean
Dim strLine As String
Dim Vangnet As Integer = 99

Try
Vangnet = CeCreateProcess(Pad, strLine, 0, 0, 0, 0, 0, 0, 0,
0)
Catch ex As Exception

End Try

Return (Vangnet <> 0)

End Function
 
there is no RAPI equivalent for WaitForSingleObject .
what you can try is write and rapi extension dll and shift the
CreateProcess() and then you can do WaitForSingleObject()...
Regards
Amit
 
I don't need a Rapi...
No other way to make the program waiting till the executable has been
finished?
 
Back
Top