January 1, 2005

WinTask - GetLastError

'
' GetLastError
'
' Author: Joe Strazzere
'

handle = -1
b=External("kernel32","CloseHandle", handle)
a=External("kernel32","GetLastError",0)
' note: error 6 = Invalid Handle
msgbox(Str$(a))