Partager via


IComponentAuthenticate::SACGetProtocols

banner art

The SACGetProtocols method is used by a component to discover the authentication protocols supported by another component.

Syntax

HRESULT SACGetProtocols(
  DWORD**  ppdwProtocols,
  DWORD*  pdwProtocolCount
);

Parameters

  ppdwProtocols

[out]  Pointer to an array of supported protocols. For this version of Windows Media Device Manager, it is a single-element DWORD array containing the value SAC_PROTOCOL_V1.

  pdwProtocolCount

[out]  Pointer to a DWORD containing the number of protocols returned in ppdwProtocols. The number is always 1 for this version.

Return Values

The method returns an HRESULT. All the interface methods in Windows Media Device Manager and service provider can return any of the following classes of error codes:

  • Standard COM error codes
  • Windows error codes converted to HRESULT values
  • Windows Media Device Manager error codes

For a complete list of possible error codes, see Error Codes.

Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.
E_INVALIDARG The pbSPSessionKey parameter is invalid or is a NULL pointer.
E_FAIL An unspecified error occurred.

Requirements

Header: Defined in icomponentauthenticate.idl.

Library: mssachlp.lib

See Also