using window's handle or process id to get the path from an opened file.

Printable View