Click to Rate and Give Feedback
MSDN
MSDN Library
Audio and Video
 IMFGetService::GetService Method

  Switch on low bandwidth view
IMFGetService::GetService Method


Retrieves a service interface.

Syntax

C++
HRESULT GetService(
  [in]   REFGUID guidService,
  [in]   REFIID riid,
  [out]  LPVOID *ppvObject
);

Parameters

guidService [in]

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

riid [in]

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

ppvObject [out]

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 codeDescription
S_OK

The method succeeded.

MF_E_UNSUPPORTED_SERVICE

The object does not support the service.

 

Requirements

Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderMfidl.h
LibraryMfuuid.lib

See Also

IMFGetService
MFGetService
Service Interfaces

Send comments about this topic to Microsoft

Build date: 6/23/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker