This method of the ILockBytes interface changes the size of the byte array.
public void SetSize(long cb);
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.
[in] cb | Specifies the new size of the byte array as a number of bytes. |