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

Method GetPages

Source/VideoRenderer.cpp:1218–1237  ·  view source on GitHub ↗

ISpecifyPropertyPages

Source from the content-addressed store, hash-verified

1216
1217// ISpecifyPropertyPages
1218STDMETHODIMP CMpcVideoRenderer::GetPages(CAUUID* pPages)
1219{
1220 CheckPointer(pPages, E_POINTER);
1221
1222 static const GUID guidQualityPPage = { 0x565DCEF2, 0xAFC5, 0x11D2, 0x88, 0x53, 0x00, 0x00, 0xF8, 0x08, 0x83, 0xE3 };
1223
1224 pPages->cElems = GetActive() ? 3 : 1;
1225 pPages->pElems = static_cast<GUID*>(CoTaskMemAlloc(sizeof(GUID) * pPages->cElems));
1226 if (pPages->pElems == nullptr) {
1227 return E_OUTOFMEMORY;
1228 }
1229
1230 pPages->pElems[0] = __uuidof(CVRMainPPage);
1231 if (pPages->cElems == 3) {
1232 pPages->pElems[1] = __uuidof(CVRInfoPPage);
1233 pPages->pElems[2] = guidQualityPPage;
1234 }
1235
1236 return S_OK;
1237}
1238
1239// IVideoRenderer
1240

Callers 1

OpenConfigurationFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected