Share via


MimeOleObjectFromUrl function

Do not use. Creates a new message object and loads its state from the supplied URL (on success).

Syntax

HRESULT MimeOleObjectFromUrl(
  _In_  LPCSTR   pszUrl,
  _In_  BOOL     fCreate,
  _In_  REFIID   riid,
  _Out_ LPVOID   *ppvObject,
  _Out_ IUnknown **ppUnkKeepAlive
);

Parameters

pszUrl [in]

Type: LPCSTR

Specifies the base URL.

fCreate [in]

Type: BOOL

Specifies whether a new message object should be created if pszUrl cannot be resolved.

riid [in]

Type: REFIID

Specifies IID of the interface client used to communicate with object that URL identifies.

ppvObject [out]

Type: LPVOID*

Receives address of a pointer to interface specified by riid.

ppUnkKeepAlive [out]

Type: IUnknown**

Receives address of interface pointer that allows ppvObject to control lifetime, not pszUrl.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_OUTOFMEMORY
Indicates that allocation failed.

Remarks

Note

Not applicable to Macintosh.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Product
Outlook Express 6.0
Header
Mimeole.h
Library
Inetcomm.lib
DLL
Inetcomm.dll (version 6.0 or later)