IMFGetService interface

Queries an object for a specified service interface.


The IMFGetService interface has these methods.

Method Description
IMFGetService::GetService Retrieves a service interface.


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.


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

See Also

Media Foundation Interfaces

Service Interfaces