WriteClassStm function
The WriteClassStm function stores the specified CLSID in the stream.
Syntax
WINOLEAPI WriteClassStm( _In_ IStream *pStm, _In_ REFCLSID rclsid );
Parameters
- pStm [in]
-
IStream pointer to the stream into which the CLSID is to be written.
- rclsid [in]
-
Specifies the CLSID to write to the stream.
Return value
- S_OK
-
Indicates that the CLSID was successfully written.
- STG_E_MEDIUMFULL
-
The CLSID could not be written because there is no space left on device.
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.
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