Re: how to find app termination event?
- From: erewhon@xxxxxxxxxx (J French)
- Date: Mon, 6 Jun 2005 09:24:09 +0000 (UTC)
On Sat, 4 Jun 2005 02:49:01 -0700, "=?Utf-8?B?U2FjaGluX00=?="
<SachinM@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>Hi,
>
>I've developed an application in vb 6.0, which logs some events into
>windows event log. My application does not have any GUI like forms
>instead the user can run it from command line with some parameters.
>(command line arguments)
>The end user is going to configure it with Task Schedular.
>My problem is to trap any End Task event,
>How to do it in vb6.0? any API which detects termination,
>system shutdown?
>In all, the real problem is the app should ideally report an event
>into event log before its own termination, shutdown (End Task by the user).
Create a dummy Class and use its Terminate Event to do what you want
Alternatively, if your App just runs from Sub Main then ...
Ah ... you want to make sure the log is committed
- under a forced closedown
Try looking at it the other way round, look at the Log (or anything
else) to determine whether the last task did /not/ terminate properly.
.
- References:
- how to find app termination event?
- From: Sachin_M
- how to find app termination event?
- Prev by Date: Re: System-wide hooking, VB+ASM
- Next by Date: Re: System-wide hooking, VB+ASM
- Previous by thread: Re: how to find app termination event?
- Next by thread: Camcorder and VB6 application
- Index(es):
Relevant Pages
|