SStart Poutlook with a specific contact

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I want to start poutlook with a specific contact. I have the contacts name
and want to open the standard poutlook at that contact.
The following opens poutlook contact, but what parameter would let me
specifiy the contacts name?

bool result = CreateProcess("poutlook.exe", "contacts", IntPtr.Zero,
IntPtr.Zero, false, 0, IntPtr.Zero, IntPtr.Zero, null, pi);

Or is there another way?

Thanks!
 
An alternative approach would be to use POOM - create an application
instance, do a find on the contacts and call Display() on the contact item
to display the item card.
If you are doing this with .NETCF on Windows Mobile 5.0 you can use the
managed Pocket Outlook classes - Microsoft.WindowsMobile.PocketOutlook. For
older devices you'll need a POOM wrapper class.

Peter
 
Hi Peter,

sure that would work, I am already using .NETCF on WM5.0 to lookup and
select contacts, but in another part of the application I want to give the
user the advantage of selecting a person and opening the contact, thus
providing the full functionality of Pocket Outlook (call the contact, send
SMS, email, MMS, edit the contact, ...).

I do not want to redevelop something that Microsoft has already done - I
would really prefer to reuse available functionality. Especially on a mobile
device where resources (RAM) should not be wasted by redundant code.

I don't understand why .NETCF doesn't offer easy to use classes making the
applications available for reuse.

PWF, frustrated.
 
Back
Top