wpQueryWarnBeforeStart
WPProgram
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.
Syntax
_wpQueryWarnBeforeStart(somSelf)
Parameters
- somSelf (WPProgram *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPProgram.
Returns
- rc (BOOL) - returns
- Success indicator.
- TRUE Successful completion.
- FALSE Error occurred.
How to Override
This method is not generally overridden.
Usage
This method can be called at any time to obtain the **Warn Before Start** option for a program reference object.
Remarks
This method is not covered in the provided text.
Example Code
#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);
/* Example code provided in the source: */
BOOL bWarnBeforeStart;
bWarnBeforeStart = _wpQueryWarnBeforeStart(somSelf);
Related Methods
- wpQueryWarnBeforeStart (WPProgramFile)
- wpSetWarnBeforeStart (WPProgram)
- wpSetWarnBeforeStart (WPProgramFile)
WPProgramFile
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.
Syntax
_wpQueryWarnBeforeStart(somSelf)
Parameters
- somSelf (WPProgramFile *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPProgramFile.
Returns
- rc (BOOL) - returns
- Success indicator.
- TRUE Successful completion.
- FALSE Error occurred.
How to Override
This method is not generally overridden.
Usage
This method can be called at any time to obtain the **Warn Before Start** option for a program reference object.
Remarks
This method is not covered in the provided text.
Example Code
#define INCL_WINWORKPLACE
#include <os2.h>
WPProgramFile *somSelf; /* Pointer to the object on which the method is being invoked. */
BOOL rc; /* Success indicator */
rc = _wpQueryWarnBeforeStart(somSelf);
/* Example code provided in the source: */
BOOL bWarnBeforeStart;
bWarnBeforeStart = _wpQueryWarnBeforeStart(somSelf);
Related Methods
- wpQueryWarnBeforeStart (WPProgram)
- wpSetWarnBeforeStart (WPProgram)
- wpSetWarnBeforeStart (WPProgramFile)