ReadClassStm  6D5J_R1

Reads the CLSID previously written to a stream object with the WriteClassStmEVYOCB method.

WINOLEAPI ReadClassStm(

    IStream * pStm,

//Pointer to the stream holding the CLSID

    CLSID * pclsid

//Pointer to where the CLSID is to be written

   );

 

 

Parameters

pStm

[in] Pointer to the IStream interface on the stream object containing the CLSID to be read. This CLSID must have been previously written to the stream object using WriteClassStmEVYOCB.

pclsid

[out] Pointer to where the CLSID is to be written.

 

Return Values

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 IStream::Read4QE_N8 method.

Remarks

Most applications do not call the ReadClassStm method directly. OLE calls it before making a call to an object s IPersistStream::Load5_OA0S implementation.

See Also

WriteClassStm, ReadClassStg, WriteClassStg