home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form2
- Caption = "Unload Event on End Task demo"
- ClientHeight = 1095
- ClientLeft = 2085
- ClientTop = 2640
- ClientWidth = 4635
- Height = 1500
- Left = 2025
- LinkMode = 1 'Source
- LinkTopic = "Form2"
- ScaleHeight = 1095
- ScaleWidth = 4635
- Top = 2295
- Width = 4755
- Begin Label Label1
- Caption = "Select End Task from the Task List"
- Height = 380
- Left = 720
- TabIndex = 0
- Top = 360
- Width = 3135
- End
- Declare Sub SetEndTaskHook Lib "ENTASK.DLL" (ByVal hWnd As Integer)
- Declare Sub UndoEndTaskHook Lib "ENTASK.DLL" (ByVal zero As Integer)
- Sub Form_Load ()
- Call SetEndTaskHook(hWnd)
- End Sub
- Sub Form_Unload (Cancel As Integer)
- i% = MsgBox("QUIT???", 1)
- If i% = 2 Then
- Cancel = -1
- Else
- Call UndoEndTaskHook(0)
- End If
- End Sub
-