In the example provider component, an example of a property cache implementation can be found in cprops.cpp. Supported methods are listed in the following table.
| Method | Description |
|---|---|
| CPropertyCache::addproperty | Extend the property cache by adding a new one. |
| CPropertyCache::updateproperty | Look up the property, free its contents, and use new values instead; then mark the cache changed for this property. |
| CPropertyCache::findproperty | Look up this property by name; save its index. |
| CPropertyCache::getproperty | Find the property in the cache if available, otherwise call GetInfo. Set the index and copy in the new values. |
| CPropertyCache::putproperty | Find the property. Free what was there and put in new values. |
| CPropertyCache::CPropertyCache | Standard constructor. |
| CPropertyCache::~CPropertyCache | Standard destructor. |
| CPropertyCache::createpropertycache | Create the cache. |
| CPropertyCache::unboundgetproperty | Find the property in the cache and set it to these values. |
| CPropertyCache::SampleDSMarshallProperties | Marshal property data and values. |
| CPropertyCache::marshallproperty | Marshal a property. |
| CPropertyCache::SampleDSUnMarshallProperties | Unmarshal property data and values. |
| CPropertyCache::unmarshallproperty | Unmarshal a property. |
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
