Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
4.3 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // msvidctl.rc2 : custom resources for registering tuning spaces
  4. // Copyright (c) Microsoft Corporation 2000.
  5. //
  6. // put the proper version resource where devstudio won't mangle it.
  7. #ifndef _MAC
  8. /////////////////////////////////////////////////////////////////////////////
  9. //
  10. // Version
  11. //
  12. // note: this whole version stamp is complex and fragile for a variety of stupid reasons outside
  13. // of our control. for starters, dshow used to be its own stand alone product so they have their
  14. // own version system which can't be unified with NT until version 6 without creating compatbility
  15. // problems. second, we've also shipped as part of dx8 which has yet a 3rd scheme for version control.
  16. // dshow has a magic cascade of include files and #define overrides which nobody on the planet
  17. // understands but which empirically cause the right thing to happen. since we're part of dshow
  18. // we'd like to just use that. but, since we're not a filter that doesn't work. so, what
  19. // we've done is make a private copy of what dshow does, along with necessary modifications to
  20. // correct for the fact that we're not a filter, here in this file.
  21. // our .dll should be manually checked for each new product to be sure this version stamp
  22. // is correct early enough in the cycle to fix it if we've got something wrong.
  23. #include <ntverp.h>
  24. #ifdef QBUILD_VER
  25. // take a product version from DShow (by including below)
  26. #include <qbuild.ver>
  27. #define TMP_BUILQFE VERSION_RES_BLD_MAJOR
  28. #ifdef DXBUILD_VER
  29. // in case we are build under DX8 take build number from DX8
  30. #include <verinfo.h>
  31. #define TMP_BUILDVER BUILD_NUMBER
  32. #else
  33. // otherwise use NT build number
  34. #define TMP_BUILDVER VER_PRODUCTBUILD
  35. #endif
  36. // translate the above into common.ver terms
  37. #undef VER_PRODUCTVERSION
  38. #define VER_PRODUCTVERSION VERSION_RES_VER_MAJOR, VERSION_RES_VER_MINOR, VER_PRODUCTBUILD, VER_PRODUCTBUILD_QFE
  39. #undef VER_PRODUCTVERSION_STRING
  40. #define VER_PRODUCTVERSION_STRING VER_PRODUCTVERSION_MAJORMINOR1(VERSION_RES_VER_MAJOR, VERSION_RES_VER_MINOR)
  41. #undef VER_PRODUCTVERSION_STR
  42. #define VER_PRODUCTVERSION_STR VER_PRODUCTVERSION_STR1(VER_PRODUCTBUILD, VER_PRODUCTBUILD_QFE)
  43. #undef VER_PRODUCTNAME_STR
  44. #define VER_PRODUCTNAME_STR "DirectShow\0"
  45. #undef VER_LEGALCOPYRIGHT_STR
  46. #define VER_LEGALCOPYRIGHT_STR "Copyright (C) 1992-2001 Microsoft Corp.\0"
  47. #undef VER_COMPANYNAME_STR
  48. #define VER_COMPANYNAME_STR "Microsoft Corporation\0"
  49. #endif //QBUILD_VER
  50. #ifndef FINAL
  51. #define FINAL
  52. #endif
  53. #ifndef OFFICIAL
  54. #define VER_PRIVATEBUILD VS_FF_PRIVATEBUILD
  55. #else
  56. #define VER_PRIVATEBUILD 0
  57. #endif
  58. #ifndef FINAL
  59. #define VER_PRERELEASE VS_FF_PRERELEASE
  60. #else
  61. #define VER_PRERELEASE 0
  62. #endif
  63. #undef VER_DEBUG
  64. #ifdef DEBUG
  65. #define VER_DEBUG VS_FF_DEBUG
  66. #elif DBG
  67. #define VER_DEBUG VS_FF_DEBUG
  68. #else
  69. #define VER_DEBUG 0
  70. #endif
  71. #define VER_FILETYPE VFT_DLL
  72. #define VER_FILESUBTYPE VFT2_UNKNOWN
  73. #define VER_FILEDESCRIPTION_STR "ActiveX control for streaming video"
  74. #define VER_INTERNALNAME_STR "MSVidCtl"
  75. #define VER_OLESELFREGISTER 1
  76. #include <common.ver>
  77. #endif // !_MAC
  78. #include "msvidctlerrors.rc"
  79. //#include "tvegseg.rc"
  80. //#include "cagseg.rc"
  81. IDR_CANONICAL_ANALOG_CABLE TUNINGSPACE "res\\analogcable.rgs"
  82. IDR_CANONICAL_ANALOG_ANTENNA TUNINGSPACE "res\\analogantenna.rgs"
  83. IDR_CANONICAL_ATSC TUNINGSPACE "res\\atsc.rgs"
  84. IDR_CANONICAL_OPEN_CABLE TUNINGSPACE "res\\opencable.rgs"
  85. IDR_CANONICAL_AUXIN1 TUNINGSPACE "res\\auxin1.rgs"
  86. //#if !defined(MAKE_RC_DWORD) && !defined(MAKE_RC_DWORD2)
  87. #define MAKE_RC_DWORD2(x) x##L
  88. #define MAKE_RC_DWORD(y) MAKE_RC_DWORD2(y)
  89. //#endif
  90. IDR_CANONICAL_TUNINGSPACE_LIST RGSLIST {
  91. 5L, // count of subsequent entries
  92. MAKE_RC_DWORD(IDR_CANONICAL_ANALOG_CABLE),
  93. MAKE_RC_DWORD(IDR_CANONICAL_ANALOG_ANTENNA),
  94. MAKE_RC_DWORD(IDR_CANONICAL_ATSC),
  95. MAKE_RC_DWORD(IDR_CANONICAL_OPEN_CABLE),
  96. MAKE_RC_DWORD(IDR_CANONICAL_AUXIN1),
  97. }
  98. // end of file - msvidctl.rc2