Comments

: How can I (in Windows) get the name of the process owner of an : "shared read-only" open file ?: : I have a file opened by another application; I need to know the name : (or anything) of the application which has opened the file; and if : it is shared read-only.: : Thanks in advance,:

i hope what u mean is about knowing which program is opening the specified file during runtime.if so i can help u

method 1. look for the registry hkey class root for determining the default application(path) which handles the specified extention.

method2. look for the interrupt address for the handle of the application which has currently running.(short cut)actually very risky(may affect the program)but the best method.