IMFCaptureSource::GetService method

Gets a pointer to the underlying Source Reader object.

Syntax


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

Parameters

rguidService [in]

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

riid [in]

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.

ppUnknown [out]

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

Return value

This method can return one of these values.

Return codeDescription
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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Mfcaptureengine.h

See also

IMFCaptureSource

 

 

Community Additions

ADD
Show:
© 2014 Microsoft