mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
757 B
34 lines
757 B
#include "chrtns.h"
|
|
#include "chartns.pro"
|
|
|
|
VOID SO_ENTRYMOD SOPutArchiveField( wId, wLength, pField, dwUser1, dwUser2 )
|
|
WORD wId;
|
|
WORD wLength;
|
|
LPSTR pField;
|
|
DWORD dwUser1;
|
|
DWORD dwUser2;
|
|
{
|
|
SetupWorld();
|
|
|
|
// Leave room for the SO_ARCENDOFRECORD token, which will be
|
|
// applied at the end of the set of archive fields upon receipt of
|
|
// a break of type SO_ARCHIVEBREAK.
|
|
|
|
if( CHUNKBUFPTR + wLength + (3*sizeof(WORD)) > (BYTE VWPTR *)Chunker->Doc.Archive.IndexPtr )
|
|
CHSetupNewChunk( GETHFILTER(dwUser2) );
|
|
|
|
if( !Chunker->ChunkFinished )
|
|
{
|
|
SOPutWord( wId, dwUser1, dwUser2 );
|
|
SOPutWord( wLength, dwUser1, dwUser2 );
|
|
|
|
CHMemCopy( CHUNKBUFPTR, pField, wLength );
|
|
CHUNKBUFPTR += wLength;
|
|
|
|
Chunker->CurChunkSize += wLength;
|
|
}
|
|
|
|
RestoreWorld();
|
|
}
|
|
|
|
|