A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z


Creates a new picture object and initializes it from the contents of a stream.

Declare Function OleLoadPicturePath Lib "oleaut32.dll" (ByVal szURLorPath As Long, ByVal punkCaller As Long, ByVal dwReserved As Long, ByVal clrReserved As OLE_COLOR, ByRef riid As TGUID, ByRef ppvRet As IPicture) As Long

Operating Systems Supported
Requires Windows NT 4.0 or later; Requires Windows 95 or later


Parameter Information
- szURLorPath
[in] The path or url to the file you want to open.

- punkCaller
[in] Points to IUnknown for COM aggregation.

- dwReserved
[in] Reserved.

- clrReserved
[in] The color you want to reserve to be transparent.

- riid
[in] Reference to the identifier of the interface describing the type of interface pointer to return in ppvRet.

- ppvRet
[out] 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.

Return Values
This function supports the standard return values E_OUTOFMEMORY and E_UNEXPECTED, as well as the following:
The picture was created successfully.
The address in ppvRet is NULL.
The object does not support the interface specified in riid.

Last update: 07 April 2006