CloseHandle()

Purpose
CloseHandle closes a handle and the object associated with that handle.
 
Library Transcribed by Date of page Updated on
Kernel32.dll J.Paris 21.03.03  
 
Restrictions on use
none
 
Declare 32-bit

Declare Function CloseHandle Lib "kernel32.dll" (

   ByVal hObject As Integer

   ) As Integer

Required Type definition
 
 
Parameters

hObject 

A handle to the object to close.

 
Return value
If the function succeeds, the return value is non zero
If the function fails, the return value is zero. To get extended error information, call GetLastError. 
 
Example
 
 
Comments
 
See also