Microsoft Windows CE 3.0  

IStorage::SetClass

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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

HRESULT SetClass( REFCLSID
clsid
);

Parameters

clsid
[in] Class identifier (CLSID) that is to be associated with the storage object.

Return Values

One of the values described in the following table is returned.

Value Description
S_OK The CLSID was successfully assigned.
E_PENDING Asynchronous Storage only: Part or all of the storage's data is currently unavailable. For more information see IFillLockBytes and Asynchronous Storage.
STG_E_ACCESSDENIED The caller does not have sufficient permissions for assigning a class identifier to the storage object.
STG_E_MEDIUMFULL Not enough space was left on device to complete the operation.
STG_E_REVERTED The storage object has been invalidated by a revert operation above it in the transaction tree.

Remarks

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

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

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.0 and later Objidl.h    
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.