HELP: How do I notify monitoring app of logical abort 
Author Message
 HELP: How do I notify monitoring app of logical abort

I don't know if this is going to the right group or not, if it isn't
apologies.

I am writing an application which is being monitored by a 3rd party
application (HP Openview Desktop Management) which will not conutinue a batch
type process if my application aborts.

My question is how can I programmatically 'simulate' an abort of my
application such that the batch process terminates.

Any assistance greatly appreciated!

Steve



Wed, 27 Dec 2000 03:00:00 GMT  
 HELP: How do I notify monitoring app of logical abort

[snip]
:My question is how can I programmatically 'simulate' an abort of my
:application such that the batch process terminates.
Declare Sub ExitProcess Lib "kernel32" Alias "ExitProcess" (ByVal uExitCode
As Long)

So in your code where you want to abort, call as:
ExitProcess x

where by convention
x=1 indicates success
anything else indicates failure

--
Damit Senanayake
Venturis Web Design - http://members.xoom.com/damit
ICQ UIN: 6930718
SBN Level 2 Member
MSDN Online Member
==
[Note: *ALL* questions, replies and follow-ups to the newsgroups. E-mailed
messages will neither be read nor replied to.]

begin 666 Damit Senanayake.vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..E-E;F%N87EA:V4[1&%M:70-
M"D9..D1A;6ET(%-E;F%N87EA:V4-"E)%5CHQ.3DX,#<Q,E0P,C,S,SA:#0I%

`
end



Thu, 28 Dec 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Monitor System Services, Notify When 90% Utilization is Reached

2. Simple logical shift + logical and question and string to byte question

3. API guru's, help with app monitoring a subdirectory

4. Monitor app starts....need help

5. Exchange Notify app using VB.NET and CDO?

6. Notifying App of Registry change.

7. How notify VB app from C++

8. help!!!! need to abort program

9. how 2 abort Query unload?????help

10. HELP: ASP / SQL Server connection hangs when user aborts processing

11. Help with overflow error 6 - any logical explanations ?

12. I need help with logical operators.

 

 
Powered by phpBB® Forum Software