IStorage::SetClass method

The SetClass method assigns the specified class identifier (CLSID) to this storage object.

Syntax

HRESULT SetClass(
  REFCLSID clsid
);

Parameters

clsid

The CLSID that is to be associated with the storage object.

Return Value

This method can return one of these values.

Remarks

When first created, a storage object has an associated CLSID of CLSID_NULL. Call SetClass to assign a CLSID to the storage object.

Call the IStorage::Stat method to retrieve the current CLSID of a storage object.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header objidl.h
Library Uuid.lib
DLL Ole32.dll

See Also

IStorage - Compound File Implementation

IStorage::Stat