﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1053	The computer hangs for a while when used DllCallbackRegister()	Yashied		"The computer hangs for a while (from several seconds or more), if any key is holding down when clicking on the Close, Minimize, Maximize, or Help buttons.

{{{
#Include <WinAPI.au3>

Global $hProc = DllCallbackRegister('_MyHook', 'long', 'int;wparam;lparam')
Global $hHook = _WinAPI_SetWindowsHookEx($WH_KEYBOARD_LL, DllCallbackGetPtr($hProc), _WinAPI_GetModuleHandle(0), 0)

GUICreate('Bug')
GUICtrlCreateLabel('Hold down any key and then click mouse on the close button.', 50, 20)
GUISetState()

Do
Until GUIGetMsg() = -3

Func _MyHook($iCode, $wParam, $lParam)
	Return _WinAPI_CallNextHookEx($hHook, $iCode, $wParam, $lParam)
EndFunc   ;==>_MyHook

Func OnAutoItExit()
	ConsoleWrite('Call _WinAPI_UnhookWindowsHookEx()' & @CR)
	_WinAPI_UnhookWindowsHookEx($hHook)
EndFunc   ;==>OnAutoItExit
}}}
"	Bug	closed		AutoIt	3.3.0.0	None	No Bug		
