简体   繁体   English

如何创建属性存储二进制文件

[英]How to create a property store binary file

I'm trying to implement an icon-based property in Windows File Explorer, and my understanding from this post is that it requires returning a property store binary file from the property handler. 我正在尝试在Windows File Explorer中实现基于图标的属性,而根据本文的理解是,它需要从属性处理程序中返回属性存储二进制文件 Does anyone know how to create a property store binary file? 有谁知道如何创建属性存储二进制文件? After searching, I've come across some documentation on the specification, but I don't see any examples of how to create one. 搜索之后,我遇到了有关该规范的一些文档 ,但是没有看到有关如何创建该规范的任何示例。 Thank you very much. 非常感谢你。

You don't need any binary file , you just need an implementation of IPropertyStore . 您不需要任何二进制文件 ,只需要IPropertyStore的实现。 You can create one using the PSCreateMemoryPropertyStore method. 您可以使用PSCreateMemoryPropertyStore方法创建一个。

IPropertyStore *ps;
if (SUCCEEDED(PSCreateMemoryPropertyStore(IID_PPV_ARGS(&ps))))
{
    // do your work
    ps->Release();
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM