Stores the specified CLSID in the stream.
WINOLEAPI WriteClassStm(
| 
 IStream * pStm,  | 
 //Points to the IStream interface on the stream object  | 
| 
 REFCLSID rclsid  | 
 //Specifies the CLSID to be stored in the stream object  | 
| 
 );  | 
Parameters
Return Values
IStorage::SetClass method error return values.
Remarks
The WriteClassStm function writes a CLSID to the specified stream object so it can be read by the ReadClassStm function. Most applications do not call WriteClassStm directly. OLE calls it before making a call to an object’s IPersistStream::Save method.
See Also
ReadClassStm, WriteClassStg, ReadClassStg