I am trying to delete several files from a directory. Before I start deleting I want to test each file to see if it is open by another progam. What is the api I can use to accomplish this?