SMH.RC
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:4k
源码类别:

Windows编程

开发平台:

Visual C++

  1. #include <windows.h>
  2. #ifdef  _WIN32
  3. #include <winver.h>
  4. #else
  5. #include <ver.h>
  6. #endif
  7. #define WINDOWS_INCLUDED
  8. #include <pdkver.h>
  9. #include <richedit.h>
  10. #include "smhrc.h"
  11. #include "smh.dlg"
  12. ID_ICON                                 ICON "smh.ico"
  13. ID_UpArrow                              BITMAP "up.bmp"
  14. ID_UpArrowInv                           BITMAP "upinv.bmp"
  15. ID_UpArrowDis                           BITMAP "updis.bmp"
  16. ID_DownArrow                            BITMAP "down.bmp"
  17. ID_DownArrowInv                         BITMAP "downinv.bmp"
  18. ID_DownArrowDis                         BITMAP "downdis.bmp"
  19. ID_Toolbar                              BITMAP "toolbar.bmp"
  20. STRINGTABLE DISCARDABLE
  21. BEGIN
  22.     SMH_ProviderName                    "Simple Mail Handler"
  23.     SMH_GeneralTab                      "General"
  24.     SMH_FilterTab                       "Filters"
  25.     SMH_ExclusionTab                    "Exclusions"
  26.     SMH_OofTab                          "Out-of-Office"
  27.     SMH_ResponsePage                    "Automated Response"
  28.     SMH_SoundsTab                       "New Mail Sounds"
  29.     SMH_FolderComment                   "SMH target folder"
  30. END
  31. /* File Version Stamp */
  32. #ifdef DEBUG
  33. #   define VER_FILEFLAGS                VS_FF_DEBUG | VS_FF_PRERELEASE
  34. #else
  35. #   define VER_FILEFLAGS                VS_FF_PRERELEASE
  36. #endif
  37. #if (rmm < 10)
  38. #define rmmpad "0"
  39. #else
  40. #define rmmpad
  41. #endif
  42. #if defined(DEBUG) || defined(TEST)
  43. #define SzVer(a,b,c)                    #a ".00." rmmpad #b "." #c
  44. #else
  45. #define SzVer(a,b,c)                    #a ".0"
  46. #endif
  47. #define VERSTR(a,b,c)                   SzVer(a,b,c)
  48. #define VER_FILEVERSION_STR             VERSTR(rmj, rmm, rup) ""
  49. #define VER_PRODUCTVERSION_STR          VERSTR(rmj, rmm, rup) ""
  50. #if defined(WIN95)
  51. #   define VER_FILE_OS                  VOS_DOS_WINDOWS32
  52. #   define VER_INTERNALNAME_STR         "SMH32"
  53. #   define VER_ORIGINALFILENAME_STR     "SMH32.DLL"
  54. #elif defined(WIN32)
  55. #   define VER_FILE_OS                  VOS_NT_WINDOWS32
  56. #   define VER_INTERNALNAME_STR         "SMH32"
  57. #   define VER_ORIGINALFILENAME_STR     "SMH32.DLL"
  58. #elif defined(WIN16)
  59. #   define VER_FILE_OS                  VOS_DOS_WINDOWS16
  60. #   define VER_INTERNALNAME_STR         "SMH"
  61. #   define VER_ORIGINALFILENAME_STR     "SMH.DLL"
  62. #endif
  63. /*
  64.  *  Version Stamp
  65.  *
  66.  */
  67. VS_VERSION_INFO VERSIONINFO
  68.     FILEVERSION             rmj,0,rmm,rup
  69.     PRODUCTVERSION          rmj,0,rmm,rup
  70.     FILEFLAGSMASK           0x3FL               /* This should not be changed */
  71.     FILEFLAGS               VER_FILEFLAGS
  72.     FILEOS                  VER_FILE_OS
  73.     FILETYPE                VFT_DLL             /* Look at the list of VFT_* values */
  74.     FILESUBTYPE             VFT2_UNKNOWN        /* Look at the list of VFT2_* values */
  75.     {
  76.         BLOCK "StringFileInfo"
  77.         {
  78.             BLOCK "040904E4" /* US English, Windows 3.10 ANSI */
  79.             {
  80.                 VALUE "ProductName",        "Microsoft Messaging API for Windows(TM)"
  81.                 VALUE "Comments",           "Sample Mail Handling Hook"
  82.                 VALUE "CompanyName",        "Microsoft Corporation"
  83.                 VALUE "FileDescription",    "Sample Mail Handling Hook Provider"
  84.                 VALUE "LegalCopyright",     "Copyright 251 Microsoft Corp. 1992-1995"
  85.                 VALUE "InternalName",       VER_INTERNALNAME_STR
  86.                 VALUE "OriginalFilename",   VER_ORIGINALFILENAME_STR
  87.                 VALUE "ProductVersion",     VER_PRODUCTVERSION_STR
  88.                 VALUE "FileVersion",        VER_FILEVERSION_STR
  89.             }
  90.         }
  91.         BLOCK "VarFileInfo"
  92.         {
  93.             VALUE "Translation", 0x0409, 0x04E4
  94.         }
  95.     }