While deleting some files on windows XP, I get this message
"Deleting this File Will Make some Programs not Work"
I want to know weather I can produce a particular message, like above, when a file gets deleted.

(May be I need to monitor certain files using hook, and when the hook notifies me of their deletion, I show a messagebox like above. But I want to know how "windows" do it).
Posted on 2008-05-16 01:43:45 by shakuni
It's enough if you add particular file's or folder's path to to the registry. The file is then "installed" and Windows warns users trying to delete such file/folder. I don't remember which key it is, though.
Posted on 2008-05-16 07:47:55 by ti_mo_n