You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/outlook/mapi/iprofadmin-copyprofile.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,12 +53,16 @@ HRESULTCopyProfile(
53
53
54
54
> [in] A bitmask of flags that controls how the profile is copied. The following flags can be set:
55
55
56
+
MAPI_APP_PROFILE
57
+
58
+
> Allows copying an "app" profile. This flag must be set if the existing profile is an "app" profile.
59
+
>
60
+
> This flag may not be recognized or supported in all MAPI implementations.
61
+
56
62
MAPI_DIALOG
57
-
58
-
> Displays a dialog box that prompts the user for the correct password of the profile to copy. If this flag is not set, no dialog box is displayed.
59
63
64
+
> Displays a dialog box that prompts the user for the correct password of the profile to copy. If this flag is not set, no dialog box is displayed.
60
65
## Return value
61
-
62
66
S_OK
63
67
64
68
> The profile was successfully copied.
@@ -71,6 +75,10 @@ MAPI_E_LOGON_FAILED
71
75
72
76
> The password for the profile to copy is incorrect, and a dialog box could not be displayed to the user to request the correct password because MAPI_DIALOG was not set in the _ulFlags_ parameter.
73
77
78
+
MAPI_E_NO_ACCESS
79
+
80
+
> The existing profile is an "app" profile, and the MAPI_APP_PROFILE flag was not set.
81
+
74
82
MAPI_E_NOT_FOUND
75
83
76
84
> The specified profile does not exist.
@@ -91,7 +99,9 @@ The name of the original profile, its password, and the copy can be up to 64 cha
91
99
Profile passwords are not supported on all operating systems. On operating systems that do not support profile passwords, _lpszOldPassword_ can be NULL or a pointer to a zero-length string.
92
100
93
101
If _lpszOldPassword_ is set to NULL, the profile to be copied requires a password, and the MAPI_DIALOG flag is set; a dialog box that prompts the user to provide the password is displayed. If a password is required, but _lpszOldPassword_ is set to NULL and the MAPI_DIALOG flag is not set, **CopyProfile** returns MAPI_E_LOGON_FAILED.
94
-
102
+
103
+
If the existing profile is an "app" profile, and the MAPI_APP_PROFILE flag is not set, **CopyProfile** returns MAPI_E_NO_ACCESS. If the existing profile is an "app" profile, and the MAPI_APP_PROFILE is set, the new profile will also be an "app" profile. If the existing profile is not an "app" profile, the new profile will not be an "app" profile regardless of the MAPI_APP_PROFILE flag.
Copy file name to clipboardExpand all lines: docs/outlook/mapi/iprofadmin-deleteprofile.md
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,14 +37,24 @@ HRESULT DeleteProfile(
37
37
38
38
_ulFlags_
39
39
40
-
> [in] Always NULL.
41
-
40
+
> [in] A bitmask of flags that controls how a profile is deleted. The following flag can be set:
41
+
42
+
MAPI_APP_PROFILE
43
+
44
+
> Allows deleting an "app" profile. This flag must be set if the profile to be deleted is an "app" profile.
45
+
>
46
+
> This flag may not be recognized or supported in all MAPI implementations.
47
+
42
48
## Return value
43
49
44
50
S_OK
45
51
46
52
> The profile was successfully deleted.
47
-
53
+
54
+
MAPI_E_NO_ACCESS
55
+
56
+
> The profile is an "app" profile, and the MAPI_APP_PROFILE flag was not set.
57
+
48
58
MAPI_E_NOT_FOUND
49
59
50
60
> The specified profile does not exist.
@@ -56,7 +66,9 @@ The **IProfAdmin::DeleteProfile** method deletes a profile. If the profile to de
56
66
The entry point function for each message service in the profile is called with the MSG_SERVICE_DELETE value set in the _ulContext_ parameter. First, the function deletes the service, and then it deletes the service's profile section. The message service entry point function is not called again after the service has been deleted.
Copy file name to clipboardExpand all lines: docs/outlook/mapi/iprofadmin-getprofiletable.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,8 +33,14 @@ HRESULT GetProfileTable(
33
33
34
34
_ulFlags_
35
35
36
-
> [in] Always NULL.
37
-
36
+
> [in] A bitmask of flags that controls how the profile table is populated. The following flag can be set:
37
+
38
+
MAPI_APP_PROFILE
39
+
40
+
> Include "app" profiles in the profile table. If this flag is not set, "app" profiles are not included.
41
+
>
42
+
> This flag may not be recognized or supported in all MAPI implementations.
43
+
38
44
_lppTable_
39
45
40
46
> [out] A pointer to a pointer to the profile table.
@@ -50,11 +56,11 @@ S_OK
50
56
The **IProfAdmin::GetProfileTable** method provides access to the profile table, which contains one row for every available profile. There are only two columns in each row: the profile's display name, and a flag that indicates whether the profile is the default.
51
57
52
58
Profiles that have been deleted, or that are in use but have been marked for deletion, are not included in the profile table. The profile table is static; subsequent additions and deletions of profiles are not reflected in the table.
53
-
59
+
54
60
If no profiles exist, **GetProfileTable** returns a table with zero rows.
55
61
56
62
For more information about the profile table, see [Profile Tables](profile-tables.md).
Copy file name to clipboardExpand all lines: docs/outlook/mapi/iprofadmin-setdefaultprofile.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,14 +50,17 @@ S_OK
50
50
51
51
> A default profile was successfully established or removed.
52
52
53
+
E_FAIL
54
+
55
+
> The specified profile cannot be set as the default profile.
56
+
53
57
MAPI_E_NOT_FOUND
54
-
58
+
55
59
> The specified profile does not exist.
56
-
57
60
## Remarks
58
61
59
-
The **IProfAdmin::SetDefaultProfile** method either establishes a particular profile as the client's default profile or clears the current default profile. The default profile is the profile that is automatically used whenever the client begins a MAPI session. **SetDefaultProfile** also sets the new default profile's **PR_DEFAULT_PROFILE** ([PidTagDefaultProfile](pidtagdefaultprofile-canonical-property.md)) property to TRUE.
60
-
62
+
The **IProfAdmin::SetDefaultProfile** method either establishes a particular profile as the client's default profile or clears the current default profile. An "app" profile cannot be set as the default profile. The default profile is the profile that is automatically used whenever the client begins a MAPI session. **SetDefaultProfile** also sets the new default profile's **PR_DEFAULT_PROFILE** ([PidTagDefaultProfile](pidtagdefaultprofile-canonical-property.md)) property to TRUE.
63
+
61
64
## Notes to callers
62
65
63
66
To start a session with the default profile, pass the MAPI_USE_DEFAULT flag to the [MAPILogonEx](mapilogonex.md) function.
Copy file name to clipboardExpand all lines: docs/outlook/mapi/mapilogonex.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,12 @@ HRESULT MAPILogonEx(
59
59
MAPI_ALLOW_OTHERS
60
60
61
61
> The shared session should be returned, which allows later clients to obtain the session without providing any user credentials.
62
-
62
+
63
+
MAPI_APP_PROFILE
64
+
65
+
> Include "app" profiles in the logon dialog list. If this flag is not set, "app" profiles are not included.
66
+
> This flag may not be recognized or supported in all MAPI implementations.
67
+
63
68
MAPI_BG_SESSION
64
69
65
70
> Log on to a session and run any operations in the background. In general, if a client intends to do processing on a background thread or in a separate process in a manner that is unobtrusive to the foreground thread, it should call with the MAPI_BG_SESSION flag. A client application such as an indexing engine or opening a Personal Folders File (PST) for background type access are some examples of where to use MAPI_BG_SESSION.MAPILogonEx.
@@ -135,7 +140,7 @@ MAPI_E_USER_CANCEL
135
140
MAPI client applications call the MAPILogonEx function to log on to a session with the messaging system. All strings that are passed in and returned to and from MAPI calls are null-terminated and must be specified in the current character set or code page of the calling client or provider's operating system.
136
141
137
142
The _lpszProfileName_ parameter is ignored if there is an existing previous session that called MapiLogonEx with the MAPI_ALLOW_OTHERS flag set and if the flag MAPI_NEW_SESSION is not set. If the _lpszProfileName_ parameter is NULL or points to an empty string, and the _flFlags_ parameter includes the MAPI_LOGON_UI flag, the MAPILogonEx function generates a logon dialog box that has an empty field for the profile name.
138
-
143
+
139
144
When logging on to a specific profile, a client should pass the MAPI_NEW_SESSION flag into MAPILogonEx in addition to the profile name. Otherwise, if another client has established a shared session by logging on with MAPI_ALLOW_OTHERS, the client will be logged on to the shared session instead of to the profile requested.
140
145
141
146
The MAPI_EXPLICIT_PROFILE flag does not cause the default profile name to be used when _lpszProfileName_ is NULL or empty unless the MAPI_USE_DEFAULT flag is also present.
0 commit comments