Microsoft Windows CE 3.0  

ReadClassStg

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.

This function reads the CLSID previously written to a storage object with the WriteClassStg .

WINOLEAPI ReadClassStg(
IStorage
*
pStg
,
CLSID *
pclsid
);

Parameters

pStg
[in] Pointer to the IStorage interface on the storage object containing the CLSID to be retrieved.
pclsid
[out] Pointer to where the CLSID is written. Can return CLSID_NULL.

Return Values

This function supports the standard return value E_OUTOFMEMORY, as well as the following:

S_OK
The CLSID was returned successfully.

This function also returns any of the error values returned by the IStorage::Stat method.

Windows CE Remarks

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

Remarks

This function is simply a helper function that calls the IStorage::Statmethod and retrieves the CLSID previously written to the storage object with a call to WriteClassStgfrom the STATSTG structure.

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

IStorage , IStorage::Stat , STATSTG , WriteClassStg