CloseHandle ()

From ISXKB

Revision as of 00:03, 25 December 2007 by Markus (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
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: