Sample Code

Windows Driver Samples/ Microsoft slate system virtual audio device driver sample/ C++/ SwapAPO/ PropPageExtensions/ TopologyExaminers.h/

//**@@@*@@@****************************************************
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//**@@@*@@@****************************************************

//
// FileName:    TopologyExaminers.h
//
// Abstract:    An interface and supporting class(es) for examining device
//              model IParts
//
// ----------------------------------------------------------------------------

#pragma once


// ----------------------------------------------------------------------
// interface IExaminer
// An interface for examining devicemodel IParts
// ----------------------------------------------------------------------
interface IExaminer
{
public:
    virtual HRESULT Examine(IPartsList* pPath) = 0;
    virtual BOOL    IsSatisfied() = 0;
};


// --------------------------------------------------------------------------------
// class CFormatExaminer
// A class that examines IConnectors looking for a soft connector that supports
// a given KS streaming format (KSDATAFORMAT).
// ----------------------------------------------------------------------
class CFormatExaminer : public IExaminer
{
private:
    PKSDATAFORMAT   m_pFormatReq;
    BOOL            m_bSatisfied;

    HRESULT ExaminePart(IPart* pIPart);

public:
    CFormatExaminer(PKSDATAFORMAT pKsFormat, ULONG cbFormat);
    ~CFormatExaminer();

    HRESULT Examine(IPartsList* pPath);
    BOOL    IsSatisfied()       {   return m_bSatisfied;    }
};

Our Services

  • What our customers say about us?

© 2011-2024 All Rights Reserved. Joya Systems. 4425 South Mopac Building II Suite 101 Austin, TX 78735 Tel: 800-DEV-KERNEL

Privacy Policy. Terms of use. Valid XHTML & CSS