1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#include "stdafx.h"
int hLangpack;
HINSTANCE g_hInst;
HANDLE hDummyService;
PLUGININFOEX pluginInfo =
{
sizeof(PLUGININFOEX),
__PLUGIN_NAME,
PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
__DESCRIPTION,
__AUTHOR,
__AUTHOREMAIL,
__COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
// {31AAEF41-1411-487E-86E2-C484F4174283}
{ 0x31aaef41, 0x1411, 0x487e, { 0x86, 0xe2, 0xc4, 0x84, 0xf4, 0x17, 0x42, 0x83 } }
};
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD, LPVOID)
{
g_hInst = hInstance;
return TRUE;
}
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &pluginInfo;
}
extern "C" int __declspec(dllexport) Load(void)
{
mir_getLP(&pluginInfo);
HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
hDummyService = CreateServiceFunction(MODULENAME "/DummyService", DummyService);
return 0;
}
extern "C" int __declspec(dllexport) Unload(void)
{
if (hDummyService)
DestroyServiceFunction(hDummyService);
return 0;
}
|