Revision as of 13:56, 10 November 2007 by Markus (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

PSVince is a DLL to detect if a module is loaded in memory. It's based on this MSKB article

MSKB 175030 How To Enumerate Applications Using Win32 APIs

It is possible to download the DLL, a sample how to use it, and the source code 20KB

If you don't need to support Win9X or WinNT it is possible to use just code to detect if an exe is running How to detect if an application is running with code.

Essential code to use PSVince in Inno Setup.

Source: psvince.dll; Flags: dontcopy

function IsModuleLoaded(modulename: String ):  Boolean;
external 'IsModuleLoaded@files:psvince.dll stdcall';

function InitializeSetup(): Boolean;

  Result := Not IsModuleLoaded( 'notepad.exe' );


See also

Personal tools