This function is specific to Version 4, or higher, of the OS/2 operating system.
This function allows applications to wait for the Shell to be available.
#define INCL_WINWORKPLACE #include <os2.h> ULONG ulEvent; /* Event pointed to. */ BOOL rc; /* Return Code */ rc = WinWaitForShell(ulEvent);