IMFNetCredential::SetPassword method

Sets the password.

Syntax


HRESULT SetPassword(
  [in] BYTE  *pbData,
  [in] DWORD cbData,
  [in] BOOL  fDataIsEncrypted
);

Parameters

pbData [in]

Pointer to a buffer that contains the password. If fDataIsEncrypted is FALSE, the buffer is a wide-character string. Otherwise, the buffer contains encrypted data.

cbData [in]

Size of pbData, in bytes. If fDataIsEncrypted is FALSE, the size includes the terminating null character.

fDataIsEncrypted [in]

If TRUE, the password is encrypted. Otherwise, the password is not encrypted.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Mfidl.h

Library

Mfuuid.lib

See also

IMFNetCredential

 

 

Show: