How do I know who is locking the file in my C++ codes ?
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.