如何读取和写入扩展窗户Win32文件属性 [英] How to read and write extended windows file attributes with win32

查看:219
本文介绍了如何读取和写入扩展窗户Win32文件属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Windows文件中嵌入一些元数据。

I would like to embed some meta data in a windows file.

我碰到了扩展文件属性,我相信被用于这个目的的概念。例如,摄像头名的JPG文件,在安飞士插曲名。

I came across the concept of extended file attributes, which I believe are used for this very purpose. For example, camera name in jpgs, episode name in avis.

除了一些非常模糊的非记录的内核API,我找不到如何在C / C ++使用Win32 API做到这一点。

Apart from some very obscure non-documented kernel APIs, I cannot find how to do this in c/c++ using the win32 api.

有没有人做过这件事?

先谢谢了。

推荐答案

扩展属性的文件系统的属性,即NTFS。与JPEG文件和AVI文件相关联的标签都存储在文件中。在Win32 API的将只提供您与EA的从文件系统,而不是嵌入在文件中的人。你必须寻找到第三方库检索嵌入的属性。

Extended Attributes are a property of the filesystem, i.e. NTFS. The tags associated with jpegs and AVIs are stored within the file itself. The Win32 API's will only provide you with the EA's from the filesystem, not the ones embedded within the files. You'll have to look into third-party libraries to retrieve the embedded attributes.

这篇关于如何读取和写入扩展窗户Win32文件属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆