M&M FDT 1.2.1 Online Specification
 IPersistStreamInit::Load() method information


Interfaces and Methods   -   Schemas   -   FDT Specification   -   Quicklinks   -   Abbreviations

2.7.2 IPersistStreamInit::Load()


This method can be called in the states:      

HRESULT Load (
[in] LPSTREAM pStm
);


Description:


Parameters:
pStmPoints to the stream from which the object should be loaded.


Return Value:


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

Comments:
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. On exit, the seek pointer should be left in the same position as it was on exit from Save, immediately past the end of the data. Notes to Callers: Rather than calling IPersistStreamInit::Load() directly, you typically call the OleLoadFromStream function does the following: 1. Calls the ReadClassStm function to get the class identifier from the stream. 2. Calls the CoCreateInstance function to create an instance of the object. 3. Queries the instance for IPersistStreamInit. 4. Calls IPersistStreamInit::Load. The OleLoadFromStream function assumes that objects are stored in the stream with a class identifier followed by the object data. This storage pattern is used by the generic, composite-moniker implementation provided by OLE. If the objects are not stored using this pattern, you must call the methods separately yourself.




© by M&M Software GmbH, parts of this website taken from FDT Interface Specification Version 1.2.1, © by FDT Group, AISBL.
This website is published for support of M&M products as granted in license conditions, chapter 2.1.
Last updated 2015-02-05 15:17
Email: FDT Technical Support Line.