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 |
|
|
Library |
|
|
DLL |
|
See also