home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / sdk / mapi / win16 / dev / sample.xp / xpresrc.rc < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-11  |  5.6 KB  |  158 lines

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