Microsoft SDK for Java

SetSize

This method of the ILockBytes interface changes the size of the byte array.

Syntax

public void SetSize(long cb);



Return Values

S_OK -- the size of the byte array was successfully changed.

STG_E_ACCESSDENIED -- the caller does not have permission to access the byte array.

STG_E_MEDIUMFULL -- the byte array size is not changed because there is no space left on the storage device.

Parameters

[in] cb Specifies the new size of the byte array as a number of bytes.

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