Skip to main content
Table of Contents

TTMSFNCClipBoard.AllocateCustomValue Method

Allocates a Windows clipboard memory block for a custom format value.

API unit family: TMSFNCUtils Declaring type: TTMSFNCClipBoard

Syntax

FMX.TMSFNCUtils.hppPascalC++
class function AllocateCustomValue(AFormat: Cardinal; AValue: TValue): THandle; virtual;
__classmethod virtual Winapi::Windows::THandle __fastcall AllocateCustomValue(unsigned AFormat, const System::Rtti::TValue &AValue);

Parameters

Name Description
AFormat The Windows clipboard format identifier returned by RegisterClipboardFormat.
AValue The value to serialize into the allocated clipboard block.

Returns

A global memory handle to the allocated clipboard data block, or 0 on failure.