Export (0) Print
Expand All

IMFNetCredentialCache::GetCredential method

Retrieves the credential object for the specified URL.

Syntax


HRESULT GetCredential(
  [in]   LPCWSTR pszUrl,
  [in]   LPCWSTR pszRealm,
  [in]   DWORD dwAuthenticationFlags,
  [out]  IMFNetCredential **ppCred,
  [out]  DWORD *pdwFlags
);

Parameters

pszUrl [in]

A null-terminated wide-character string containing the URL for which the credential is needed.

pszRealm [in]

A null-terminated wide-character string containing the realm for the authentication.

dwAuthenticationFlags [in]

Bitwise OR of zero or more flags from the MFNetAuthenticationFlags enumeration.

ppCred [out]

Receives a pointer to the IMFNetCredential interface. The caller must release the interface.

pdwFlags [out]

Receives a bitwise OR of zero or more flags from the MFNetCredentialRequirements enumeration.

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

IMFNetCredentialCache

 

 

Community Additions

ADD
Show:
© 2014 Microsoft