FaxMan SDK Version 4.7
FaxLogNextBlock Example

FaxLogNextBlock Example

 

 ' This code retrieves 100 log entries at a time 

 

 WORD nEntries;

 PSEND_FAX pSF;

 

 nEntries = 100;

 

 FaxLogNextBlock(m_pAppInfo, &pSF, &nEntries);

 

 while( nEntries) {

  PSEND_FAX pOrigSF;

 

  pOrigSF = pSF;

 

  while( nEntries-- ) {

   AddToLogList( pSF );

   pSF =(PSEND_FAX) ((LPSTR)pSF + pSF->wStructSize);

  }

 

  ' We must free the block of entries returned to us from FaxLogNextBlock  

  GlobalFreePtr( pOrigSF );

 

  nEntries = 100;

 

  FaxLogNextBlock(m_pAppInfo, &pSF, &nEntries);

 }

 

 


© 2013 Data Techniques, Inc. All Rights Reserved.

Send comments on this topic.