IMFGetService::GetService method (mfidl.h)
Retrieves a service interface.
Syntax
HRESULT GetService(
[in] REFGUID guidService,
[in] REFIID riid,
[out] LPVOID *ppvObject
);
Parameters
[in] guidService
The service identifier (SID) of the service. For a list of service identifiers, see Service Interfaces.
[in] riid
The interface identifier (IID) of the interface being requested.
[out] 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 |
---|---|
|
The method succeeded. |
|
The object does not support the service. |
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 |
Library | Mfuuid.lib |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for