IWMSPublishingPoint::SetDistributionUserNamePassword
Previous | Next |
IWMSPublishingPoint::SetDistributionUserNamePassword
The SetDistributionUserNamePassword method specifies the password and user name to use in response to an authentication challenge that is sent during server-to-server distribution.
Syntax
HRESULT SetDistributionUserNamePassword( wchar_t* newUserName, wchar_t* newUserPassword );
Parameters
newUserName
[in] Pointer to a wchar_t that contains the user name.
newUserPassword
[in] Pointer to a wchar_t that contains the user password.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Remarks
You can use a password and name to retrieve content from a publishing point on a remote server that has authentication and authorization plug-ins enabled. For security reasons, it is recommended that you do not use the BSTR data type because the values are stored in a cache on your computer.
Example Code
Requirements
Header: wmsserver.h.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003 family, Windows Server 2008 family.
See Also
Previous | Next |