IMFNetCredential::SetUser method (mfidl.h)

Sets the user name.

Syntax

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

Parameters

[in] pbData

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

[in] cbData

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

[in] fDataIsEncrypted

If TRUE, the user name is encrypted. Otherwise, the user name is not encrypted.

Return value

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

Return code Description
S_OK
The method succeeded.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header mfidl.h
Library Mfuuid.lib

See also

IMFNetCredential