Click here to Skip to main content
15,884,094 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to track all computer drives for user activities on computer drive by using FileSystemWatcher class but now my problem is that any file operation due to any reason means by any software or any system update is also traced by this class but i want to track only activity where user comes in picture.
Posted
Updated 17-Dec-14 18:08pm
v2

1 solution

I hope you are aware that all human interaction with a computer always boils down to being a piece of software telling your binary friend what to do. The software may run under different accounts, but once a user logs on all his actions are carried out under the authorization of the account he logged on with, disregarding impersonization here for the sake of simplicity.
Everything he does to a file through the explorer or an editor or any software started under his account will be undistinguishable from one another in regard to the originator of said action.
One could imagine writing an explorer extension that would take note of a users action in the explorer, but that could be faked by a program that would remote control the explorer, be it by manipulating the windows message queue or by simulating mouse clicks and key strokes via api calls. This would add a special twist as that program could run under a different account, but it would seem to the system as if the user had initiated these actions.

Regards,
Manfred
 
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