
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