home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / smpxp.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  3.8 KB  |  91 lines

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