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:olectl.OleLoadPicturePath |
OleLoadPicturePath function (olectl.h) |
Creates a new picture object and initializes it from the contents of a stream. This is equivalent to calling OleCreatePictureIndirect(NULL, ...) followed by IPersistStream::Load. |
|
com\oleloadpicturepath.htm |
com |
08bad900-815a-4b6d-b977-92d5fdd7d9e8 |
12/05/2018 |
OleLoadPicturePath, OleLoadPicturePath function [COM], _ctrl_OleLoadPicturePath, com.oleloadpicturepath, olectl/OleLoadPicturePath |
olectl.h |
Windows |
Windows 2000 Professional [desktop apps only] |
Windows 2000 Server [desktop apps only] |
OleAut32.lib |
OleAut32.dll |
Windows |
19H1 |
|
|
|
|
|
|
Creates a new picture object and initializes it from the contents of a stream. This is equivalent to calling OleCreatePictureIndirect(NULL, ...) followed by IPersistStream::Load.
The path or URL to the file you want to open.
Points to IUnknown for COM aggregation.
Reserved.
The color you want to reserve to be transparent.
Reference to the identifier of the interface describing the type of interface pointer to return in ppvRet.
Address of pointer variable that receives the interface pointer requested in riid. Upon successful return, *ppvRet contains the requested interface pointer on the storage of the object identified by the moniker. If *ppvRet is non-NULL, this function calls IUnknown::AddRef on the interface; it is the caller's responsibility to call IUnknown::Release. If an error occurs, *ppvRet is set to NULL.
This function supports the standard return values E_OUTOFMEMORY and E_UNEXPECTED, as well as the following:
Return code | Description |
---|---|
|
The dialog box was created successfully. |
|
Unable to load picture stream. |
|
The address in ppvRet is NULL. |
|
The object does not support the interface specified in riid. |
The stream must be in BMP (bitmap), JPEG, WMF (metafile), ICO (icon), or GIF format.