Reads the CLSID previously written to a storage object with the WriteClassStg.
WINOLEAPI ReadClassStg(
IStorage * pStg, //Pointer to the storage object containing the
// CLSID
CLSID * pclsid //Pointer to return the CLSID
);
This function supports the standard return value E_OUTOFMEMORY, as well as the following:
This function also returns any of the error values returned by the IStorage::Stat method.
This function is simply a helper function that calls the IStorage::Stat method and retrieves the CLSID previously written to the storage object with a call to WriteClassStg from the STATSTG structure.
Windows CE: Passing into this function any invalid and, under some circumstances, NULL pointers will result in unexpected termination of the application. For more information about handling exceptions, see Programming Considerations.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Use version 2.0 or later.
Header: Declared in ole2.h.
Import Library: Included as a resource in ole32.dll.
OleLoad, WriteClassStg, IStorage::Stat, STATSTG structure.