diff options
| author | Dave Wilson <[email protected]> | 2015-03-17 19:50:07 -0700 |
|---|---|---|
| committer | Dave Wilson <[email protected]> | 2015-03-17 19:50:07 -0700 |
| commit | 97cf5197cf5b882b2c689d8dc2b555f2edf8f418 (patch) | |
| tree | 46f3701832d70b420eb0fc0eb93261f9da45db3f /wpd/WpdServiceSampleDriver/WpdService.h | |
| parent | ef1905bf1e8825bb31120dfb27e0daf3154d859a (diff) | |
Initial publish
Diffstat (limited to 'wpd/WpdServiceSampleDriver/WpdService.h')
| -rw-r--r-- | wpd/WpdServiceSampleDriver/WpdService.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/wpd/WpdServiceSampleDriver/WpdService.h b/wpd/WpdServiceSampleDriver/WpdService.h new file mode 100644 index 00000000..0e28eadf --- /dev/null +++ b/wpd/WpdServiceSampleDriver/WpdService.h @@ -0,0 +1,30 @@ +#pragma once + +class WpdService +{ +public: + WpdService(); + virtual ~WpdService(); + + HRESULT Initialize(_In_ FakeDevice* pDevice); + + HRESULT DispatchWpdMessage( + _In_ REFPROPERTYKEY Command, + _In_ IPortableDeviceValues* pParams, + _In_ IPortableDeviceValues* pResults); + +private: + HRESULT OnGetServiceObjectID( + _In_ LPCWSTR pszRequestFilename, + _In_ IPortableDeviceValues* pParams, + _In_ IPortableDeviceValues* pResults); + + HRESULT CheckRequestFilename( + _In_ LPCWSTR pszRequestFilename); + +private: + WpdServiceMethods m_ServiceMethods; + WpdServiceCapabilities m_ServiceCapabilities; + FakeContactsService* m_pContactsService; +}; + |
