WriteClassStm function (coml2api.h)
The WriteClassStm function stores the specified CLSID in the stream.
Syntax
HRESULT WriteClassStm(
[in] LPSTREAM pStm,
[in] REFCLSID rclsid
);
Parameters
[in] pStm
IStream pointer to the stream into which the CLSID is to be written.
[in] rclsid
Specifies the CLSID to write to the stream.
Return value
This function returns HRESULT.
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
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps | UWP apps] |
Minimum supported server | Windows 2000 Server [desktop apps | UWP apps] |
Target Platform | Windows |
Header | coml2api.h (include Ole2.h) |
Library | Ole32.lib |
DLL | Ole32.dll |