WriteClassStm

Stores the specified CLSID in the stream.

HRESULT WriteClassStm(

IStream * pStm,
//Points to the stream object
REFCLSID rclsid
//Specifies the CLSID to be stored in the stream object
);

Parameters

pStm

Points to the stream into which the CLSID is to be written.

rclsid

Specifies the CLSID to write to the stream.

Return Values

S_OK

Indicates the CLSID was successfully written.

STG_E_MEDIUMFULL

The CLSID could not be written because there is no space left on device.

IStorage::SetClass method error return values.

Comments

This function writes a CLSID to the specified stream object so it can be read by the ReadClassStm function. Most applications do not call the WriteClassStm function. OLE calls it before making a call to an object's IPersistStream::Save method.

See Also

ReadClassStm, WriteClassStg, ReadClassStg

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples