WinAPI函数替换文件但保留文件信息
我记得有一个 WinAPI 函数复制了前一个文件的“修改日期”属性,并用它或类似的东西替换了它?也许有人可以告诉我这件事吗?
当您非常频繁地使用该功能时,就会出现此问题。
I remember there was a WinAPI function which copied the "date modified" property of the previous file which was replaced with it or something like that? Perhaps anyone can tell me about it?
The problem occured when you used that function very frequently.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是 ReplaceFile(Windows 2000 和向上):
This is ReplaceFile (Windows 2000 and up):
不太清楚你到底想要什么,但似乎你之后
SetFileTime
进行编辑,GetFileTime
进行复制,将两者结合起来,您可以完全按照“描述/想要”进行操作Not too clear exactly what you want, but it seems your after
SetFileTime
to edit andGetFileTime
to copy, combining the two you can do exactly as 'described/wanted'