다음을 통해 공유


IStorage::SetClass (Windows CE 5.0)

Send Feedback

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

The following table shows the return values for this method.

Value Description
S_OK The CLSIDwas successfully assigned.
E_PENDING Asynchronous Storage only: Part or all of the storage's data is currently unavailable.

For more information see the IFillLockBytes interface 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. To assign a CLSID to the storage object, call this method.

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

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Objidl.h, Objidl.idl.
Link Library: Ole32.lib, Uuid.lib.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.