Does the API call ExitProcess() work OK in VB6 if you follow the MS caveats?
- by Clay Nichols
Microsoft indicates that VB6 doesn't support ExitProcess (to exit and return a value).
However, it indicates that this call can fail under certain circumstances (if a thread hasn't been completed, etc.)
so I'm wondering whether this call will work OK (consistently :-) as long as you obey the caveats in the article.
I could go a step further and call ExitProcess() from the Sub Main or Form which stared the app.
Update: after some more reading (I really did research this a bit before asking ) I found a suggestion to use the TerminateProcess API instead. I'm investigating that option.
Any thoughts?