WriteClassStm

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.

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 Values

  • 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

OS Versions: Windows CE 2.0 and later.
Header: Ole2.h.
Link Library: Ole32.lib.

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.