IMFCaptureSource::GetService method (mfcaptureengine.h)

Gets a pointer to the underlying Source Reader object.

Syntax

HRESULT GetService(
  [in]  REFIID   rguidService,
  [in]  REFIID   riid,
  [out] IUnknown **ppUnknown
);

Parameters

[in] rguidService

A service identifier GUID. Currently the value must be IID_IMFSourceReader or GUID_NULL.

[in] riid

The interface identifier (IID) of the interface being requested. The value must be IID_IMFSourceReader. If the value is not set to IID_IMFSourceReader, the call will fail and return E_INVALIDARG.

[out] ppUnknown

Receives a pointer to the IUnknown interface. The caller must release the interface.

Return value

This method can return one of these values.

Return code Description
S_OK
Success.
E_INVALIDARG
Invalid argument.
MF_E_INVALIDREQUEST
The capture source was not initialized. Possibly there is no capture device on the system.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header mfcaptureengine.h

See also

IMFCaptureSource