How to find a file is being used or not?

Hi all
Is there ant NT/Kernel mode routine to find whether a specified file is being used by any application ?

Regards
K.Raju