IMFGetService::GetService method

Retrieves a service interface.

Syntax

HRESULT GetService(
  REFGUID guidService,
  REFIID  riid,
  LPVOID  *ppvObject
);

Parameters

guidService

The service identifier (SID) of the service. For a list of service identifiers, see Service Interfaces.

riid

The interface identifier (IID) of the interface being requested.

ppvObject

Receives the interface pointer. The caller must release the interface.

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.
MF_E_UNSUPPORTED_SERVICE
The object does not support the service.

Requirements

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

See Also

IMFGetService

MFGetService

Service Interfaces