Sample Code

Windows Driver Samples/ WPD WUDF sample driver/ C++/ WpdObjectProperties.h/

#pragma once

class WpdObjectProperties
{
public:
    WpdObjectProperties();
    ~WpdObjectProperties();

    HRESULT Initialize(_In_ FakeDevice *pFakeDevice);

    HRESULT DispatchWpdMessage(_In_ REFPROPERTYKEY          Command,
                               _In_ IPortableDeviceValues*  pParams,
                               _In_ IPortableDeviceValues*  pResults);

    HRESULT OnGetSupportedProperties(_In_ IPortableDeviceValues*  pParams,
                                     _In_ IPortableDeviceValues*  pResults);

    HRESULT OnGetValues(_In_ IPortableDeviceValues*  pParams,
                        _In_ IPortableDeviceValues*  pResults);

    HRESULT OnGetAllValues(_In_ IPortableDeviceValues*  pParams,
                           _In_ IPortableDeviceValues*  pResults);

    HRESULT OnWriteProperties(_In_ IPortableDeviceValues*  pParams,
                              _In_ IPortableDeviceValues*  pResults);

    HRESULT OnGetAttributes(_In_ IPortableDeviceValues*  pParams,
                            _In_ IPortableDeviceValues*  pResults);

    HRESULT OnDelete(_In_ IPortableDeviceValues*  pParams,
                     _In_ IPortableDeviceValues*  pResults);

private:

    FakeDevice* m_pFakeDevice;
};

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