Writes the specified number of bytes starting at a specified offset from the beginning of the byte array.
HRESULT WriteAt(
ULARGE_INTEGER ulOffset,
//Specifies the starting point for writing data
void const *pv, //Points to the buffer containing the data to be
//written
ULONG cb, //Specifies the number of bytes to write
ULONG *pcbWritten //Pointer to location that contains actual
//number of bytes written
);
ILockBytes::WriteAt writes the specified data at the specified location in the byte array. The number of bytes actually written must always be returned in pcbWritten, even if an error is returned. If the byte count is zero bytes, the write operation has no effect.
If ulOffset is past the end of the byte array and cb is greater than zero, ILockBytes::WriteAt increases the size of the byte array. The fill bytes written to the byte array are not initialized to any particular value.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in objidl.h.
ILockBytes::ReadAt, ILockBytes::SetSize, ILockBytes—File-Based Implementation, ILockBytes—Global Memory Implementation