|
DuplicatePenData
- 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 function should create a shared memory object when the pen data object is
created. This should be either 0 or GMEM_DDESHARE. The GMEM_MOVEABLE and
GMEM_ZEROINIT flags are added to this value and other GMEM_ flags are ignored.
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
CreatePenData, DestroyPenData
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|