Sunday, October 28, 2007

CodeGuru: Who's Locking? v1.3 - WhoSLocking

CodeGuru: Who's Locking? v1.3

see also:
Handle v3.30, By Mark Russinovich, Published: October 15, 2007
http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/Handle.mspx

Environment: VC6 SP3, NT4 SP5, Windows 95, Windows 98

Have you ever tried to copy a DLL and had an "Access Denied" or "Shared Violation" error? Did you have to reboot everytime you needed to upgrade a DLL?

If yes, this program is for you!

Who'sLocking? is a a devpt/system management tool to find which process is locking a DLL.

Whenever a process loads a module (DLL), it locks the DLL and no other process can delete and/or write in it: you get "Sharing Violation" errors (or "Access Denied").

Once you know the name of the process who's locking your DLL, you can stop this process and have full access to the DLL module. There's no need to reboot your system anymore...


PROGRAM FEATURES


INSTALLATION

The program registers itself in the Windows Shell when you start it the first time.


USAGE

To use this program:


IMPLEMENTATION

The WhoSLocking program uses a several C++ class from my Simple Library:

  • CSimpleProcessAPI: builds process/module list, finds the process who's locking a module and terminates the process.
    This class is reusable (no GUI stuff in it) and runs on both Windows NT and Windows 98. Please refer to the CSimpleProcessAPI.html file for more details.
  • CServiceManager: stops the Windows NT Service.
    This class is reusable but runs only on Windows NT. Please refer to the CServiceManager.html file for more details.
  • CWindowsRegistry: Easier access to the Windows Registry.
    Please refer to the CWindowsRegistry.html file for more details.

Downloads

Download runtime - 99 Kb
Download source - 105 Kb