IMFGetService interface (mfidl.h)

Queries an object for a specified service interface.

Inheritance

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

Methods

The IMFGetService interface has these methods.

 
IMFGetService::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

Requirement Value
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