AllAPI Network - The KPD-Team

 
Allapi Network
 API-Guide
 ApiViewer

 API List

 
API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
 
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
 
This Site
 Search Engine
 Contact Form
 

Donate to AllAPI.net

OleLoadPicturePath

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

VB4-32,5,6
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

Library
Oleaut32

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:
S_OK
The picture was created successfully.
E_POINTER
The address in ppvRet is NULL.
E_NOINTERFACE
The object does not support the interface specified in riid.

Examples

Related Functions

 

 


Copyright © 1998-2007, The Mentalis.org Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at http://allapi.mentalis.org/