Partager via


WriteClassStm (Compact 2013)

3/26/2014

This 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.

Syntax

WINOLEAPI  WriteClassStm(
  IStream* pStm,
  REFCLSID rclsid
);

Parameters

  • pStm
    [in] IStream pointer to the stream into which the CLSID is to be written.
  • rclsid
    [in] CLSID to write to the stream.

Return Value

  • S_OK
    Indicates the CLSID was successfully written.
  • STG_E_MEDIUMFULL
    The CLSID could not be written because there is no space left on device.

This function also returns any of the error values returned by the IStorage::SetClass method.

Remarks

Passing into this function any invalid and, under some circumstances, NULL pointers results in unexpected termination of the application.

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.

To determine whether the platform supports this function, see Determining Supported COM APIs.

Requirements

Header

ole2.h

Library

ole32.lib

See Also

Reference

Storage Functions