hello

Can I launch the integrated SMS-Application from my application and define a
"To"-Value?

Thanks

James

Re: Launching SMS-Application with number? by Fabien

Fabien
Mon Sep 18 09:59:58 CDT 2006

Hi,

you can import the CreateProcess function in order to launch your
application :

<DllImport("coredll.dll")> _
Protected Shared Function CreateProcess( _
ByVal imageName As String, _
ByVal cmdLine As String, _
ByVal lpProcessAttributes As IntPtr, _
ByVal lpThreadAttributes As IntPtr, _
ByVal boolInheritHandles As Int32, _
ByVal dwCreationFlags As Int32, _
ByVal lpEnvironment As IntPtr, _
ByVal lpCurrentDir As IntPtr, _
ByVal si() As Byte, _
ByVal pi As ProcessInfo) As Int32
End Function


Public Class ProcessInfo
Public hProcess As IntPtr
Public hThread As IntPtr
Public ProcessID As IntPtr
Public ThreadID As IntPtr
End Class


Dim pi As ProcessInfo
Dim res As Integer
pi =3D New ProcessInfo
pi.hProcess =3D 0
res =3D CreateProcess(ApplicationPath.Text, _
CommandLine.Text, Nothing, Nothing, _
0, 0, Nothing, Nothing, Nothing, pi)

In the CommandLine variable, you can put your parameters.


BR


Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/




James a =E9crit :

> hello
>
> Can I launch the integrated SMS-Application from my application and defin=
e a
> "To"-Value?
>=20
> Thanks
>=20
> James


Re: Launching SMS-Application with number? by James

James
Mon Sep 18 10:02:25 CDT 2006

Thanks a lot, that worked

"Fabien" <fab_00_2002@msn.com> schrieb im Newsbeitrag
news:1158591598.125983.107740@k70g2000cwa.googlegroups.com...
Hi,

you can import the CreateProcess function in order to launch your
application :

<DllImport("coredll.dll")> _
Protected Shared Function CreateProcess( _
ByVal imageName As String, _
ByVal cmdLine As String, _
ByVal lpProcessAttributes As IntPtr, _
ByVal lpThreadAttributes As IntPtr, _
ByVal boolInheritHandles As Int32, _
ByVal dwCreationFlags As Int32, _
ByVal lpEnvironment As IntPtr, _
ByVal lpCurrentDir As IntPtr, _
ByVal si() As Byte, _
ByVal pi As ProcessInfo) As Int32
End Function


Public Class ProcessInfo
Public hProcess As IntPtr
Public hThread As IntPtr
Public ProcessID As IntPtr
Public ThreadID As IntPtr
End Class


Dim pi As ProcessInfo
Dim res As Integer
pi = New ProcessInfo
pi.hProcess = 0
res = CreateProcess(ApplicationPath.Text, _
CommandLine.Text, Nothing, Nothing, _
0, 0, Nothing, Nothing, Nothing, pi)

In the CommandLine variable, you can put your parameters.


BR


Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/




James a écrit :

> hello
>
> Can I launch the integrated SMS-Application from my application and define
> a
> "To"-Value?
>
> Thanks
>
> James