NWEndOfJob
Causes an end-of-job to be issued by the PC Shell
#include <nwmisc.h> or #include <nwcalls.h> NWCCODE N_API NWEndOfJob ( void);
uses calwin32 Function NWEndOfJob : NWCCODE; stdcall;
These are common return values; see Return Values (Return Values for C) for more information.
An end-of-job is automatically issued by the PC Shell whenever a program exits unless NWEndOfJob has been disabled by calling the NWSetEndOfJobStatus function. When an end-of-job occurs, all locked files and records are cleared and any open files are closed.
NWEndOfJob can be called anytime the program needs the network environment to return to a beginning-of-program state with no files or records logged or locked.