开发者

System watcher in VB.net or C#.net

开发者 https://www.devze.com 2023-02-22 03:26 出处:网络
I want to write a simple program, which should inform me before any files getting open (like as User account control in Windows Vista or Windows 7). I came to know that all antiviruses use this techni

I want to write a simple program, which should inform me before any files getting open (like as User account control in Windows Vista or Windows 7). I came to know that all antiviruses use this technique to detect viruses before they are affecting the system. My program must ask me as "Are you allow this file to run?" and allow it if I allow otherwise terminate the file. Please help me and I kindly expect the sample code in VB.Net or C#.Net.

Please accept my apologize for 开发者_开发技巧my poor language and thanks in advance.


This is not possible in VB.NET or C#, without the help of external code.


You want to hook into Process Monitor... here is the code you will need to do that: Easy Hook into ProcessMonitor

To prove that EasyHook really makes hooking simple, look at the following demo application, which will log all file accesses from a given process.

0

精彩评论

暂无评论...
验证码 换一张
取 消