This method is specific to Version 4, or higher, of the OS/2 operating system.
This instance method queries the program reference's Warn Before Start flag. If this flag is set, put up a warning dialog before starting the program.
#define INCL_WINWORKPLACE #include <os2.h> WPProgram *somSelf; /* Pointer to the object on which the method is being invoked. */ BOOL rc; /* Success indicator */ rc = _wpQueryWarnBeforeStart(somSelf);