Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ReadClassStm function (coml2api.h)

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

Syntax

HRESULT ReadClassStm(
 [in] LPSTREAM pStm,
 [out] CLSID *pclsid
);

Parameters

[in] 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.

[out] 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

Requirement Value
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


Feedback

Was this page helpful?

Additional resources