summaryrefslogtreecommitdiff
path: root/plugins/ChangeKeyboardLayout/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ChangeKeyboardLayout/main.cpp')
-rw-r--r--plugins/ChangeKeyboardLayout/main.cpp24
1 files changed, 14 insertions, 10 deletions
diff --git a/plugins/ChangeKeyboardLayout/main.cpp b/plugins/ChangeKeyboardLayout/main.cpp
index 188813111c..f51977df2c 100644
--- a/plugins/ChangeKeyboardLayout/main.cpp
+++ b/plugins/ChangeKeyboardLayout/main.cpp
@@ -3,6 +3,16 @@
struct MM_INTERFACE mmi;
PLUGINLINK *pluginLink;
int hLangpack;
+LPTSTR ptszLayStrings[20];
+HANDLE hChangeLayout, hGetLayoutOfText, hChangeTextLayout;
+HICON hPopupIcon, hCopyIcon;
+HKL hklLayouts[20];
+BYTE bLayNum;
+HINSTANCE hInst;
+HHOOK kbHook_All;
+MainOptions moOptions;
+PopupOptions poOptions, poOptionsTemp;
+HANDLE hIcoLibIconsChanged;
PLUGININFOEX pluginInfoEx = {
sizeof(PLUGININFOEX),
@@ -26,22 +36,18 @@ LPCTSTR ptszSeparators = _T(" \t\n\r");
HANDLE hOptionsInitialize;
HANDLE hModulesLoaded;
-
BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
{
hInst = hinstDLL;
return TRUE;
}
-
-__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- dwMirandaVersion = mirandaVersion;
return &pluginInfoEx;
}
-
-int __declspec(dllexport) Load(PLUGINLINK *link)
+extern "C" __declspec(dllexport) int Load(PLUGINLINK *link)
{
pluginLink = link;
mir_getMMI(&mmi);
@@ -55,7 +61,7 @@ int __declspec(dllexport) Load(PLUGINLINK *link)
return 0;
}
-int __declspec(dllexport) Unload(void)
+extern "C" __declspec(dllexport) int Unload(void)
{
DWORD i;
@@ -70,6 +76,4 @@ int __declspec(dllexport) Unload(void)
DestroyServiceFunction(hChangeTextLayout);
UnhookWindowsHookEx(kbHook_All);
return 0;
-}
-
-
+} \ No newline at end of file