Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ReadClassStm function

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

Syntax


WINOLEAPI ReadClassStm(
  _In_  IStream *pStm,
  _Out_ CLSID   *pclsid
);

Parameters

pStm [in]

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

A pointer to where the CLSID is to be written.

Return value

S_OK

The CLSID was successfully retrieved.

STG_E_READFAULT

End of file was reached.

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 | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Ole2.h

Library

Ole32.lib

DLL

Ole32.dll

See also

ReadClassStg
WriteClassStg
WriteClassStm

 

 

Community Additions

Show:
© 2016 Microsoft