Purpose
WinWaitForShell() determines if various events in the Workplace Shell(R) have taken place.
Syntax
#define #include os2.h>
BOOL EXPENTRY WinWaitForShell()
Parameters
ulEvent (ULONG) input
WWFS_DESKTOPCREATED
Returns
rc (BOOL) returns
True
PMERR_INVALID_PARAMETER (0x1208)
Remarks
This function can be used to either determine if a Workpalce Shell event has taken place or wait until that event has taken place. Set ulEvent to one of the WWFS_DESKTOP* #defines above.
To block until the event has occurred, do not turn on the WWFS_QUERY flag.
Simply to query if the event has occurred and not to wait for it to occur, turn on the WWFS_QUERY flag.
Example Code
This example checks (non-blocking) to see if the Workplalce Shell Desktop to be populated has been populated or not.
#define#include os2.h> BOOL fOccurred; fOccurred + WinWaitForShell(WWFS_DESKTOPPOPULATED | WWFS_QUERY); if (fOccurred) { /* The Desktop has been populated */ } else { /* The Desktop has not been populated */