Jump to content

wpSetTaskRec

From EDM2

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

This instance method adds, replaces, or deletes a task data block.

Syntax

_wpSetTaskRec(somSelf, pNew, pOld)

Parameters

somSelf (WPObject *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPObject.
pNew (PTASKREC) - input
New task link to be added or replaced.
pOld (PTASKREC) - input
Old task link to be deleted or replaced.

Returns

rc (BOOL32) - returns
Success indicator.
  • TRUE Successful completion.
  • FALSE Error occurred.

How to Override

This method is not generally overridden.

Remarks

The task records are used by the Workplace Shell to keep track of work being done on another thread (such as moving and copying objects).

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */
PTASKREC *pNew; /* New task link to be added or replaced. */
PTASKREC *pOld; /* Old task link to be deleted or replaced. */
BOOL32 rc; /* Success indicator */

rc = _wpSetTaskRec(somSelf, pNew, pOld);

Related Methods