Skip to main content
IMFGetService interface

Queries an object for a specified service interface.

Members

The IMFGetService interface inherits from the IUnknown interface. IMFGetService also has these types of members:

Methods

The IMFGetService interface has these methods.

MethodDescription
GetService

Retrieves a service interface.

 

Remarks

A service is an interface that is exposed by one object but might be implemented by another object. The GetService method is equivalent to QueryInterface, with the following difference: when QueryInterface retrieves a pointer to an interface, it is guaranteed that you can query the returned interface and get back the original interface. The GetService method does not make this guarantee, because the retrieved interface might be implemented by a separate object.

The MFGetService function is a helper function that queries an object for IMFGetService and calls the GetService method.

Requirements

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mfidl.h

Library

Mfuuid.lib

See also

Media Foundation Interfaces
Service Interfaces