'How to check if a file was deleted from a certain folder? (C++ 17)

So I've been trying to make a program that detects file deletions, Lets say you delete a file from your desktop it will flag the name and the directory it will delete it from. Im trying to find a way to detect files deleted from prefetch or anything like that any solutions?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source