Reads the CLSID previously written to a stream object with the WriteClassStm method.
WINOLEAPI ReadClassStm(
IStream * pStm, //Pointer to the stream holding the CLSID
CLSID * pclsid //Pointer to where the CLSID is to be written
);
This function also returns any of the error values returned by the ISequentialStream::Read method.
Most applications do not call the ReadClassStm method directly. OLE calls it before making a call to an object's IPersistStream::Load implementation.
Windows CE: Passing into this function any invalid and, under some circumstances, NULL pointers will result in unexpected termination of the application. For more information about handling exceptions, see Programming Considerations.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Use version 2.0 or later.
Header: Declared in ole2.h.
Import Library: Included as a resource in ole32.dll.
WriteClassStm, ReadClassStg, WriteClassStg