MCPcopy Create free account
hub / github.com/Nevcairiel/LAVFilters / QueryPinInfo

Method QueryPinInfo

common/baseclasses/amfilter.cpp:2265–2289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2263/* Return information about the filter we are connect to */
2264
2265STDMETHODIMP
2266CBasePin::QueryPinInfo(__out PIN_INFO *pInfo)
2267{
2268 CheckPointer(pInfo, E_POINTER);
2269 ValidateReadWritePtr(pInfo, sizeof(PIN_INFO));
2270
2271 pInfo->pFilter = m_pFilter;
2272 if (m_pFilter)
2273 {
2274 m_pFilter->AddRef();
2275 }
2276
2277 if (m_pName)
2278 {
2279 (void)StringCchCopyW(pInfo->achName, NUMELMS(pInfo->achName), m_pName);
2280 }
2281 else
2282 {
2283 pInfo->achName[0] = L'\0';
2284 }
2285
2286 pInfo->dir = m_dir;
2287
2288 return NOERROR;
2289}
2290
2291STDMETHODIMP
2292CBasePin::QueryDirection(__out PIN_DIRECTION *pPinDir)

Callers 8

RenameOutputPinMethod · 0.80
CompleteConnectMethod · 0.80
ConnectMethod · 0.80
CDispMethod · 0.80
DumpGraphFunction · 0.80
DisplayPinInfoMethod · 0.80
GetFilterFromPinFunction · 0.80

Calls 1

AddRefMethod · 0.45

Tested by

no test coverage detected