home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / smpxp.h < prev    next >
Text File  |  1998-04-25  |  4KB  |  89 lines

  1. /*
  2.  *  S M P X P . H
  3.  *
  4.  *  Definitions used by the Microsoft Sample Transport provider
  5.  *  for service entry calls.
  6.  *
  7.  *  The following MAPI-defined properties are settable in service
  8.  *  entry calls for the Sample Transport Provider.
  9.  *  
  10.  *  Copyright 1993-1995 Microsoft Corporation. All Rights Reserved.
  11.  */
  12.  
  13. #define BASE_ID 0x6600      /* From MAPITAGS.H comments */
  14.  
  15. #define PR_SAMPLE_DISPLAY_NAME      PROP_TAG (PT_TSTRING,   (BASE_ID + 0x0001))
  16. #define PR_SAMPLE_EMAIL_ADDR_TYPE   PROP_TAG (PT_TSTRING,   (BASE_ID + 0x0002))
  17. #define PR_SAMPLE_EMAIL_ADDRESS     PROP_TAG (PT_TSTRING,   (BASE_ID + 0x0003))
  18. #define PR_SAMPLE_INBOUND_DIR       PROP_TAG (PT_TSTRING,   (BASE_ID + 0x0004))
  19. #define PR_SAMPLE_OUTBOUND_DIR      PROP_TAG (PT_TSTRING,   (BASE_ID + 0x0005))
  20. #define PR_SAMPLE_FILENAME          PROP_TAG (PT_TSTRING,   (BASE_ID + 0x0006))
  21. #define PR_SAMPLE_DIRECTORY         PROP_TAG (PT_TSTRING,   (BASE_ID + 0x0007))
  22. #define PR_SAMPLE_FLAGS             PROP_TAG (PT_LONG,      (BASE_ID + 0x0008))
  23.  
  24. #define PR_SAMPLE_FLAG_PEER_TO_PEER ((ULONG) 0x00000001)
  25. #define PR_SAMPLE_FLAG_UI_ALWAYS    ((ULONG) 0x00000002)
  26. #define PR_SAMPLE_FLAG_LOG_EVENTS   ((ULONG) 0x00000004)
  27. #define PR_SAMPLE_FLAG_SAVE_DATA    ((ULONG) 0x00000008)
  28.  
  29. #define PR_SAMPLE_LOGFILE           PROP_TAG (PT_TSTRING,   (BASE_ID + 0x0009))
  30. #define PR_SAMPLE_LOGHIGHWATER      PROP_TAG (PT_LONG,      (BASE_ID + 0x000A))
  31. #define PR_SAMPLE_LOGLOWWATER       PROP_TAG (PT_LONG,      (BASE_ID + 0x000B))
  32.  
  33. /* 
  34.  *  The following is a description of each of the Sample Tranpsort 
  35.  *  Provider properties:
  36.  *
  37.  *  PR_SAMPLE_DISPLAY_NAME
  38.  *      Display name of user.
  39.  *
  40.  *  PR_SAMPLE_EMAIL_ADDR_TYPE
  41.  *      Address type of sample transport. This will be used to construct inbound
  42.  *      and outbound addresses where needed. It also will be used to tell the
  43.  *      Spooler what address types we should get.
  44.  *
  45.  *  PR_SAMPLE_EMAIL_ADDRESS
  46.  *      Email address. This will usually be the same as the inbound directory,
  47.  *      although this may tend to have a more canonical form for remote access.
  48.  *
  49.  *  PR_SAMPLE_INBOUND_DIR
  50.  *      Inbound directory. This is where the transport will look in order to
  51.  *      determine whether it has received any mail.
  52.  *
  53.  *  PR_SAMPLE_OUTBOUND_DIR
  54.  *      Outbound directory. The transport will store its message files here
  55.  *      while it is in the process of sending them. The presence of a file
  56.  *      in this directory implies that the transport still has work to do.
  57.  *
  58.  *  PR_SAMPLE_FILENAME
  59.  *      Filename. This is an 8-character root for use by mail-enabled or
  60.  *      workgroup applications to build a complete file specification (by
  61.  *      adding an extension) for data they wish to store for this user.
  62.  *
  63.  *  PR_SAMPLE_DIRECTORY
  64.  *      Directory. This is a directory in which workgroup applications may
  65.  *      wish to store their files pertaining to this user.
  66.  *
  67.  *  PR_SAMPLE_FLAGS
  68.  *      Flags. Contain various options for this transport provider.
  69.  *      Valid values are:
  70.  *
  71.  *          PR_SAMPLE_FLAG_PEER_TO_PEER
  72.  *          PR_SAMPLE_FLAG_UI_ALWAYS
  73.  *          PR_SAMPLE_FLAG_LOG_EVENTS
  74.  *          PR_SAMPLE_FLAG_SAVE_DATA
  75.  *
  76.  *  PR_SAMPLE_LOGFILE
  77.  *      Logfile. This is where logging information will be written. If this
  78.  *      property is not present, we will use (PR_SAMPLE_FILENAME)".LOG"
  79.  *
  80.  *  PR_SAMPLE_LOGHIGHWATER
  81.  *      Logfile high water mark. This is the point at which the log writer will
  82.  *      truncate the logfile so as not to fill up the disk.
  83.  *
  84.  *  PR_SAMPLE_LOGLOWWATER
  85.  *      Logfile low water mark. This is the approximate size that the logfile
  86.  *      writer will truncate the logfile to (modulo a line ending).
  87.  */
  88.  
  89.