WriteClassStm function (coml2api.h)
The WriteClassStm function stores the specified CLSID in the stream.
HRESULT WriteClassStm(
[in] LPSTREAM pStm,
[in] REFCLSID rclsid
);
[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.
This function returns HRESULT.
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.
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 |