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 / xpresrc.rc < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-11  |  5.4 KB  |  147 lines

  1. #include <windows.h>
  2. #ifdef  WIN32
  3. #include <winver.h>
  4. #else
  5. #include <ver.h>
  6. #endif
  7.  
  8. #define WINDOWS_INCLUDED
  9.  
  10. #include "xpresrc.h"
  11.  
  12. #include <pdkver.h>
  13.  
  14. #include "xpresrc.dlg"
  15.  
  16.  
  17. /*
  18.  *  String Table for sample TNEF Transport
  19.  *
  20.  */
  21.  
  22. STRINGTABLE
  23. {
  24.     /* Error Messages */
  25.         
  26.     IDS_SUCCESS,                    "Success"
  27.     IDS_E_BUSY,                     "The Transport Provider is currently busy"
  28.     IDS_E_CALL_FAILED,              "An unexpected error occured"
  29.     IDS_E_INVALID_PARAMETER,        "Invalid parameter passed to API"
  30.     IDS_E_NO_ACCESS,                "A resource is busy or you lack sufficient permissions"
  31.     IDS_E_NO_SUPPORT,               "Call not supported in this implementation"
  32.     IDS_E_NOT_FOUND,                "Not found"
  33.     IDS_E_UNKNOWN_FLAGS,            "Unknown flags"
  34.     IDS_E_VERSION,                  "Version mismatch"
  35.     IDS_E_NOT_ENOUGH_MEMORY,        "Insufficient memory to complete"
  36.     IDS_W_ERRORS_RETURNED,          "Call succeeded overall, but some errors were returned"
  37.  
  38.     /* Logon Dilaog Validation Errors */
  39.     
  40.     IDS_NO_DISPLAY_NAME,            "You must supply a Display Name for this Transport."
  41.     IDS_NO_ADDR_TYPE,               "You must specify the Email Type handled by this Transport."
  42.     IDS_NO_EMAIL_ADDRESS,           "You must supply an Email Address for this Transport session."
  43.     IDS_NO_INBOUND_DIR,             "You must specify an Inbound Directory where this Transport will look for new mail."
  44.     IDS_NO_OUTBOUND_DIR,            "You must specify an Outbound Directory for this Transport."
  45.     IDS_BAD_EMAIL_ADDRESS,          "You have entered an invalid UNC path for the Email Address."
  46.     IDS_BAD_INBOUND_DIR,            "You have entered an invalid path for the Inbound Directory."
  47.     IDS_UNC_DIR_MISMATCH,           "The Email Address and Inbound Directory must point to the same place."
  48.  
  49.     IDS_UNKNOWN_ERROR,              "An unknown error has occured"
  50.  
  51.     /* XDR Report Text */
  52.         
  53.     IDS_REPORT_TEXT_MSG,            "Failed to create message in directory "
  54.     
  55.     /* Status Table Strings */
  56.     
  57.     IDS_STATUS_OFFLINE,             "Off-Line"
  58.     IDS_STATUS_AVAILABLE,           "Available"
  59.     IDS_STATUS_ONLINE,              "On-Line"
  60.     IDS_STATUS_UPLOADING,           "Uploading messages..."
  61.     IDS_STATUS_DOWNLOADING,         "Downloading messages..."
  62.     IDS_STATUS_INFLUSHING,          "Inbound Flushing..."
  63.     IDS_STATUS_OUTFLUSHING,         "Outbound Flushing..."
  64.  
  65.     /* Configuration dialog title */
  66.  
  67.     IDS_CONFIG_TITLE,               "Configure Sample TNEF Transport"
  68.     IDS_BAD_LOGON_PROPS_TITLE,      "Transport Logon Props Error"
  69.     IDS_BAD_LOGON_PROPS_FORMAT,     "%s\r\n\r\nWould you like the opportunity to correct your mistake?"
  70. }
  71.  
  72.  
  73. #ifdef DEBUG                    
  74. #   define VER_FILEFLAGS                VS_FF_DEBUG | VS_FF_PRERELEASE
  75. #else
  76. #   define VER_FILEFLAGS                VS_FF_PRERELEASE
  77. #endif
  78.     
  79. #if (rmm < 10)
  80. #define rmmpad "0"
  81. #else
  82. #define rmmpad
  83. #endif
  84.  
  85. #if defined(DEBUG) || defined(TEST)
  86. #define SzVer(a,b,c)                #a ".00." rmmpad #b "." #c
  87. #else
  88. #define SzVer(a,b,c)                #a ".0"
  89. #endif
  90. #define VERSTR(a,b,c)               SzVer(a,b,c)
  91.  
  92. #define VER_FILEVERSION_STR         VERSTR(rmj, rmm, rup) "\0"
  93. #define VER_PRODUCTVERSION_STR          VERSTR(rmj, rmm, rup) "\0"
  94.  
  95. /* Windows 95 definitions are currently the same as NT, but may change */
  96.  
  97. #if defined(WIN95)
  98. #   define VER_FILE_OS                  VOS_NT_WINDOWS32
  99. #   define VER_INTERNALNAME_STR         "SMPXP32\0"
  100. #   define VER_ORIGINALFILENAME_STR     "SMPXP32.DLL\0"
  101. #elif defined(WIN32)
  102. #   define VER_FILE_OS                  VOS_NT_WINDOWS32
  103. #   define VER_INTERNALNAME_STR         "SMPXP32\0"
  104. #   define VER_ORIGINALFILENAME_STR     "SMPXP32.DLL\0"
  105. #elif defined(WIN16)
  106. #   define VER_FILE_OS                  VOS__WINDOWS16
  107. #   define VER_INTERNALNAME_STR         "SMPXP\0"
  108. #   define VER_ORIGINALFILENAME_STR     "SMPXP.DLL\0"
  109. #endif
  110.      
  111. /*
  112.  *  Version Stamp
  113.  *
  114.  */
  115.  
  116. VS_VERSION_INFO VERSIONINFO
  117.     FILEVERSION             rmj,0,rmm,rup
  118.     PRODUCTVERSION          rmj,0,rmm,rup
  119.     FILEFLAGSMASK           0x3FL               /* This should not be changed */
  120.     FILEFLAGS               VER_FILEFLAGS
  121.     FILEOS                  VER_FILE_OS
  122.     FILETYPE                VFT_DLL             /* Look at the list of VFT_* values */
  123.     FILESUBTYPE             VFT2_UNKNOWN        /* Look at the list of VFT2_* values */
  124.     {
  125.         BLOCK "StringFileInfo"
  126.         {
  127.             BLOCK "040904E4" /* US English, Windows 3.10 ANSI */
  128.             {
  129.                 VALUE "ProductName",        "Microsoft Messaging API for Windows(TM)\0"
  130.                 VALUE "Comments",           "Sample Transport Service Provider\0"
  131.                 VALUE "CompanyName",        "Microsoft Corporation\0"
  132.                 VALUE "FileDescription",    "Sample Transport Service Provider\0"
  133.                 VALUE "LegalCopyright",     "Copyright \251 Microsoft Corp. 1992-1995\0"
  134.                 VALUE "InternalName",       VER_INTERNALNAME_STR
  135.                 VALUE "OriginalFilename",   VER_ORIGINALFILENAME_STR
  136.                 VALUE "ProductVersion",     VER_PRODUCTVERSION_STR
  137.                 VALUE "FileVersion",        VER_FILEVERSION_STR
  138.             }
  139.         }
  140.  
  141.         BLOCK "VarFileInfo"
  142.         {
  143.             VALUE "Translation", 0x0409, 0x04E4
  144.         }
  145.     }
  146.  
  147.