如何在文件打开前进行处理? [英] How do I suppend process before file open?

查看:91
本文介绍了如何在文件打开前进行处理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



这么长时间我已经开始研究如何开启过程befere文件但我没有得到任何好的来源。



所以我想这个...



i在磁盘上有一些文件列表,如果列出的文件上有任何文件打开然后应用程序将暂停进程并将提供一些信息,如PID,FileName,访问应用程序等。



基本架构



一些文件列表

A.doc

B.xls

c.txt



C / C ++结构



查找进程并在启动前暂停并查找进程查找文件

如果查看文件等于一些文件列表然后杀死进程并做feedBack



感谢您的帮助



我是什么尝试过:



i没有解决这个问题

Hello

So long time i have reseach for how to susspend process befere file open but i didnt get any good source for this.

so i want to this...

i have some file list on disk and if any file is opening on the listed file then application will suspend proccess and will give some information as like PID , FileName , Accessing application as like.

Basic schema

Some File List
A.doc
B.xls
c.txt

C/C++ structure

Look for process and suspend before start and find process looking file
if looking file equal Some File List then kill process and do feedBack

thanks for help

What I have tried:

i didnt get any solition for this problem

推荐答案

这是一个文章将显示你如何寻找这个过程,从那里你应该可以做其余的事情

列出使用的文件 [ ^ ]
Here is an article that will show you how to look for the process, from there you should be able to do the rest
Listing Used Files[^]


这篇关于如何在文件打开前进行处理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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