Microsoft SDK for Java

SetClass

This method of the IStorage interface assigns the specified CLSID to this storage object.

Syntax

public void SetClass(_Guid clsid);

Return Value

S_OK -- The CLSID was successfully assigned.

E_PENDING -- Asynchronous storage only: Part or all the storage's data is currently unavailable.

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.

Parameters

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

© 1999 Microsoft Corporation. All rights reserved. Terms of use.