| Herd Software Development
|=
DaVinci Graphics Library
|==
DaVinci Documentation Home Search Order


Leonardo: The CopyHandle function

Creates a copy of a memory block allocated using GlobalAlloc. (DIB handles used by DaVinci and Leonardo are derived from this type).

HGLOBAL API CopyHandle(HGLOBAL hSource)

hSource HGLOBAL DIB handle of the memory area to be copied.

Returns

If successful, the return value is the handle of a memory block reserved by GlobalAlloc containing an exact byte copy of the data taken from hSource, otherwise it is NULL. Errors are usually attributable to insufficient memory.

Remarks

CopyMetaFile. should be used to copy metafiles

CopyEnhMetaFile. should be used to copy enhanced metafiles