A method and apparatus for scanning exclusively locked files uses a kernel
mode driver to scan the operating system's table of applications and
identify a handle that owns an exclusive lock for an exclusively locked
file. In one embodiment, the kernel mode driver then copies the handle
and passes the handle over to a handle list of the anti-virus application
requesting access to the exclusively locked file and provides the
anti-virus application with the access handle reference number. Armed
with the access handle reference number for the copied handle, the
anti-virus application can then open the exclusively locked file and scan
the exclusively locked file as it would any other file.