summaryrefslogtreecommitdiff
path: root/wpd/WpdHelloWorldDriver/WpdCapabilities.h
blob: ef2902eff680bb24c9acf3c639f322b5af43ad14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#pragma once

class WpdCapabilities
{
public:
    WpdCapabilities();
    virtual ~WpdCapabilities();

    HRESULT Initialize();

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

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

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

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

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

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

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

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

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

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

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

private:
    HRESULT AddSupportedPropertyKeys(_In_ REFGUID                        guidObjectFormat,
                                     _In_ IPortableDeviceKeyCollection*  pKeys);

    HRESULT GetFixedPropertyAttributesForFormat(_In_ REFGUID                guidObjectFormat,
                                                _In_ REFPROPERTYKEY         Key,
                                                _In_ IPortableDeviceValues* pAttributes);
};