This function is specific to OS/2 Version 3.0 or higher.

This function copies an object from its existing location to a specified new destination.

#define INCL_WINWORKPLACE
#include <os2.h>

HOBJECT    hObjectofObject;  /*  Handle of the Workplace Shell object being copied. */
HOBJECT    hObjectofDest;    /*  Handle of the destination folder into which hObjectofObject is to be copied. */
ULONG      ulReserved;       /*  Reserved value; must be 0. */
HOBJECT    rc;               /*  Handle of the newly created object. */

rc = WinCopyObject(hObjectofObject, hObjectofDest,
       ulReserved);


[Back] [Next]