Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IPersistStreamInitImpl Class
Collapse the table of content
Expand the table of content

IPersistStreamInitImpl Class

This class implements IUnknown and provides a default implementation of the IPersistStreamInit interface.

Important note Important

This class and its members cannot be used in applications that execute in the Windows Runtime.

template< 
class T  
> 
class ATL_NO_VTABLE IPersistStreamInitImpl : 
public IPersistStreamInit

T

Your class, derived from IPersistStreamInitImpl.

Name

Description

IPersistStreamInitImpl::GetClassID

Retrieves the object's CLSID.

IPersistStreamInitImpl::GetSizeMax

Retrieves the size of the stream needed to save the object's data. The ATL implementation returns E_NOTIMPL.

IPersistStreamInitImpl::InitNew

Initializes a newly created object.

IPersistStreamInitImpl::IsDirty

Checks whether the object's data has changed since it was last saved.

IPersistStreamInitImpl::Load

Loads the object's properties from the specified stream.

IPersistStreamInitImpl::Save

Saves the object's properties to the specified stream.

The IPersistStreamInit interface allows a client to request that your object loads and saves its persistent data to a single stream. Class IPersistStreamInitImpl provides a default implementation of this interface and implements IUnknown by sending information to the dump device in debug builds.

Related Articles   ATL Tutorial, Creating an ATL Project

IPersistStreamInit

IPersistStreamInitImpl

Header: atlcom.h

Show:
© 2015 Microsoft