Skip to content

Latest commit

 

History

History
102 lines (86 loc) · 3.02 KB

nf-ocidl-ipicture-get_handle.md

File metadata and controls

102 lines (86 loc) · 3.02 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:ocidl.IPicture.get_Handle
IPicture::get_Handle (ocidl.h)
Retrieves the handle to the picture managed within this picture object to a specified location.
IPicture interface [COM]
get_Handle method
IPicture.get_Handle
IPicture::get_Handle
_ctrl_ipicture_get_handle
com.ipicture_get_handle
get_Handle
get_Handle method [COM]
get_Handle method [COM]
IPicture interface
ocidl/IPicture::get_Handle
com\ipicture_get_handle.htm
com
196b911b-a685-44d5-a772-a71767f957f5
12/05/2018
IPicture interface [COM],get_Handle method, IPicture.get_Handle, IPicture::get_Handle, _ctrl_ipicture_get_handle, com.ipicture_get_handle, get_Handle, get_Handle method [COM], get_Handle method [COM],IPicture interface, ocidl/IPicture::get_Handle
ocidl.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
OCIdl.idl
Windows
19H1
IPicture::get_Handle
ocidl/IPicture::get_Handle
c++
APIRef
kbSyntax
COM
OCIdl.h
IPicture.get_Handle

IPicture::get_Handle

-description

Retrieves the handle to the picture managed within this picture object to a specified location.

-parameters

-param pHandle [out]

A pointer to a variable that receives the handle. The caller is responsible for this handle upon successful return. The variable is set to NULL on failure.

-returns

This method supports the standard return values E_FAIL and E_OUTOFMEMORY, as well as the following values.

Return code Description
S_OK
The handle was returned successfully.
E_POINTER
The value of phandle is not valid. For example, it may be NULL.

-remarks

Notes to Callers

The picture object may retain ownership of the picture. However, the caller can be assured that the picture will remain valid until either the caller specifically destroys the picture or the picture object is itself destroyed. The fOwn parameter to OleCreatePictureIndirect determines ownership when the picture object is created. OleLoadPicture forces fOwn to TRUE.

-see-also

IPicture