Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
This function reads the CLSID previously written to a stream object with the WriteClassStmmethod.
Syntax
WINOLEAPI ReadClassStm( IStream* pStm, CLSID* pclsid ); |
Parameters
- pStm
-
[in] Pointer to the IStreaminterface 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 Value
- 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 ReadClassStmmethod directly.
To determine whether the platform supports this function, see Determining Supported COM APIs.
Requirements
Header | ole2.h |
Library | ole32.lib |
Windows Embedded CE | Windows CE 2.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |