Skip to content

Latest commit

 

History

History
113 lines (95 loc) · 2.95 KB

nf-ocidl-ipersiststreaminit-load.md

File metadata and controls

113 lines (95 loc) · 2.95 KB
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:ocidl.IPersistStreamInit.Load
IPersistStreamInit::Load (ocidl.h)
Initializes an object from the stream where it was saved previously. (IPersistStreamInit.Load)
IPersistStreamInit interface [COM]
Load method
IPersistStreamInit.Load
IPersistStreamInit::Load
Load
Load method [COM]
Load method [COM]
IPersistStreamInit interface
_com_ipersiststreaminit_load
com.ipersiststreaminit_load
ocidl/IPersistStreamInit::Load
com\ipersiststreaminit_load.htm
com
3e995e07-e088-40de-ba28-c30caea45786
12/05/2018
IPersistStreamInit interface [COM],Load method, IPersistStreamInit.Load, IPersistStreamInit::Load, Load, Load method [COM], Load method [COM],IPersistStreamInit interface, _com_ipersiststreaminit_load, com.ipersiststreaminit_load, ocidl/IPersistStreamInit::Load
ocidl.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
OCIdl.idl
Windows
19H1
IPersistStreamInit::Load
ocidl/IPersistStreamInit::Load
c++
APIRef
kbSyntax
COM
OCIdl.h
IPersistStreamInit.Load

IPersistStreamInit::Load

-description

Initializes an object from the stream where it was saved previously.

-parameters

-param pStm [in]

An IStream pointer to the stream from which the object should be loaded.

-returns

This method can return the following values.

Return code Description
S_OK
The method completed successfully.
E_OUTOFMEMORY
The object was not loaded due to lack of memory.
E_FAIL
The object was not loaded due to some reason other than a lack of memory.

-remarks

If the object has already been initialized with IPersistStreamInit::InitNew, then this method must return E_UNEXPECTED.

This method loads an object from its associated stream. The seek pointer is set as it was in the most recent IPersistStreamInit::Save method. This method can seek and read from the stream, but cannot write to it.

-see-also

IPersistStreamInit