How to exit app with a value?

BlitzMax Forums/BlitzMax Programming/How to exit app with a value?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Basically I want to create some small plugins (EXE's) that return an integer-value to their parent app when exiting. Should be possible with some WinAPI functions, but that'll kill cross platform.

So is there something like "End(42)" ?

Thanks
Jake