Share via


WriteClassStm (Windows CE 5.0)

Send Feedback

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.

WINOLEAPIWriteClassStm(IStream* pStm,REFCLSIDrclsid );

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.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.