Share via


ReadClassStm

This function reads the CLSID previously written to a stream object with the WriteClassStm method.

WINOLEAPI ReadClassStm( 
  IStream* pStm, 
  CLSID* pclsid 
); 

Parameters

  • pStm
    [in] Pointer to the IStream interface on the stream object containing the CLSID to be read. This CLSID must have been previously written to the stream object using WriteClassStm.
  • pclsid
    [out] Pointer to where the CLSID is to be written.

Return Values

  • S_OK
    The CLSID was successfully retrieved.
  • STG_E_READFAULT
    End of file was reached.

Remarks

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

Most applications do not call the ReadClassStm method 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.

See Also

IStream | WriteClassStm

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.