Partager via


ContactsNewContact

4/8/2010

The ContactsNewContact function launches the Outlook Mobile Contacts application—directly into the Compose Form for a new Contact item.

Syntax

HRESULT ContactsNewContact();

Remarks

This function is one of two, that increases the Home Screen extensibility options available to OEMs and Mobile Operators. The other function is CalendarNewAppointment. Both functions significantly decrease the difficulty associated with creating custom Home screen plug-ins that enable programmatic navigation of the Outlook Mobile, Messaging, and Phone applications.

The ContactsNewContact function allows a plug-in or application to programmatically launch the Contacts application into its Compose Form to allow users to create a new Contact item—all without having to simulate keystrokes.

This behavior is the same as if the User started entering information for a new Contact item into the Contact Compose Form, navigated away to the Home Screen, and then returned to the Contacts application.

The Compose Form is displayed as if the User tapped New (Soft Key 1) from the Contacts List View.

Note that, beginning with Windows Mobile 6.5.3, soft keys are replaced by touchable tiles on Windows Mobile Professional phones.**

If the Contacts application Compose Form or another dialog box is already being displayed when ContactsNewContact is called, then that window's contents must be saved, and the window dismissed—then ContactsNewContact is called.

Return Value

This function returns the following:

  • S_OK
    The function completed successfully.
  • E_FAIL
    The function call failed.

Requirements

Header appnav.h
Library aygshell.lib
Windows Mobile Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later

See Also

Reference

CalendarNewAppointment

Other Resources

Creating Custom Plug-ins for Launching Outlook Mobile Applications
PhoneShowCallLog