I'm looking for C++ sample code to determine WHO IS LOCKING THE FILE ?
I want to know the process ID of locking specific file.
I know that Process Explorer can do that.
I want to do it in my C++ program.
I guess OpenProcess() and DuplicateHandle() are the key, but I don't know how to implement.
Windows 7 32bit