?
Solved

File saving filter?

Posted on 2000-04-25
6
Medium Priority
?
160 Views
Last Modified: 2010-04-04
I want to restrict some kind of files to be saved on my computer so I think I need something like a driver which listens to some kind of windows message and if I detect that a someone is trying to save a restricted file (for example an MP3 file) my driver musn't let him do it. I don't want to monitor if someone already has done that. I want to prevent the writing process to the disk.
0
Comment
Question by:rbasurto
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 3

Expert Comment

by:f15iaf
ID: 2748635
add
   uses clipbrd;
and write this procedure in ontimer event in Ttimer object


procedure TForm1.Timer1Timer(Sender: TObject);
var
        f:pchar;
begin
        getmem(f,50);
        clipboard.GetTextBuf(f,50);
        {check if f is a filename,if it's a filename check extention}
        {sometimes clipboard contains other text messages not necesary file}
end;
0
 
LVL 3

Expert Comment

by:f15iaf
ID: 2748645
it's only works when user do copy and paste option in windows 98
0
 
LVL 6

Expert Comment

by:DrDelphi
ID: 2748651
in NT/W2K you could use ReadDirectoryChangesW to check for new files by dir and kill them when saved. Unfortunatly, I am not aware of a like method for W9x.


0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 1

Accepted Solution

by:
joseph_schuler earned 400 total points
ID: 2748741
Check out File System API Hook and FileSystemApiHookFunction in the MSDM Library (Win 95 DDK).  The only gotcha is that from reading the docs the hook would need to be implemented in a VXD because you usually needs to be in ring 0.  IFSMGR_InstallFileSystemApiHook exists in the Windows 98 DDK but it also relys on Ring 0 code.  Unfortunately Delphi currently does not support generation of VXD's
0
 
LVL 1

Expert Comment

by:BlackDeath
ID: 2750636
there's a free component "dirmon" from francoise piette


http://www.rtfm.be/fpiette/indexuk.htm

i suggest you check that out cause it's really good and fits your needs perfectly.

regards,

BlackDeath.
0
 
LVL 1

Expert Comment

by:BlackDeath
ID: 2750637
ok, here's the direct link to the download:

http://sme.belgium.eu.net/~vip107/dirmon.zip
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question