Does anyone know how to make a real time scanner in C? Like what they used on anti virus
Real time scanner on C
Started by vallenoire, Feb 27 2010 09:42 AM
7 replies to this topic
#1
Posted 27 February 2010 - 09:42 AM
|
|
|
#2
Posted 28 February 2010 - 01:46 PM
#3
Posted 01 March 2010 - 08:00 AM
Thanks for replying ^^
I'm working on some mp3 monitoring system
so that everytime the operator plays a mp3 music file with any player (winamp, wmp, etc) the data will be recorded to the database and at the end of the month, the owner will get a report, summarizing the most played mp3 files.
The owner also wants some records when the operator changing the properties of the files like names, moving it to other directory, etc
I'm working on some mp3 monitoring system
so that everytime the operator plays a mp3 music file with any player (winamp, wmp, etc) the data will be recorded to the database and at the end of the month, the owner will get a report, summarizing the most played mp3 files.
The owner also wants some records when the operator changing the properties of the files like names, moving it to other directory, etc
#4
Posted 01 March 2010 - 06:39 PM
I got everything but CC crashed before I could post it. I'll put it together again tomorrow, as I don't have time today anymore.
sudo rm -rf /
#5
Posted 02 March 2010 - 12:53 PM
Quote
I'm working on some mp3 monitoring system
so that everytime the operator plays a mp3 music file with any player (winamp, wmp, etc) the data will be recorded to the database and at the end of the month, the owner will get a report, summarizing the most played mp3 files.
so that everytime the operator plays a mp3 music file with any player (winamp, wmp, etc) the data will be recorded to the database and at the end of the month, the owner will get a report, summarizing the most played mp3 files.
This is not an example of a real-time application.
#6
Posted 02 March 2010 - 12:55 PM
#7
Posted 02 March 2010 - 10:03 PM
Sorry, I really want to help you, but I don't know how to help.
Good luck!
Good luck!
#8
Posted 02 March 2010 - 10:17 PM
Okay, so you need to do three things:
1) Detecting file moves, renames, etc.:
FindFirstChangeNotification
Use this function on your music directory to set up notifications whenever the user writes files in, moves files, renames them, and so on.
2) Detecting when files are read by a music player...that's going to be tough to do in real time. You can look here to see how to enumerate all open files, find the names of all the processes, filter out the ones you don't want to get to winamp, etc., and then check their file handles to see what they're looking at.
1) Detecting file moves, renames, etc.:
FindFirstChangeNotification
Use this function on your music directory to set up notifications whenever the user writes files in, moves files, renames them, and so on.
2) Detecting when files are read by a music player...that's going to be tough to do in real time. You can look here to see how to enumerate all open files, find the names of all the processes, filter out the ones you don't want to get to winamp, etc., and then check their file handles to see what they're looking at.
sudo rm -rf /


Sign In
Create Account

Back to top









