InitNew Method
Collapse the table of content
Expand the table of content

IPersistStreamInit::InitNew method

Initializes an object to a default state. This method is to be called instead of IPersistStreamInit::Load.

Syntax


HRESULT InitNew();

Parameters

This method has no parameters.

Return value

This method can return the standard return valuesE_OUTOFMEMORY and E_UNEXPECTED, as well as the following values.

Return codeDescription
S_OK

The method completed successfully.

E_NOTIMPL

The object requires no default initialization. This error code is allowed because an object may choose to implement IPersistStreamInit simply for orthogonality or in anticipation of a future need for this method.

 

Remarks

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

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OCIdl.h

IDL

OCIdl.idl

IID

IID_IPersistStreamInit is defined as 7FD52380-4E07-101B-AE2D-08002B2EC713

See also

IPersistStreamInit

 

 

Community Additions

ADD
Show:
© 2016 Microsoft