CreateProcess - OpennetCF Diagnostic....

  • Thread starter Thread starter A_PK
  • Start date Start date
A

A_PK

Just wonder which one is better if I want to use them to Launch
Tmail.exe....

Could some one give me a sample code of how to use CreateProcess to launch
Tmail.exe.....
with the TO field filled with TO: (e-mail address removed)

thannk you very much
 
Are there any dll that I should imports....

i type the whole string
CreateProcess("tmail.exe", "mailto:[email protected]?subjec­t=This is
subject&body=messagebody")

but the CreateProces got error........just wonder what thing should I
imports first.
 
thanks..it work...

just wonder is i want to get the subject and body filled as well ?

sorry .......i should have asked them all together...
 
Hi,

Long back I have used CreateProcess in a sample, you need to try it
like this,

OpenNETCF.WinAPI.Core.CreateProcess("tmail.exe",
"mailto:[email protected]?subjec­t=This is subject&body=messagebody");

Try to check in Opennetcf sdf for any samples available.
Hope this helps,

Cheers,
Arun.
www.innasite.com
 
Arun,

Did you mean OpenNETCF.Win32.Core.CreateProcess instead of
OpenNETCF.WinAPI.Core.CreateProcess? If so it is an obsolete method and
must be replaced with OpenNETCF.Diagnostics.Process.Start.

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
It was OpenNETCF.Win32.Core.createProcess, Thanks for the update
Sergey, Let me check with the change you suggested, but how can we add
message and subgect to tmail.exe using Process.Start
Thanks once again.
Cheers,
Arun.
 
In fact, Core.CreateProcess uses ProcessStartInfo together with
Process.Start:

ProcessStartInfo psi = new ProcessStartInfo();
psi.UseShellExecute = false;
psi.FileName = FileName;
psi.Arguments = CommandLine;
OpenNETCF.Diagnostics.Process.Start(psi);


Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
Hi Sergery,

How about Attachment and Subject ? How could I attach my attachment, have a
Subject predefined ?
what is the command line look like ?

Process.Start("mailto:[email protected]?subject=Subjectg Tiltle&attachment
???or what ?

pls guide me....
 
Back
Top