Windows API Calls for Powerbuilder 5.0

¹®Á¦

CloseHandle( )

ÇØ°á

The CloseHandle function releases an open object handle. The closest Powerbuilder equivalent is the function Destroy, but it is only used with Powerbuilder created objects.

Global External Function:
FUNCTION boolean CloseHandle(ulong w_handle) LIBRARY "Kernel32.dll"

Script:
boolean rtn
ulong l_handle
l_handle = FindWindowA(0,"<window or object name>") // Usually you would already have the
                                                                             // handle.
rtn = CloseHandle(l_handle)

 

ÂüÁ¶