ReadClassStm function

The ReadClassStm function reads the CLSID previously written to a stream object with the WriteClassStm function.

Syntax

HRESULT ReadClassStm(
  LPSTREAM pStm,
  CLSID    *pclsid
);

Parameters

pStm

A pointer to the IStream interface on the stream object that contains the CLSID to be read. This CLSID must have been previously written to the stream object using WriteClassStm.

pclsid

A pointer to where the CLSID is to be written.

Return Value

This function also returns any of the error values returned by the ISequentialStream::Read method.

Remarks

Most applications do not call the ReadClassStm function directly. COM calls it before making a call to an object's IPersistStream::Load implementation.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header coml2api.h (include Ole2.h)
Library Ole32.lib
DLL Ole32.dll

See Also

ReadClassStg

WriteClassStg

WriteClassStm