Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Queries the underlying Sink Writer object for an interface.
Syntax
HRESULT GetService(
[in] DWORD dwSinkStreamIndex,
[in] REFGUID rguidService,
[in] REFIID riid,
[out] IUnknown **ppUnknown
);
Parameters
[in] dwSinkStreamIndex
The zero-based index of the stream to query. The index is returned in the pdwSinkStreamIndex parameter of the IMFCaptureSink::AddStream method.
[in] rguidService
A service identifier GUID. Currently, the value must be GUID_NULL.
[in] riid
A service identifier GUID. Currently, the value must be IID_IMFSinkWriter.
[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 |
---|---|
|
Success. |
|
Invalid argument. |
|
Invalid request. |
|
Invalid stream number. |
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 |