CloseHandle ()
From ISXKB
This article shows how to use the Windows API function CloseHandle with Inno Setup.
Declaration
The following declaration is required in a [Code] section:
function CloseHandle (hHandle: INTEGER): INTEGER; external 'CloseHandle@kernel32.dll stdcall';
This could be used as well, and it probably looks more natural:
function CloseHandle (hHandle: THandle): Boolean; external 'CloseHandle@kernel32.dll stdcall';