F
Fex
Hi all,
there are a lot of threats here with the problem how to start another
process on a Pocket PC, but there is no real answer... some broken
links and so on...
Can me tell anyone how I can start another process with Createprocess
(VB.NET)?
I'm using the following declaration, but it doesn't work...
Public Structure PROCESS_INFORMATION
Public hProcess As Integer
Public hThread As Integer
Public dwProcessId As Integer
Public dwThreadId As Integer
End Structure
Private Declare Function CreateProcess Lib "coredll.Dll" (ByVal
strImageName As String, ByVal strCmdLine As String, ByVal
pProcessAttributes As IntPtr, ByVal pThreadAttributes As IntPtr, ByVal
bInheritsHandle As Integer, ByVal dwCreationFlags As Integer, ByVal
pEnvironment As IntPtr, ByVal pCurrentDir As IntPtr, ByVal bArray() As
[Byte], ByVal oProc As PROCESS_INFORMATION) As Integer
Dim PI As PROCESS_INFORMATION
Dim Command as String
CreateProcess("any.exe", Command, IntPtr.Zero, IntPtr.Zero, 0, 0,
IntPtr.Zero, IntPtr.Zero, New Byte(128) {}, PI)
Thanks,
Fex
there are a lot of threats here with the problem how to start another
process on a Pocket PC, but there is no real answer... some broken
links and so on...
Can me tell anyone how I can start another process with Createprocess
(VB.NET)?
I'm using the following declaration, but it doesn't work...
Public Structure PROCESS_INFORMATION
Public hProcess As Integer
Public hThread As Integer
Public dwProcessId As Integer
Public dwThreadId As Integer
End Structure
Private Declare Function CreateProcess Lib "coredll.Dll" (ByVal
strImageName As String, ByVal strCmdLine As String, ByVal
pProcessAttributes As IntPtr, ByVal pThreadAttributes As IntPtr, ByVal
bInheritsHandle As Integer, ByVal dwCreationFlags As Integer, ByVal
pEnvironment As IntPtr, ByVal pCurrentDir As IntPtr, ByVal bArray() As
[Byte], ByVal oProc As PROCESS_INFORMATION) As Integer
Dim PI As PROCESS_INFORMATION
Dim Command as String
CreateProcess("any.exe", Command, IntPtr.Zero, IntPtr.Zero, 0, 0,
IntPtr.Zero, IntPtr.Zero, New Byte(128) {}, PI)
Thanks,
Fex