DuplicatePenData
1.0 2.0
Duplicates an
HPENDATA object, allowing an application to generate clones of existing
pen data.
HPENDATA DuplicatePenData( HPENDATA hpendata,
UINT gmemFlags )
Parameters
hpendata
Pen data to
be duplicated.
gmemFlags
Flag that
specifies whether or not the Windows GlobalAlloc
Return Value
Returns a
handle to the duplicated pen data object if successful; otherwise, it returns
NULL. It returns NULL if memory is not allocated successfully.
Comments
The DuplicatePenData
function duplicates the data specified by the hpendata parameter by
creating a second pen data memory block. The application is responsible for destroying
this memory block by calling DestroyPenData
See Also