从minifilter驱动程序中删除文件会导致Microsoft Word中出错 [英] Deleting a file from a minifilter driver causes errors in Microsoft word

查看:107
本文介绍了从minifilter驱动程序中删除文件会导致Microsoft Word中出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 
$


我使用minifilter驱动程序来控制将文件复制到可移动设备中。当用户执行复制&粘贴到USB设备,创建一个0kb文件,并显示一条警告消息"Continue"。和"取消"选项显示。在
上选择"继续"文件被复制。选择"取消"后,在FltSetInformationFile函数中设置FILE_DISPOSITION_INFORMATION并删除0kb文件。



复制&粘贴文件对我来说正常。问题出现在我b

1.打开word文档



2.做一个"保存作为"并选择USB设备作为目的地。



3.显示我的警告信息,当"取消"时选中,显示以下错误。



"由于文件权限错误,Word无法完成保存。('驱动器号:\ filename.doc')



"检查驱动器以确保门已关闭且包含正确的磁盘或CD。"



有人可以帮我解决这个问题。当"另存为"时,Microsoft Word是否期望返回值取消了?



解决方案

嗨Pavan,


问题 "由于文件权限错误,Word无法完成保存"似乎不是由编程造成的。您可以尝试以下链接,看看是否可以解决。

https://social.technet.microsoft.com/Forums/office/en-US/120954a8-b548-44fc-959d-cec351f57d51/ word-can-complete-the-save-due-to-a-file-permission-error?forum = word


问候,



Hi, 

I am using minifilter driver to control copying of files into removable devices. When the user performs copy & paste to a USB device, a 0kb file is created and a warning message with "Continue" and "Cancel" options are displayed. On selecting "Continue" file is copied. Upon selecting "Cancel", FILE_DISPOSITION_INFORMATION is set in FltSetInformationFile function and the 0kb file is deleted.

Copying & pasting of files works correctly for me. The problem appears when I

1. Open a word document

2. Do a "Save As" and select USB device as destination.

3. My warning message is displayed and when "Cancel" is selected, following errors are displayed.

"Word cannot complete the save due to a file permission error.('Drive letter:\filename.doc')

"Check the drive to make sure the door is closed and it contains the correct disk or CD."

Can someone help me with this issue. Is Microsoft Word expecting a return value when a "Save As" is cancelled ?


解决方案

Hi Pavan,

The issue "Word cannot complete the save due to a file permission error" seems not be caused by programming. Can you try the following link to see whether it can be solved. https://social.technet.microsoft.com/Forums/office/en-US/120954a8-b548-44fc-959d-cec351f57d51/word-cannot-complete-the-save-due-to-a-file-permission-error?forum=word

Regards,


这篇关于从minifilter驱动程序中删除文件会导致Microsoft Word中出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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