Microsoft SDK for Java

WriteAt

This method of the ILockBytes interface writes the specified number of bytes starting at a specified offset from the beginning of the byte array.

Syntax

public int WriteAt(long ulOffset, byte buf[], int off, int len);



Return Values

S_OK -- indicates that the specified number of bytes were written.

E_FAIL -- a general failure occurred during the write.

E_PENDING -- asynchronous storage only: part or all of the data to be written is currently unavailable.

STG_E_ACCESSDENIED -- the caller does not have sufficient permissions for writing this byte array.

STG_E_WRITEFAULT -- the number of bytes to be written does not equal the number of bytes that were actually written.

STG_E_MEDIUMFULL -- the write operation was not completed because there is no space left on the storage device. The actual number of bytes written is still returned.

Parameters

ulOffset Specifies the starting row from the beginning of the database.
buf The buffer that the bytes are written into.
off The offset in the byte array to begin writing to.
len The number of bytes to be written.

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