#include <WindowsConstants.au3>
#include <BlockInputEx.au3>
$hDll = DllOpen("WinLockDll.dll")
$Form1 = GUICreate("", @DesktopWidth, @DesktopHeight, 0, 0, $WS_POPUP, $WS_EX_TOPMOST)
GUISetBkColor(0x000000)
$Form2 = GUICreate("", 500, 400, -1, -1, $WS_POPUP, $WS_EX_TOPMOST, $Form1)
$Button1 = GUICtrlCreateButton('Разблокировать', 100, 100)
GUISetState(@SW_SHOW, $Form1)
GUISetState(@SW_SHOW, $Form2)
WinSetTrans($Form1, '', 100)
_BlockInputEx(3)
DllCall ($hDll, "int", "CtrlAltDel_Enable_Disable", "int", 0)
Do
If GUIGetMsg() = $Button1 Then
_BlockInputEx(0)
DllCall ($hDll, "int", "CtrlAltDel_Enable_Disable", "int", 1)
Exit
EndIf
Until GUIGetMsg() = -3