summaryrefslogtreecommitdiff
path: root/plugins/AutoRun
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AutoRun')
-rw-r--r--plugins/AutoRun/autorun.vcxproj2
-rw-r--r--plugins/AutoRun/autorun.vcxproj.filters6
-rw-r--r--plugins/AutoRun/res/Version.rc42
-rw-r--r--plugins/AutoRun/res/autorun.rc6
-rw-r--r--plugins/AutoRun/src/Version.h20
-rw-r--r--plugins/AutoRun/src/autorun.h1
-rw-r--r--plugins/AutoRun/src/main.cpp14
7 files changed, 81 insertions, 10 deletions
diff --git a/plugins/AutoRun/autorun.vcxproj b/plugins/AutoRun/autorun.vcxproj
index a4a08d5961..615781c29a 100644
--- a/plugins/AutoRun/autorun.vcxproj
+++ b/plugins/AutoRun/autorun.vcxproj
@@ -177,9 +177,11 @@
<ItemGroup>
<ClInclude Include="src\autorun.h" />
<ClInclude Include="src\resource.h" />
+ <ClInclude Include="src\Version.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\autorun.rc" />
+ <ResourceCompile Include="res\Version.rc" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\main.cpp" />
diff --git a/plugins/AutoRun/autorun.vcxproj.filters b/plugins/AutoRun/autorun.vcxproj.filters
index e0a1e8b887..30ebec2d72 100644
--- a/plugins/AutoRun/autorun.vcxproj.filters
+++ b/plugins/AutoRun/autorun.vcxproj.filters
@@ -21,11 +21,17 @@
<ClInclude Include="src\resource.h">
<Filter>Header Files</Filter>
</ClInclude>
+ <ClInclude Include="src\Version.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\autorun.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
+ <ResourceCompile Include="res\Version.rc">
+ <Filter>Resource Files</Filter>
+ </ResourceCompile>
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\main.cpp">
diff --git a/plugins/AutoRun/res/Version.rc b/plugins/AutoRun/res/Version.rc
new file mode 100644
index 0000000000..d741488c4f
--- /dev/null
+++ b/plugins/AutoRun/res/Version.rc
@@ -0,0 +1,42 @@
+// Microsoft Visual C++ generated resource script.
+//
+#ifdef APSTUDIO_INVOKED
+#error this file is not editable by Microsoft Visual C++
+#endif //APSTUDIO_INVOKED
+
+#include "afxres.h"
+#include "..\src\version.h"
+
+#ifdef _WIN32
+LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
+#endif //_WIN32
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION __FILEVERSION_STRING
+ PRODUCTVERSION __FILEVERSION_STRING
+ FILEFLAGSMASK 0x17L
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x0L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "000004b0"
+ BEGIN
+ VALUE "FileDescription", __DESCRIPTION
+ VALUE "InternalName", __PLUGIN_NAME
+ VALUE "LegalCopyright", __COPYRIGHT
+ VALUE "OriginalFilename", __FILENAME
+ VALUE "ProductName", __PLUGIN_NAME
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x0, 1200
+ END
+END
diff --git a/plugins/AutoRun/res/autorun.rc b/plugins/AutoRun/res/autorun.rc
index be67468295..889686ed3d 100644
--- a/plugins/AutoRun/res/autorun.rc
+++ b/plugins/AutoRun/res/autorun.rc
@@ -45,18 +45,18 @@ END
// TEXTINCLUDE
//
-1 TEXTINCLUDE DISCARDABLE
+1 TEXTINCLUDE
BEGIN
"..\\src\\resource.h\0"
END
-2 TEXTINCLUDE DISCARDABLE
+2 TEXTINCLUDE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END
-3 TEXTINCLUDE DISCARDABLE
+3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
diff --git a/plugins/AutoRun/src/Version.h b/plugins/AutoRun/src/Version.h
new file mode 100644
index 0000000000..cfb9a5c0a6
--- /dev/null
+++ b/plugins/AutoRun/src/Version.h
@@ -0,0 +1,20 @@
+#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 1
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 1
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+#define __FILEVERSION_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM
+
+#define __STRINGIFY_IMPL(x) #x
+#define __STRINGIFY(x) __STRINGIFY_IMPL(x)
+#define __VERSION_STRING __STRINGIFY(__FILEVERSION_DOTS)
+
+#define __PLUGIN_NAME "AutoRun"
+#define __INTERNAL_NAME "AutoRun"
+#define __FILENAME "AutoRun.dll"
+#define __DESCRIPTION "his plugin is a simple way to enable/disable to launch Miranda NG with system startup."
+#define __AUTHOR "Sergey V. Gershovich a.k.a. Jazzy$ (fixed by Wolfram3D)"
+#define __AUTHOREMAIL ""
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "2002-2007 Sergey V. Gershovich a.k.a. Jazzy$"
diff --git a/plugins/AutoRun/src/autorun.h b/plugins/AutoRun/src/autorun.h
index 4d0900fcf0..36d951cff0 100644
--- a/plugins/AutoRun/src/autorun.h
+++ b/plugins/AutoRun/src/autorun.h
@@ -10,6 +10,7 @@
#include <win2k.h>
#include "resource.h"
+#include "Version.h"
#define SUB_KEY _T("Software\\Microsoft\\Windows\\CurrentVersion\\Run")
#define ModuleName "Autorun"
diff --git a/plugins/AutoRun/src/main.cpp b/plugins/AutoRun/src/main.cpp
index fb9272ac56..da5b605fc1 100644
--- a/plugins/AutoRun/src/main.cpp
+++ b/plugins/AutoRun/src/main.cpp
@@ -6,13 +6,13 @@ int hLangpack;
PLUGININFOEX pluginInfoEx=
{ // about plugin
sizeof(PLUGININFOEX),
- "Autorun",
- PLUGIN_MAKE_VERSION(0,1,0,1),
- "This plugin is a simple way to enable/disable to launch Miranda NG with system startup.",
- "Sergey V. Gershovich a.k.a. Jazzy$ (fixed by Wolfram3D)",
- "",
- "Copyright © 2002-2007 Sergey V. Gershovich a.k.a. Jazzy$",
- "http://miranda-ng.org/",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
MIID_AUTORUN
};