If I read or write to a file and receive a 33 or 32 error, I would like to log a message containing the name of the other process(es) that have the file opened. There must b
This seems to do what you want.
obviously it uses some hidden API such as NtQueryInformationProcess.
NtQueryInformationProcess