[python-win32] Finding DLL's which are in use (loaded)

niki niki at vintech.bg
Thu Apr 8 10:05:55 CEST 2010


Tony Cappellini wrote:
> I need to write a program which copies some dlls from one location to
> another. However, if any applications which use these dll's are
> running,
> Windows won't let the dll copy complete, until the apps which have the
> dlls loaded have terminated.
> I'm looking for a way to scan/probe to see if any apps are running
> which have these dll's loaded.
> How would I go about this with Python ?

test = win32file.CreateFile(f, win32con.DELETE, 0, None, 
win32con.OPEN_EXISTING, 0, None)

HTH

Niki


More information about the python-win32 mailing list