Skip to content

Latest commit

 

History

History
75 lines (60 loc) · 2.36 KB

nf-ole2-oleduplicatedata.md

File metadata and controls

75 lines (60 loc) · 2.36 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:ole2.OleDuplicateData
OleDuplicateData function (ole2.h)
Duplicates the data found in the specified handle and returns a handle to the duplicated data. The source data is in a clipboard format. Use this function to help implement some of the data transfer interfaces such as IDataObject.
OleDuplicateData
OleDuplicateData function [COM]
_ole_OleDuplicateData
com.oleduplicatedata
ole2/OleDuplicateData
com\oleduplicatedata.htm
com
c4ba0b54-e9e1-4c05-b4f8-ce5390cada17
12/05/2018
OleDuplicateData, OleDuplicateData function [COM], _ole_OleDuplicateData, com.oleduplicatedata, ole2/OleDuplicateData
ole2.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Ole32.lib
Ole32.dll
Windows
19H1
OleDuplicateData
ole2/OleDuplicateData
c++
APIRef
kbSyntax
DllExport
Ole32.dll
OleDuplicateData

OleDuplicateData function

-description

Duplicates the data found in the specified handle and returns a handle to the duplicated data. The source data is in a clipboard format. Use this function to help implement some of the data transfer interfaces such as IDataObject.

-parameters

-param hSrc [in]

Handle of the source data.

-param cfFormat [in]

Clipboard format of the source data.

-param uiFlags [in]

Flags to be used to allocate global memory for the copied data. These flags are passed to GlobalAlloc. If the value of uiFlags is NULL, GMEM_MOVEABLE is used as a default flag.

-returns

On success the HANDLE to the source data is returned; on failure a NULL value is returned.

-remarks

The CF_METAFILEPICT, CF_PALETTE, or CF_BITMAP formats receive special handling. They are GDI handles and a new GDI object must be created instead of just copying the bytes. All other formats are duplicated byte-wise.