| 255 | } |
| 256 | |
| 257 | bool PropertySystem::GetPropertyType(unsigned index, VARTYPE& vt) const |
| 258 | { |
| 259 | if (index >= m_keys.size()) |
| 260 | return false; |
| 261 | bool result = false; |
| 262 | IPropertyDescription* ppd = nullptr; |
| 263 | if (SUCCEEDED(PSGetPropertyDescription(m_keys[index], IID_PPV_ARGS(&ppd)))) |
| 264 | { |
| 265 | if (SUCCEEDED(ppd->GetPropertyType(&vt))) |
| 266 | result = true; |
| 267 | ppd->Release(); |
| 268 | } |
| 269 | return result; |
| 270 | } |
| 271 | |
| 272 | String PropertySystem::FormatPropertyValue(const PropertyValues& values, unsigned index) |
| 273 | { |
no test coverage detected