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 |
|
|
Library |
|
|
DLL |
|
See also