IWICPersistStream::LoadEx method (wincodecsdk.h)

Loads data from an input stream using the given parameters.

Syntax

HRESULT LoadEx(
  [in] IStream    *pIStream,
  [in] const GUID *pguidPreferredVendor,
  [in] DWORD      dwPersistOptions
);

Parameters

[in] pIStream

Type: IStream*

Pointer to the input stream.

[in] pguidPreferredVendor

Type: const GUID*

Pointer to the GUID of the preferred vendor .

[in] dwPersistOptions

Type: DWORD

The WICPersistOptions used to load the stream.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

NULL can be passed in for pguidPreferredVendor to indicate no preference.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2, Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header wincodecsdk.h
Library Windowscodecs.lib
DLL Windowscodecs.dll