Sample Code

Windows Driver Samples/ Windows Image Acquisition (WIA) Driver Samples/ C++/ wiadriverex/ segfilter/ wiaitem.h/

#pragma once

#define MIN_PROPID 2

class CWiaItem {
public:
    CWiaItem();
    ~CWiaItem();
    HRESULT SetIWiaItem(_In_ IWiaItem2 *pIWiaItem);

    void Release();

    HRESULT ReadPropertyLong(PROPID PropertyID, _Out_ LONG *plPropertyValue);
    HRESULT ReadPropertyGUID(PROPID PropertyID, _Out_ GUID *pguidPropertyValue);
    HRESULT ReadPropertyBSTR(PROPID PropertyID, _Out_ BSTR *pbstrPropertyValue);

    HRESULT WritePropertyLong(PROPID PropertyID, LONG lPropertyValue);
    HRESULT WritePropertyGUID(PROPID PropertyID, GUID guidPropertyValue);

private:
    IWiaPropertyStorage *m_pIWiaPropStg;
protected:
};

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