#include "..\Include\Rtusbapi.h"

//------------------------------------------------------------------------------
// структура с версией библиотеки
//------------------------------------------------------------------------------
#define 	BUILDMAJOR	1 			// ноль или единица
#define 	BUILDMINOR	0			// пока только ноль

// строчка со старшим номером версии DLL
#if (VERMAJOR_RTUSBAPI == 0)
	#define STR_VER_MAJOR "0"
#elif (VERMAJOR_RTUSBAPI == 1)
	#define STR_VER_MAJOR "1"
#elif (VERMAJOR_RTUSBAPI == 2)
	#define STR_VER_MAJOR "2"
#elif (VERMAJOR_RTUSBAPI == 3)
	#define STR_VER_MAJOR "3"
#elif (VERMAJOR_RTUSBAPI == 4)
	#define STR_VER_MAJOR "4"
#elif (VERMAJOR_RTUSBAPI == 5)
	#define STR_VER_MAJOR "5"
#elif (VERMAJOR_RTUSBAPI == 6)
	#define STR_VER_MAJOR "6"
#elif (VERMAJOR_RTUSBAPI == 7)
	#define STR_VER_MAJOR "7"
#elif (VERMAJOR_RTUSBAPI == 8)
	#define STR_VER_MAJOR "8"
#elif (VERMAJOR_RTUSBAPI == 9)
	#define STR_VER_MAJOR "9"
#endif

// строчка с младшим номером версии DLL
#if (VERMINOR_RTUSBAPI == 0)
	#define STR_VER_MINOR "0"
#elif (VERMINOR_RTUSBAPI == 1)
	#define STR_VER_MINOR "1"
#elif (VERMINOR_RTUSBAPI == 2)
	#define STR_VER_MINOR "2"
#elif (VERMINOR_RTUSBAPI == 3)
	#define STR_VER_MINOR "3"
#elif (VERMINOR_RTUSBAPI == 4)
	#define STR_VER_MINOR "4"
#elif (VERMINOR_RTUSBAPI == 5)
	#define STR_VER_MINOR "5"
#elif (VERMINOR_RTUSBAPI == 6)
	#define STR_VER_MINOR "6"
#elif (VERMINOR_RTUSBAPI == 7)
	#define STR_VER_MINOR "7"
#elif (VERMINOR_RTUSBAPI == 8)
	#define STR_VER_MINOR "8"
#elif (VERMINOR_RTUSBAPI == 9)
	#define STR_VER_MINOR "9"
#endif

#if (BUILDMAJOR == 0)
	#define STR_BUILD_MAJOR "0"
#elif (BUILDMAJOR == 1)
	#define STR_BUILD_MAJOR "1"
#endif

#if (BUILDMINOR == 0)
	#define STR_BUILD_MINOR "0"
#endif

#define FILEVER					VERMAJOR_RTUSBAPI,VERMINOR_RTUSBAPI,BUILDMAJOR,BUILDMINOR
#define PRODUCTVER				VERMAJOR_RTUSBAPI,VERMINOR_RTUSBAPI
#define STR_CUR_FILE_VER		STR_VER_MAJOR "." STR_VER_MINOR "." STR_BUILD_MAJOR "." STR_BUILD_MINOR "\0"
#define STR_CUR_PRODUCT_VER	STR_VER_MAJOR "." STR_VER_MINOR "\0"


VS_VERSION_INFO VERSIONINFO
FILEVERSION FILEVER
PRODUCTVERSION PRODUCTVER
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS VS_FF_PRERELEASE
FILETYPE VFT_DLL
FILESUBTYPE VFT2_UNKNOWN
FILEOS VOS__WINDOWS32
BEGIN
  BLOCK "StringFileInfo"
   BEGIN
	 BLOCK "041904E3" // 0x04E3=1251 Cyrillic charset
	  BEGIN
      VALUE "Comments",				"OS: Windows'2000/XP/Vista\0"
      VALUE "CompanyName", 		"R-Technology Ltd.\0"
      VALUE "FileDescription", 	"R-Technology USB 2.0 device DLL\0"
		VALUE "FileVersion", 		STR_CUR_FILE_VER
      VALUE "InternalName", 		"Rtusbapi\0"
      VALUE "LegalCopyright", 	"R-Technology Ltd., 2003-2004\0"
      VALUE "OriginalFileName", 	"Rtusbapi.dll\0"
		VALUE "ProductName", 		"\0"
		VALUE "ProductVersion", 	STR_CUR_PRODUCT_VER
	  END
	END
  BLOCK "VarFileInfo"
	BEGIN
     VALUE "Translation", 0x0419, 1251
   END
END

