IProviderAdmin::OpenProfileSection
Published: July 16, 2012
Opens a profile section from the current profile and returns an IProfSect pointer for further access.
HRESULT OpenProfileSection( LPMAPIUID lpUID, LPCIID lpInterface, ULONG ulFlags, LPPROFSECT FAR * lppProfSect );
The IProviderAdmin::OpenProfileSection method opens a profile section, enabling the caller to read information from and possibly write information to the active profile.
Clients cannot open profile sections that belong to providers by using the OpenProfileSection method.
Multiple clients or service providers can simultaneously open a profile section with read-only permission. However, when a profile section is open with read/write permission, no other calls can be made to open the section, regardless of the type of access. If a profile section is open with read-only permission, a subsequent call to request read/write permission will fail with MAPI_E_NO_ACCESS. Likewise, if a section is open with read/write permission, a subsequent call to request read-only permission will also fail.