Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
WriteClassStg

WriteClassStg function

The WriteClassStg function stores the specified class identifier (CLSID) in a storage object.

Syntax


WINOLEAPI WriteClassStg(
  _In_ IStorage *pStg,
  _In_ REFCLSID rclsid
);

Parameters

pStg [in]

IStorage pointer to the storage object that gets a new CLSID.

rclsid [in]

Pointer to the CLSID to be stored with the object.

Return value

S_OK

Indicates that the CLSID was successfully written to the file.

STG_E_MEDIUMFULL

Indicates that the CLSID could not be written due to lack of memory.

Remarks

The WriteClassStg function writes a CLSID to the specified storage object so that it can be read by the ReadClassStg function. Container applications typically call this function before calling the IPersistStorage::Save method.

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

OleSave
ReadClassStg

 

 

Community Additions

ADD
Show:
© 2015 Microsoft