This example lets you find the current Desktop object and sets the current lockup automatic timeout value to 15 seconds.
WPDesktop *Desktop; Desktop = _wpclsQueryObjectFromPath("<WP_DESKTOP>"); _wpSetLockupTimeout(Desktop,15);