summaryrefslogtreecommitdiff
path: root/plugins/UserGuide/src/main.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-03-10 15:11:51 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-03-10 15:11:51 +0000
commit9a4be1a673e76cb205a11076b7d8162eb593feab (patch)
treebbce00f876892597acfe175cdacfdaf619c398d2 /plugins/UserGuide/src/main.cpp
parent1f3f113b2ec9edcde5122b0ea9313b98d83ba55e (diff)
added precompiled header
added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@3962 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserGuide/src/main.cpp')
-rw-r--r--plugins/UserGuide/src/main.cpp32
1 files changed, 15 insertions, 17 deletions
diff --git a/plugins/UserGuide/src/main.cpp b/plugins/UserGuide/src/main.cpp
index 1e99ce017f..5650084b91 100644
--- a/plugins/UserGuide/src/main.cpp
+++ b/plugins/UserGuide/src/main.cpp
@@ -2,24 +2,24 @@
HINSTANCE hInst;
-HANDLE hModulesLoaded, hShowGuide;
+HANDLE hShowGuide;
int hLangpack;
-PLUGININFOEX pluginInfo={
+PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
- "User Guide Plugin",
- PLUGIN_MAKE_VERSION(0,0,0,1),
- "This plug-in adds the main menu item used to view miranda-im pack user guide.",
- "Yasnovidyashii",
- "yasnovidyashii@gmail.com",
- "© 2009 Mikhail Yuriev",
- "http://miranda-ng.org/",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
- {0x297ec1e7, 0x41b7, 0x41f9, { 0xbb, 0x91, 0xef, 0xa9, 0x50, 0x28, 0xf1, 0x6c }} //297ec1e7-41b7-41f9-bb91-efa95028f16c
-
+ // 297EC1E7-41B7-41F9-BB91-EFA95028F16C
+ {0x297ec1e7, 0x41b7, 0x41f9, {0xbb, 0x91, 0xef, 0xa9, 0x50, 0x28, 0xf1, 0x6c}}
};
-static INT_PTR ShowGuideFile(WPARAM wParam,LPARAM lParam)
+static INT_PTR ShowGuideFile(WPARAM wParam, LPARAM lParam)
{
DBVARIANT dbv = {0};
int iRes;
@@ -78,7 +78,7 @@ static INT_PTR ShowGuideFile(WPARAM wParam,LPARAM lParam)
return 0;
}
-int ModulesLoaded(WPARAM wParam,LPARAM lParam)
+int ModulesLoaded(WPARAM wParam, LPARAM lParam)
{
hShowGuide = CreateServiceFunction("UserGuide/ShowGuide", ShowGuideFile);
@@ -93,7 +93,7 @@ int ModulesLoaded(WPARAM wParam,LPARAM lParam)
return 0;
}
-BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
hInst = hinstDLL;
return TRUE;
@@ -107,15 +107,13 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda
extern "C" __declspec(dllexport) int Load(void)
{
-
mir_getLP(&pluginInfo);
- hModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED,ModulesLoaded);
+ HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded);
return 0;
}
extern "C" __declspec(dllexport) int Unload(void)
{
- UnhookEvent(hModulesLoaded);
DestroyServiceFunction(hShowGuide);
return 0;
} \ No newline at end of file