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 will result in unexpected termination of the application.

Most applications do not call the ReadClassStm method directly.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.0 and later Ole2.h   Ole232.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

IStream, WriteClassStm

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.