ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
Scanning removable drives when they are mounted?
Nik777


Joined: 21 Jul 2006
Posts: 0
Reply with quote
Hi,

I posted this question in the FAQ thread, but I'm not sure if anyone reads that anymore.

I'm not looking for on-demand scanning as such - I just want a removable media (CD, UBSdisk, floppy, etc) scanned when the media is inserted (mounted).

Does anyone know of a way to do this with the current system?


All comments and suggestions welcome!

Cheers!
Nik.
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 0
Reply with quote
I did read your post, there is no way of doing that with current system. we may include it in version 1.1
View user's profileSend private message
Nik777


Joined: 21 Jul 2006
Posts: 0
Reply with quote
Hi Alch,

Thanks for your response.

Do you know of any code out there I could look at that detects new disk mounts in WIndows? I would happily build a small service that does this and just calls ClamWin when needed.


Cheers!
Nik.
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 0
Reply with quote
take a look here for a user-mode code:
https://www.codeproject.com/shell/shchangenotifyregister.asp
View user's profileSend private message
Nik777


Joined: 21 Jul 2006
Posts: 0
Reply with quote
Awesome - thanks!

I've found some other code for determining if a disk is removable or not, so hopefully I can come up with something quite quickly.

On a different, but related topic: is there a reason why there is no service to run ClamWin? It seems that the scheduled scans don't always take place if the machine is logged out. I was considering writing code to run ClamWin as a service. Is there something I should know before attempting this?


Cheers!
Nik
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 0
Reply with quote
we have a service for version 1 and the use Windows Task Scheduler for all tasks so it would run user-less. You can check the clamwind-prototype code in the svn.
View user's profileSend private message
tommyrot


Joined: 11 Dec 2006
Posts: 0
Reply with quote
Just curious about whether you had any luck with this one? I'm interested in doing exactly the same thing and thought I'd see if you'd managed to create a service that'll do it?
View user's profileSend private message
Scanning removable drives when they are mounted?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic