'is there any way to find which process created a file in windows c++?

Ultimately I'm trying to get the process id of the program which created a new file.

For example: if I install a application through an installer and when new files are created I want to know the process ID of the Installer which created the new files.



Sources

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

Source: Stack Overflow

Solution Source