From 73fb69da548b2469514784b08e0bfddb12e5121b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 23 May 2018 16:58:59 +0300 Subject: cosmetic fixes for testdll.dpr --- include/delphi/testdll.dpr | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/include/delphi/testdll.dpr b/include/delphi/testdll.dpr index 358bb15ed6..49d9670385 100644 --- a/include/delphi/testdll.dpr +++ b/include/delphi/testdll.dpr @@ -6,16 +6,6 @@ uses var PluginInterfaces:array [0..1] of MUUID; - PluginInfo.cbSize :=SizeOf(TPLUGININFOEX); - PluginInfo.shortName :='Plugin Template'; - PluginInfo.version :=$00000001; - PluginInfo.description:='The long description of your plugin, to go in the plugin options dialog'; - PluginInfo.author :='J. Random Hacker'; - PluginInfo.copyright :='(c) 2003 J. Random Hacker'; - PluginInfo.homepage :='http://miranda-icq.sourceforge.net/'; - PluginInfo.flags :=UNICODE_AWARE; - PluginInfo.uuid :=MIID_TESTPLUGIN;//'{08B86253-EC6E-4d09-B7A9-64ACDF0627B8}'; - function PluginMenuCommand(wParam: WPARAM; lParam: LPARAM):int_ptr; cdecl; begin Result:=0; @@ -24,9 +14,6 @@ begin MessageBox(0, 'Just groovy, baby!', 'Plugin-o-rama', MB_OK); end; -var - onloadhook:THANDLE; - function OnModulesLoaded(wParam:WPARAM;lParam:LPARAM):int;cdecl; var mi:TCListMenuItem; @@ -48,7 +35,7 @@ end; function Load():int; cdecl; begin Langpack_register; - onloadhook:=HookEvent(ME_SYSTEM_MODULESLOADED,@OnModulesLoaded); + HookEvent(ME_SYSTEM_MODULESLOADED,@OnModulesLoaded); Result:=0; end; @@ -70,4 +57,14 @@ exports MirandaPluginInterfaces; begin + PluginInfo.cbSize :=SizeOf(TPLUGININFOEX); + PluginInfo.shortName :='Plugin Template'; + PluginInfo.version :=$00000001; + PluginInfo.description:='The long description of your plugin, to go in the plugin options dialog'; + PluginInfo.author :='J. Random Hacker'; + PluginInfo.copyright :='(c) 2003 J. Random Hacker'; + PluginInfo.homepage :='http://miranda-icq.sourceforge.net/'; + PluginInfo.flags :=UNICODE_AWARE; + PluginInfo.uuid :=MIID_TESTPLUGIN;//'{08B86253-EC6E-4d09-B7A9-64ACDF0627B8}'; + end. -- cgit v1.2.3