How to check what process opened a file?

  • Thread starter Thread starter Alexander Gumenniy
  • Start date Start date
A

Alexander Gumenniy

Guest
Hello

How to check from C++ in what process the file is opened? I am interested in Win7,8,10

I would like to implement this

https://www.howtogeek.com/289333/how-to-tell-which-application-is-using-your-windows-pcs-webcam/

I have already got camera, from camera I got Physical Device Object name. I checked in Process Explorer handles of process and found out that \Device\0000004d is file.

How to check in what process the file \Device\0000004d is opened?

Is it possible to determine by the file name the process that opened this file?

Or I need to enumerate all the processes in system?

Thanks

Continue reading...
 
Back
Top