FindProcDLL plug-in: Difference between revisions
No edit summary |
Nicholaswang (talk | contribs) (→Links) |
||
Line 8: | Line 8: | ||
Optimized by size binaries of FindProcDll and KillProcDll are available here: | Optimized by size binaries of FindProcDll and KillProcDll are available here: | ||
<attach>KillProcDll&FindProcDll.zip</attach> | <attach>KillProcDll&FindProcDll.zip</attach> | ||
------------------ | |||
From Nicholas Wang (njwdm@163.com) | |||
Current Release for unicode edition: 2009-11-13 | |||
Download: For-NSIS-Unicode | |||
== Introduction == | == Introduction == |
Revision as of 03:39, 13 November 2009
Author: Iceman_K (talk, contrib) |
FindProcDLL ©2003 by iceman_k (Sunil Kamath), based upon the FIND_PROC_BY_NAME function written by Ravi Kochhar (http://www.physiology.wisc.edu/ravi/)
Links
FindProc.zip (24 KB)
Optimized by size binaries of FindProcDll and KillProcDll are available here: KillProcDll&FindProcDll.zip (3 KB)
From Nicholas Wang (njwdm@163.com)
Current Release for unicode edition: 2009-11-13 Download: For-NSIS-Unicode
Introduction
This plugin provides the ability to check if any process running just with the name of its .exe file.
FindProc "process_name.exe"
The return code is stored in the $R0 variable.
The return codes are as follows:
- 0 = Process was not found
- 1 = Process was found
- 605 = Unable to search for process
- 606 = Unable to identify system type
- 607 = Unsupported OS
- 632 = Process name is invalid
Usage
Just copy the 'FindProcDLL.dll' in your NSIS plugins directory, and call the function with one of the two suggested syntax in the NSIS documentation:
FindProcDLL::FindProc "process_name.exe"
OR
; Pre 2.0 syntax SetOutPath $TEMP GetTempFileName $8 File /oname=$8 FindProcDLL.dll Push "process_name.exe" CallInstDLL $8 FindProc
$R0 will then hold the return value.
Copyright
The original source file for the FIND_PROC_BY_NAME function is included in this distribution. The file name is: exam38.cpp, and it MUST BE in this zip file. Other than that, you may use or modify this source code as you wish in any of your projects. However, you MUST include this file as well as the exam38.cpp file if you are distributing the original or modified source to anyone or anywhere.
Thanks
Ravi for the FIND_PROC_BY_NAME function. DITMan for his KillProcDLL_Manual Manual NSIS Plugin which inspired this plugin.