IPicture::get_Handle method

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

Syntax


HRESULT get_Handle(
  [out] OLE_HANDLE *pHandle
);

Parameters

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.

Return value

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

Return codeDescription
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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OCIdl.h

IDL

OCIdl.idl

IID

IID_IPicture is defined as 7BF80980-BF32-101A-8BBB-00AA00300CAB

See also

IPicture

 

 

Show: