Building a Testpoint Framework
by Noam Cohen 



Listing One
interface IDataSink
{
  Write(void* buff, UINT buffSize);
}


Listing Two
Connect_Source_And_Filter:
pDownStream = pDataFilter;
pTpm = GetTpm();
if(pTpm->IsActive( UUID_TP1))
{
    pHandler = pTpm->GetHandler(UUID_TP1);
    if(NULL != pHandler)
        pDownStream = new Tee( pDataFilter, pHandler);
}
pSource->Connect(pDownStream);



1


