Partager via


Setting a Default Profile

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The default profile is the profile that is used if you do not explicitly specify one in the call to MAPILogonEx, setting instead the MAPI_USE_DEFAULT flag.

To establish a default profile

  1. Call the MAPIAdminProfiles function to retrieve an IProfAdmin interface pointer.

  2. Call IProfAdmin::SetDefaultProfile. SetDefaultProfile sets the PR_DEFAULT_PROFILE (PidTagDefaultProfile) property for the new default profile and removes the setting for the previous default profile.