Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Ole2.h

Library

Ole32.lib

DLL

Ole32.dll

See also

OleLoad
WriteClassStg
IStorage::Stat
STATSTG

 

 

Community Additions

Show:
© 2016 Microsoft