ReadClassStg  6CZJ_R1

Reads the CLSID previously written to a storage object with the WriteClassStgEVYOC..

WINOLEAPI ReadClassStg(

    IStorage * pStg,

//Pointer to the storage object containing the CLSID

    CLSID * pclsid

//Pointer to return the CLSID

   );

 

 

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. May 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::StatXY11ZW method.

Remarks

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 WriteClassStgEVYOC. from the STATSTGN9JHJ6 structure.

See Also

OleLoad, WriteClassStg