summaryrefslogtreecommitdiff
path: root/wpd/WpdServiceSampleDriver/FakeStorage.h
diff options
context:
space:
mode:
authorzlockard <[email protected]>2024-01-31 13:45:54 -0800
committerGitHub <[email protected]>2024-01-31 13:45:54 -0800
commit24f280dc4a700f00f5fbb8f13815b941620adb8e (patch)
tree63243812757e456aadf9fb4cbf07277b1d22eccf /wpd/WpdServiceSampleDriver/FakeStorage.h
parentc657bc76ca6cf64660e12efe2d07a100055d98c0 (diff)
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 <[email protected]> Co-authored-by: Jakob Lichtenberg (170957) <[email protected]>
Diffstat (limited to 'wpd/WpdServiceSampleDriver/FakeStorage.h')
-rw-r--r--wpd/WpdServiceSampleDriver/FakeStorage.h76
1 files changed, 0 insertions, 76 deletions
diff --git a/wpd/WpdServiceSampleDriver/FakeStorage.h b/wpd/WpdServiceSampleDriver/FakeStorage.h
deleted file mode 100644
index bb83d683..00000000
--- a/wpd/WpdServiceSampleDriver/FakeStorage.h
+++ /dev/null
@@ -1,76 +0,0 @@
-#pragma once
-
-/**
- * This class represents an abstraction of a storage content object.
- * Driver implementors should replace this with their own
- * device I/O classes/libraries.
- */
-
-#define STORAGE_OBJECT_ID L"123ABC"
-#define STORAGE_CAPACITY_VALUE 1024 * 1024
-#define STORAGE_FREE_SPACE_IN_BYTES_VALUE STORAGE_CAPACITY_VALUE
-#define STORAGE_SERIAL_NUMBER_VALUE L"98765432109876-54321098765432"
-#define STORAGE_OBJECT_NAME_VALUE L"Internal Memory"
-#define STORAGE_FILE_SYSTEM_TYPE_VALUE L"FAT32"
-#define STORAGE_DESCRIPTION_VALUE L"Phone Memory Storage System"
-#define STORAGE_CONTAINER_FUNCTIONAL_OBJECT_ID WPD_DEVICE_OBJECT_ID
-#define STORAGE_TYPE WPD_STORAGE_TYPE_FIXED_ROM
-
-class FakeStorage : public FakeContent
-{
-public:
- FakeStorage()
- {
- ObjectID = STORAGE_OBJECT_ID;
- PersistentUniqueID = STORAGE_OBJECT_ID;
- ParentID = WPD_DEVICE_OBJECT_ID;
- Name = STORAGE_OBJECT_NAME_VALUE;
- ContentType = WPD_CONTENT_TYPE_FUNCTIONAL_OBJECT;
- Format = WPD_OBJECT_FORMAT_UNSPECIFIED;
- FunctionalCategory = WPD_FUNCTIONAL_CATEGORY_STORAGE;
- ContainerFunctionalObjectID = WPD_DEVICE_OBJECT_ID;
- ParentPersistentUniqueID = WPD_DEVICE_OBJECT_ID;
-
- Description = STORAGE_DESCRIPTION_VALUE;
- Capacity = STORAGE_CAPACITY_VALUE;
- FreeSpace = STORAGE_CAPACITY_VALUE;
- SerialNumber = STORAGE_SERIAL_NUMBER_VALUE;
- FileSystemType = STORAGE_FILE_SYSTEM_TYPE_VALUE;
- StorageType = STORAGE_TYPE;
- }
-
- FakeStorage(const FakeContent& src)
- {
- *this = src;
- }
-
- virtual ~FakeStorage()
- {
- }
-
- virtual HRESULT GetSupportedProperties(
- _In_ IPortableDeviceKeyCollection* pKeys);
-
- virtual HRESULT GetValue(
- _In_ REFPROPERTYKEY Key,
- _In_ IPortableDeviceValues* pStore);
-
- virtual HRESULT WriteValue(
- _In_ REFPROPERTYKEY Key,
- _In_ REFPROPVARIANT Value);
-
- virtual HRESULT GetPropertyAttributes(
- _In_ REFPROPERTYKEY Key,
- _In_ IPortableDeviceValues* pAttributes);
-
-public:
- // Standard WPD properties
- CAtlStringW Description;
- CAtlStringW SerialNumber;
- CAtlStringW FileSystemType;
-
- GUID FunctionalCategory;
- ULONGLONG FreeSpace;
- ULONGLONG Capacity;
- DWORD StorageType;
-};