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).
You can use file system filter driver to monitor all file operations. However, in case of Windows message you have mentioned – it rather implemented in the Windows Explorer and you will be able to remove those files through the command line or another file manager.