IMFNetCredential::SetUser method (mfidl.h)

Sets the user name.

Syntax

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

Parameters

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.

cbData

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

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

   
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