The IProfAdmin::AdminServices method provides access to a message service administration object for making changes to the message services in a profile.
HRESULT AdminServices(
LPTSTR lpszProfileName,
LPTSTR lpszPassword,
ULONG ulUIParam,
ULONG ulFlags,
LPSERVICEADMIN FAR * lppServiceAdmin
);
The IProfAdmin::AdminServices method provides access to a message service administration object for making configuration changes to the message services within a profile.
Profile passwords are not supported on all operating system platforms. On platforms that do not support profile passwords, the lpszPassword parameter can be NULL or a pointer to a zero-length string. Currently, Microsoft® Windows NT® and Microsoft® Windows® 95 do not support passwords; Microsoft® Windows® version 3.1 does.
Although you retrieve an IMsgServiceAdmin pointer by calling either this method or IMAPISession::AdminServices to retrieve an IMsgServiceAdmin pointer, call this method if you are strictly a configuration client and offer no messaging features. The IProfAdmin method does not create a session object and does not load any service providers, enhancing performance.
IProfAdmin::AdminServices cannot be used to create a profile. Therefore, you must specify an existing valid profile in lpszProfileName. If the specified profile does not exist, AdminServices returns MAPI_E_LOGON_FAILED.
The name of the profile and its password can be up to 64 characters in length and can include the following characters: