The Modules list box in WinWatch lists each executable file currently running in the system. The main executable (EXE) appears in the list along with all the dynamic link library (DLL), font (FON), and custom control (OCX) files.
WinWatch calls the RefreshModuleList sub, which calls CreateModuleList to create the list of modules. These procedures look a lot like RefreshProcessList and CreateProcessList, so I won’t show the code. The biggest difference is that both procedures take a process ID parameter so that they can create the module list for that process.