Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 920 Bytes

setting-a-default-profile.md

File metadata and controls

28 lines (16 loc) · 920 Bytes
title manager ms.date ms.audience ms.localizationpriority api_type ms.assetid
Setting a Default Profile
lindalu
11/16/2014
Developer
medium
COM
1d1e862d-ba49-48a1-bb51-0af861323b7b

Setting a Default Profile

Applies to: Outlook 2013 | Outlook 2016

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.