Important: The information in this document is obsolete and should not be used for new development.
CopyRgn
To make a copy of a region, use theCopyRgnprocedure.
PROCEDURE CopyRgn (srcRgn,dstRgn:\xDDRgnHandle);
srcRgn- A handle to the region to copy.
dstRgn- A handle to the region to receive the copy.
DESCRIPTION
TheCopyRgnprocedure copies the mathematical structure of the region whose handle you pass in thesrcRgnparameter into the region whose handle you pass in thedstRgnparameter; that is,CopyRgnmakes a duplicate copy ofsrcRgn.When calling CopyRgn, passhandles that have been returned bytheNewRgn functionin thesrcRgnanddstRgnparameters.Once this is done, the region indicated by
srcRgnmay be altered (or even disposed of) without affecting the region indicated bydstRgn. TheCopyRgnprocedure does not create the destination region; space must already have been allocated for it by using theNewRgnfunction.SPECIAL CONSIDERATIONS
TheCopyRgnprocedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.