Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
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 |
|---|---|
|
Success. |
|
Invalid argument. |
|
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 |