Jump to content

wpSetLockupOnStartup

From EDM2
Revision as of 03:36, 25 November 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:wpSetLockupOnStartup}} This method is specific to Version 4, or higher, of the OS/2 operating system. This instance method sets the value of the lockup on the startup option. ==Syntax== wpSetLockupOnStartup(somSelf, bLockupOnStartup) ==Parameters== ;''somSelf'' (WPDesktop *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPDesktop. ;''bLockupOnStartup'' (BOOL) - input :Lockup value. :* ''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

This instance method sets the value of the lockup on the startup option.

Syntax

wpSetLockupOnStartup(somSelf, bLockupOnStartup)

Parameters

somSelf (WPDesktop *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPDesktop.
bLockupOnStartup (BOOL) - input
Lockup value.
  • TRUE Automatically locks up the system when the system is started.
  • FALSE The system is not locked up when started.

Returns

rc (none) - returns
There is no return value for this method.

How to Override

This method is generally not overridden.

Usage

This method can be called at any time in order to set the lockup at the startup option for the current desktop.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPDesktop *somSelf; /* Pointer to the object on which the method is being invoked. */
BOOL bLockupOnStartup; /* Lockup value. */

wpSetLockupOnStartup(somSelf, bLockupOnStartup);

/* Example code provided in the source: */
  WPDesktop *Desktop;

  Desktop = _wpclsQueryObjectFromPath("<WP_DESKTOP>");
  _wpSetLockupOnStartup(Desktop,FALSE);

Related Methods