wpSetWarnBeforeStart (WPProgram) - Syntax

This method is specific to Version 4, or higher, of the OS/2 operating system.

This instance method sets 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           fWarnBeforeStart;  /*  A warning dialog before starting the program. */
BOOL           rc;                /*  Success indicator */

rc = _wpSetWarnBeforeStart(somSelf, fWarnBeforeStart);


[Back: wpSetWarnBeforeStart (WPProgram)]
[Next: wpSetWarnBeforeStart (WPProgram) Parameter - somSelf]