Freigeben über


CSecureChannelServer::SACGetProtocols

banner art

The SACGetProtocols method reports the protocols supported by a component.

Syntax

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

Parameters

  ppdwProtocols

Pointer to a pointer to an array of DWORD values specifying the supported protocols.

  pdwProtocolCount

Pointer to a DWORD specifying the number of protocols in the array to which ppdwProtocols points.

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 A parameter is invalid or is a NULL pointer.
E_FAIL An unspecified error occurred.

Remarks

To implement this method, see the example code in To Implement IComponentAuthenticate in a Service Provider. Delegate the methods of IComponentAuthenticate to the global CsecureChannelServer object.

Example Code

HRESULT hr;
g_pAppSCServer = new CSecureChannelServer();
If (g_pAppSCServer )
    hr = g_pAppSCServer ->SACGetProtocols(ppdwProtocols, pdwProtocolCOunt);
Else
    hr = E_FAIL;

Requirements

Header: Include scserver.h.

Library: mssachlp.lib

See Also