NWEndOfJob

Causes an end-of-job to be issued by the PC Shell

NetWare Server:3.11, 3.12, 3.2, 4.x, 5.x, 6.x
Platform:Windows NT, Windows 95, Windows 98
Library:Cross-Platform NetWare Calls (CAL*.*)
Service:Client Management

Syntax

   #include <nwmisc.h> 
   or 
   #include <nwcalls.h> 
    
   NWCCODE N_API  NWEndOfJob  ( 
      void); 
   
   

Pascal Syntax

   uses calwin32 
    
   Function NWEndOfJob 
     : NWCCODE; stdcall;
   

Return Values

These are common return values; see Return Values (Return Values for C) for more information.

0x0000

SUCCESSFUL

Remarks

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.

See Also

NWSetEndOfJobStatus