MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / Get

Method Get

Source/VideoRenderer.cpp:793–812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

791}
792
793STDMETHODIMP CMpcVideoRenderer::Get(REFGUID PropSet, ULONG Id, LPVOID pInstanceData, ULONG InstanceLength, LPVOID pPropertyData, ULONG DataLength, ULONG* pBytesReturned)
794{
795 DLog(L"IKsPropertySet::Get({}, {}, {}, {}, {}, ...)", PropSetAndIdToString(PropSet, Id), pInstanceData, InstanceLength, pPropertyData, DataLength);
796
797 if (PropSet == AM_KSPROPSETID_CopyProt) {
798 if (Id == AM_PROPERTY_COPY_ANALOG_COMPONENT) {
799 if (pPropertyData && DataLength >= sizeof(ULONG) && pBytesReturned) {
800 *(ULONG*)pPropertyData = FALSE;
801 *pBytesReturned = sizeof(ULONG);
802 return S_OK;
803 }
804 return E_INVALIDARG;
805 }
806 }
807 else {
808 return E_PROP_SET_UNSUPPORTED;
809 }
810
811 return E_PROP_ID_UNSUPPORTED;
812}
813
814STDMETHODIMP CMpcVideoRenderer::QuerySupported(REFGUID PropSet, ULONG Id, ULONG* pTypeSupport)
815{

Callers

nothing calls this directly

Calls 2

DLogFunction · 0.85
PropSetAndIdToStringFunction · 0.85

Tested by

no test coverage detected