File: processes.txt

package info (click to toggle)
dnssec-trigger 0.17%2Brepack-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,896 kB
  • sloc: ansic: 18,697; sh: 977; makefile: 494; xml: 444; objc: 421; cpp: 18
file content (122 lines) | stat: -rw-r--r-- 3,021 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
----------------------------------------------------------------
----------------------------------------------------------------
Processes (Processes.dll)
Version:	1.0.0.1
Release:	12.december.2004
Description:Nullsoft Installer (NSIS) plug-in for managing?! 
			Windows processes.

Copyright:	 2004 Hardwired. No rights reserved.
			There is no restriction and no guaranty for using
			this software.

Author:		Andrei Ciubotaru [Hardwired]
			Lead Developer ICode&Ideas SRL (http://www.icode.ro)
			hardwiredteks@gmail.com, hardwired@icode.ro

----------------------------------------------------------------
----------------------------------------------------------------
INTRODUCTION

	The Need For Plug-in - I need it for the one of my installers.
	
	Briefly: Use it when you need to find\kill a process when
installing\uninstalling some application. Also, use it when you 
need to test the presence of a device driver.


SUPPORT
	
	Supported platforms are: WinNT,Win2K,WinXP and Win2003 Server.


DESCRIPTION

	Processes::FindProcess <process_name.exe>
	
		Searches the currently running processes for the given
		process name.
		
		return:	1	- the process was found
				0	- the process was not found
	
	Processes::KillProcess <process_name.exe>
	
		Searches the currently running processes for the given
		process name. If the process is found then the it gets
		killed.
		
		return:	1	- the process was found and killed
				0	- the process was not found or the process
						cannot be killed (insuficient rights)
	
	Processes::FindDevice <device_base_name>
	
		Searches the installed devices drivers for the given
		device base name.
		(important: I said BASE NAME not FILENAME)
		
		return:	1	- the device driver was found
				0	- the device driver was not found
				

USAGE

	First of all, does not matter where you use it. Ofcourse, the
routines must be called inside of a Section/Function scope.

	Processes::FindProcess "process_name.exe"
	Pop $R0
 
	StrCmp $R0 "1" make_my_day noooooo
	
	make_my_day:
		...
	
	noooooo:
		...
		
	
	Processes::KillProcess "process_name.exe"
	Pop $R0
 
	StrCmp $R0 "1" dead_meat why_wont_you_die
	
	dead_meat:
		...
	
	why_wont_you_die:
		...
		

	Processes::FindDevice "device_base_name"
	Pop $R0
 
	StrCmp $R0 "1" blabla more_blabla
	
	blabla:
		...
	
	more_blabla:
		...
		
	
THANKS

	Sunil Kamath for inspiring me. I wanted to use its FindProcDLL
but my requirements made it imposible.

	Nullsoft for creating this very powerfull installer. One big,
free and full-featured (hmmm... and guiless for the moment) mean
install machine!:)

	ME for being such a great coder...
											... HAHAHAHAHAHAHA!
											
ONE MORE THING

	If you use the plugin or it's source-code, I would apreciate
if my name is mentioned.

----------------------------------------------------------------
----------------------------------------------------------------