home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / dbmsg / mapi / peer.xp / xpqueue.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-11  |  1.4 KB  |  54 lines

  1. /*
  2.  -  X P Q U E U E . H
  3.  -
  4.  *  Purpose:
  5.  *      Background transmit queue definitions for Sample Transport Provider.
  6.  *
  7.  *  Copyright 1992-1995 Microsoft Corporation.  All Rights Reserved.
  8.  */
  9.  
  10. /* Structures used to build a adrlist from a recipient table. */
  11.  
  12. /* This is a lot like a ADRLIST except we keep track of the size of
  13. the contained ADRLIST for resizing purposes. */
  14.  
  15. typedef struct _myadrlist
  16. {
  17.     ULONG cMaxEntries;
  18.     LPADRLIST lpAdrList;
  19. } MYADRLIST, *LPMYADRLIST;
  20.  
  21. /* Prototype of callback function which can be invoked as part of
  22. operation of the HrBuildAdrList() function. */
  23.  
  24. typedef HRESULT (*LPMYCALLBACK) (LPXPL lpxpl,
  25.     LPSPropValue lpPropArray,
  26.     LPMESSAGE lpMessage,
  27.     ULONG ulRecipType,
  28.     LPTSTR lpszEmailAddress,
  29.     BOOL FAR * lpfSent);
  30.  
  31. /* Build one or two ADRLISTs for use by send/receive logic */
  32.  
  33. HRESULT HrBuildAdrList (LPXPL lpxpl,
  34.     LPSPropValue lpPropArray,
  35.     LPMESSAGE lpMessage,
  36.     LPMAPITABLE lpTable,
  37.     BOOL fSetResponsibility,
  38.     LPMYCALLBACK lpfnCallBack,
  39.     LPMYADRLIST FAR * lppMyAdrListGood,
  40.     LPMYADRLIST FAR * lppMyAdrListBad);
  41.  
  42. /* Send a single message from inside a restriction. */
  43.  
  44. HRESULT HrSendOneMessage (LPXPL lpxpl,
  45.     LPSPropValue lpPropArray,
  46.     LPMESSAGE lpMessage,
  47.     ULONG ulRecipType,
  48.     LPTSTR lpszEmailAddress,
  49.     BOOL FAR * lpfSent);
  50.  
  51. /* Free a MYADRLIST structure */
  52.  
  53. void FreeMyAdrList (LPXPL lpxpl, LPMYADRLIST lpMyAdrList);
  54.