Dec 122017
 
DLL callable from Visual Basic to end a task.
File ENTASK.ZIP from The Programmer’s Corner in
Category BASIC Language
DLL callable from Visual Basic to end a task.
File Name File Size Zip Size Zip Type
ENDTASK.EXE 3781 1190 deflated
ENDTASK.FRM 670 406 deflated
ENDTASK.MAK 62 62 stored
ENDTASK.TXT 754 437 deflated
ENTASK.C 1047 544 deflated
ENTASK.DLL 1037 423 deflated
GLOBAL.BAS 0 0 stored
TPCREAD.ME 199 165 deflated

Download File ENTASK.ZIP Here

Contents of the ENDTASK.TXT file


ENTASK.DLL -- Author Jeff Simms -- CIS 72200,3173 -- August 1, 1992

When End Task is selected from the Task List it sends a WM_CLOSE message to the VB apps "invisible parent" window (classname ThunderRTMain) who does not pass it on. ENTASK.DLL hooks into this window and redirects the message to a form of your choice.

Public Domain


Declare Sub SetEndTaskHook Lib "ENTASK.DLL" (ByVal hWnd As Integer)
Declare Sub UndoEndTaskHook Lib "ENTASK.DLL" (ByVal zero As Integer)

Usage:

In Form_Load... Call SetEndTaskHook(hWnd)

In Form_Unload... Call UndoEndTaskHook(0)


Notes:

1) You must call UndoEndTaskHook for proper cleanup.

2) Do not use END for same reason.

3) Doesn't work in VB run environment

* Use at own risk *


 December 12, 2017  Add comments

Leave a Reply