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 theCopyRgn
procedure.
PROCEDURE CopyRgn (srcRgn,dstRgn:\xDDRgnHandle);
srcRgn
- A handle to the region to copy.
dstRgn
- A handle to the region to receive the copy.
DESCRIPTION
TheCopyRgn
procedure copies the mathematical structure of the region whose handle you pass in thesrcRgn
parameter into the region whose handle you pass in thedstRgn
parameter; that is,CopyRgn
makes a duplicate copy ofsrcRgn
.When calling CopyRgn
, passhandles that have been returned by
theNewRgn function
in thesrcRgn
anddstRgn
parameters.
Once this is done, the region indicated by
srcRgn
may be altered (or even disposed of) without affecting the region indicated bydstRgn
. TheCopyRgn
procedure does not create the destination region; space must already have been allocated for it by using theNewRgn
function.SPECIAL CONSIDERATIONS
TheCopyRgn
procedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.