BltMemoGet


< Prev  TOC  Next >

TBLT_RETC TBLT_ENTRY BltMemoGet(TBLT_DH *dhPtr,
                                ULONG memoNo,
                                ULONG startOffset,
                                ULONG *bytesToReadPtr,
                                VOID *bufferPtr);


 dhPtr          IO:data file control structure
 memoNo         I:memo number to get
 startOffset    I:offset within memo record to start get
 bytesToReadPtr IO:bytes to read/bytes actually read
 bufferPtr      IO:where to store the memo data read

This routine reads memo data starting at startOffset for the bytes specified.

The startOffset is from where in the memo record to start reading. The first byte is at startOffset=0. If the requested bytes to read would cause the read the exceed the memo size, the actual bytes read is returned in bytesToReadPtr.

The memoNo is the binary value of the memo field number in the DBF record.

Return: Non-zero indicates an error, otherwise the requested memo data is placed in bufferPtr and the number of bytes read placed in (at) bytesToReadPtr.


All content Copyright © 1999 Cornel Huth. All rights reserved.