Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


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.

Deprecated. Changes the password for a profile.

HRESULT ChangeProfilePassword(
  LPTSTR lpszProfileName,
  LPTSTR lpszOldPassword,
  LPTSTR lpszNewPassword,
  ULONG ulFlags


[in] A pointer to the name of the profile associated with the password to be changed.


[in] A pointer to the current password.


[in] A pointer to the new password.


[in] A bitmask of flags that controls the type of the passed-in strings. The following flag can be set:


The profile name and passwords are in Unicode format. If the MAPI_UNICODE flag is not set, these strings are in ANSI format.


If this method is called, it will return S_OK. However, no action will be taken.

Do not use this method. MAPI does not support passwords for profiles.

© 2015 Microsoft