From 24f280dc4a700f00f5fbb8f13815b941620adb8e Mon Sep 17 00:00:00 2001 From: zlockard Date: Wed, 31 Jan 2024 13:45:54 -0800 Subject: Fixes for sample build errors and updates to the execution script to use new build flags (#1078) * Fixes for sample build errors * Fix additional sample * Add additional sample * Updated comments in Build-Sample.ps1 * Adjusting exclusions.csv to be accurate for GE. Still issues for NI that we need to understand better * Merge from develop branch * Merge from develop branch * Merge from develop branch * Delete WPD samples * Separate infverif additional options for old vs new WDK * Delete WPD samples entry in our CODEOWNERS file * Fix spelling error * For 22621 WDK Remove the /samples flag --------- Co-authored-by: Zac Lockard Co-authored-by: Jakob Lichtenberg (170957) --- wpd/WpdServiceSampleDriver/FakeContactContent.h | 77 ------------------------- 1 file changed, 77 deletions(-) delete mode 100644 wpd/WpdServiceSampleDriver/FakeContactContent.h (limited to 'wpd/WpdServiceSampleDriver/FakeContactContent.h') diff --git a/wpd/WpdServiceSampleDriver/FakeContactContent.h b/wpd/WpdServiceSampleDriver/FakeContactContent.h deleted file mode 100644 index 1b2d8dfb..00000000 --- a/wpd/WpdServiceSampleDriver/FakeContactContent.h +++ /dev/null @@ -1,77 +0,0 @@ -#pragma once - -/** - * This class represents an abstraction of a contact content object - * Driver implementors should replace this with their own - * device I/O classes/libraries. - */ - -class FakeContactContent : public FakeContent -{ -public: - FakeContactContent() - { - Format = FORMAT_AbstractContact; - ContentType = WPD_CONTENT_TYPE_CONTACT; - RequiredScope = CONTACTS_SERVICE_ACCESS; - CanDelete = true; - VersionIdentifier = 0; - } - - FakeContactContent(const FakeContactContent& src) - { - *this = src; - } - - ~FakeContactContent() - { - } - - FakeContactContent& operator= (const FakeContactContent& src) - { - FamilyName = src.FamilyName; - GivenName = src.GivenName; - VersionIdentifier = src.VersionIdentifier; - - return *this; - } - - HRESULT GetValue( - _In_ REFPROPERTYKEY Key, - _In_ IPortableDeviceValues* pStore); - - HRESULT WriteValue( - _In_ REFPROPERTYKEY Key, - _In_ REFPROPVARIANT Value); - - HRESULT GetPropertyAttributes( - _In_ REFPROPERTYKEY Key, - _In_ IPortableDeviceValues* pAttributes); - - HRESULT GetSupportedProperties( - _In_ IPortableDeviceKeyCollection* pKeys); - - HRESULT WriteValues( - _In_ IPortableDeviceValues* pValues, - _In_ IPortableDeviceValues* pResults, - _Out_ bool* pbObjectChanged); - -private: - void UpdateVersion(); - -public: - // Custom properties defined by the contacts service - CAtlStringW FamilyName; - CAtlStringW GivenName; - -private: - // Indicates whether the object has been updated - DWORD VersionIdentifier; -}; - -HRESULT GetSupportedContactProperties( - _In_ IPortableDeviceKeyCollection* pKeys); - -HRESULT GetContactPropertyAttributes( - _In_ REFPROPERTYKEY Key, - _In_ IPortableDeviceValues* pAttributes); -- cgit v1.3.1