nsisFirewall 1.2 -- һСɼ򵥵Windowsǽ
վ: http://wiz0u.free.fr/prog/nsisFirewall
---------------------------------------------------------

ʹnsisFirewallִ :
- ӦóWindowsǽб
- WindowsǽƳбеӦ


÷
-----
nsisFirewall::AddAuthorizedApplication "<Ӧó·>" "<>"
nsisFirewall::RemoveAuthorizedApplication "<Ӧó·>"

<Ӧó·> ҪȨӦó·
	 (ܴ)

<> ڷǽбʾ
	б


ֵ
------------

Ӷջз2ֵ
ܵ״̬:
	0:  ɹ
	<0:  (ֵһHRESULT룬MSDNϵϢ)
	>0: ״̬ᱻ (ȷHRESULTǳɹ)


ʼ
-----
1) İװԹԱȨУnsisFirewall
2) ӦAddAuthorizedApplicationءҲļHRESULTûаװϵͳ֮ǰ* *nsisFirewall
3) RemoveAuthorizedApplicationسɹʹӦóб
4) ڴ£㽫Ҫ鷵ֵҪ
5) СFIREWALL.CPLʾǽ
6) ӦMSVC 6.0ʹMSVCRT.DLLΪıʱDLL޷ʹĿϵͳ

ʾű
--------------

	; Ӽ±ǽȨб
	nsisFirewall::AddAuthorizedApplication "$WINDIR\Notepad.exe" "nsisFirewall Test"
	Pop $0
	IntCmp $0 0 +3
		MessageBox MB_OK "ǽбзһresult=$0"
		Return
	MessageBox MB_OK "ӵǽб"

	; ӷǽȨбɾ±
	nsisFirewall::RemoveAuthorizedApplication "$WINDIR\Notepad.exe"
	Pop $0
	IntCmp $0 0 +3
		MessageBox MB_OK "Ƴǽбʱһresult=$0"
		Return
	MessageBox MB_OK "ӷǽбƳɹ"

汾ʷ¼
---------------
1.2 : added a Unicode-NSIS version (nsisFirewallW) -- Thanks to Guilherme B. Versiani
1.1 : Correctly handle 2 errors cases
1.0 : First release


Э
-------
Copyright (c) 2007-2009 Olivier Marcoux

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

    1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.

    2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.

    3. This notice may not be removed or altered from any source distribution.
