CloseHandle ()

From ISXKB

Jump to: navigation, search

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';

CloseHandle () at MSDN

Personal tools
Ads: