Click here to Skip to main content
15,890,336 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
do i need learn in ring0 or ring3?

i used ReadDirectoryChangesW ,but it did't finger out copyevent.
so neither winapi.

i also use detour,witch is in ring3,but it is so tumultuous.

and filemon```````(i only have a week to finish the job,filemon is so hard )

now what can i do```````help me ,sos!

我需要监控电脑的所有文件操作,
请不要推荐WINAPI --ReadDirectoryChangesW

请不要推荐filemon驱动级
我很简单 就需要钩住 复制和剪切 新建 修改等文件操作

我自己写过键盘钩子和鼠标钩子
但是如何截取 文件操作的消息?
能否给个例子
谢谢了

UPDATE from OP:
i just need to know when the PC's file is copied by others,and write the event in the txt,when a file was added or modified .

i saw a good article :
CDirectoryChangeWatcher - ReadDirectoryChangesW all wrapped up[^]

but when a file was copied,it can't record.
Posted
Updated 5-May-11 19:50pm
v2
Comments
Sergey Alexandrovich Kryukov 6-May-11 1:33am    
Not comprehensible. Relax.
--SA
Smithers-Jones 6-May-11 1:44am    
What does the Chinese part say? Use English, calm down, exactly describe your problem.

if you're looking to watch file and directory changes, have a look at http://msdn.microsoft.com/en-us/library/aa364417(v=vs.85).aspx[^]
 
Share this answer
 
You can use WMI on Windows OS to monitor pretty much everything.

http://msdn.microsoft.com/en-us/library/aa394582%28v=vs.85%29.aspx[^]
 
Share this answer
 
v2
How can anyone know what do you need? Relax, don't get mad. If you panic like that, nothing can help you.

—SA
 
Share this answer
 
to 2:
but for
SQL
Remote replication

when some body use 'mstsc' to link to the PC ,then copy some files,the API takes No records
 
Share this answer
 
thanks to all:
now i find 3 Solutions:

wmi

ssdt

drive

thanks!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900