Hi I would like to know/steps how to get the filename opened from the process using windows api C/C++ .
For example If I have opened Text1.txt , Text2.txt and Text3.txt files.. they have 3 process running in background with executables named Notepad.exe.
how can I retrieve filenames with absolute paths of "Text1.txt" ,"Text2.txt","Text3.txt"? using GetCurrentProcess() / GetCurrentProcessId()/ by any other functions..
Note: Filenames are dynamic