ReadClassStg function
The ReadClassStg function reads the CLSID previously written to a storage object with the WriteClassStg function.
Syntax
WINOLEAPI ReadClassStg( _In_ IStorage *pStg, _Out_ 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. May return CLSID_NULL.
Return value
This function supports the standard return value E_OUTOFMEMORY, in addition to the following:
- S_OK
-
The CLSID was returned successfully.
This function also returns any of the error values returned by the IStorage::Stat method.
Remarks
ReadClassStg is 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.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps | Windows Store apps] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also