WinNoShutdown prevents a user from closing an OS/2 full-screen or window session that cannot and should not be shut down.
#include <os2.h> HSid hSid; FLAG flag; BOOL rc; /* Success indicator. */ rc = WinNoShutdown(hSid, flag);