2003-06-09 18:59:14 +00:00
|
|
|
// ResourceVersionInfo.h: interface for the CResourceVersionInfo class.
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#if !defined(AFX_RESOURCEVERSIONINFO_H__80439ADA_49DA_4623_8DA9_1663FF356E76__INCLUDED_)
|
|
|
|
#define AFX_RESOURCEVERSIONINFO_H__80439ADA_49DA_4623_8DA9_1663FF356E76__INCLUDED_
|
|
|
|
|
|
|
|
#if _MSC_VER > 1000
|
|
|
|
#pragma once
|
|
|
|
#endif // _MSC_VER > 1000
|
|
|
|
|
2004-03-29 20:21:00 +00:00
|
|
|
#include "exehead/config.h"
|
2003-06-09 18:59:14 +00:00
|
|
|
#ifdef NSIS_SUPPORT_VERSION_INFO
|
|
|
|
|
2004-03-29 20:21:00 +00:00
|
|
|
#include "Platform.h"
|
|
|
|
#include "strlist.h"
|
|
|
|
#ifndef _WIN32
|
|
|
|
// all definitions for non Win32 platforms were taken from MinGW's free Win32 library
|
|
|
|
typedef struct tagVS_FIXEDFILEINFO {
|
2004-08-13 20:01:12 +00:00
|
|
|
DWORD dwSignature;
|
|
|
|
DWORD dwStrucVersion;
|
|
|
|
DWORD dwFileVersionMS;
|
|
|
|
DWORD dwFileVersionLS;
|
|
|
|
DWORD dwProductVersionMS;
|
|
|
|
DWORD dwProductVersionLS;
|
|
|
|
DWORD dwFileFlagsMask;
|
|
|
|
DWORD dwFileFlags;
|
|
|
|
DWORD dwFileOS;
|
|
|
|
DWORD dwFileType;
|
|
|
|
DWORD dwFileSubtype;
|
|
|
|
DWORD dwFileDateMS;
|
|
|
|
DWORD dwFileDateLS;
|
2004-03-29 20:21:00 +00:00
|
|
|
} VS_FIXEDFILEINFO;
|
|
|
|
#endif
|
2003-06-09 18:59:14 +00:00
|
|
|
|
2004-10-11 14:23:45 +00:00
|
|
|
struct version_string_list;
|
2003-06-12 00:06:23 +00:00
|
|
|
|
|
|
|
class CVersionStrigList : public SortedStringListND<struct version_string_list>
|
|
|
|
{
|
|
|
|
public:
|
2004-10-11 14:23:45 +00:00
|
|
|
~CVersionStrigList();
|
|
|
|
int add(LANGID langid, int codepage);
|
|
|
|
LANGID get_lang(int idx);
|
|
|
|
int get_codepage(int idx);
|
|
|
|
DefineList* get_strings(int idx);
|
|
|
|
int find(LANGID lang_id, int codepage);
|
|
|
|
int getlen();
|
|
|
|
int getnum();
|
2003-06-12 00:06:23 +00:00
|
|
|
};
|
|
|
|
|
2003-06-09 18:59:14 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
class CResourceVersionInfo
|
|
|
|
{
|
2004-10-11 14:23:45 +00:00
|
|
|
VS_FIXEDFILEINFO m_FixedInfo;
|
|
|
|
CVersionStrigList m_ChildStringLists;
|
2003-06-09 18:59:14 +00:00
|
|
|
|
|
|
|
public:
|
2004-10-11 14:23:45 +00:00
|
|
|
CResourceVersionInfo();
|
|
|
|
virtual ~CResourceVersionInfo();
|
|
|
|
int SetKeyValue(LANGID lang_id, int codepage, char* AKeyName, char* AValue);
|
|
|
|
void SetFileFlags(int Value);
|
|
|
|
void SetFileVersion(int HighPart, int LowPart);
|
|
|
|
void SetProductVersion(int HighPart, int LowPart);
|
|
|
|
void ExportToStream(GrowBuf &strm, int Index);
|
|
|
|
int GetStringTablesCount();
|
|
|
|
LANGID GetLangID(int Index);
|
|
|
|
int GetCodePage(int Index);
|
|
|
|
char *FindKey(LANGID LangID, int codepage, char *pKeyName);
|
2003-06-09 18:59:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // !defined(AFX_RESOURCEVERSIONINFO_H__80439ADA_49DA_4623_8DA9_1663FF356E76__INCLUDED_)
|