I know how to display attached modules but how do i check if a file is locked by a dll.

thanks