summaryrefslogtreecommitdiff
path: root/plugins/ChangeKeyboardLayout/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ChangeKeyboardLayout/main.c')
-rw-r--r--plugins/ChangeKeyboardLayout/main.c42
1 files changed, 3 insertions, 39 deletions
diff --git a/plugins/ChangeKeyboardLayout/main.c b/plugins/ChangeKeyboardLayout/main.c
index 23bbb9359e..82f5f8f167 100644
--- a/plugins/ChangeKeyboardLayout/main.c
+++ b/plugins/ChangeKeyboardLayout/main.c
@@ -6,11 +6,7 @@ int hLangpack;
PLUGININFOEX pluginInfoEx={
sizeof(PLUGININFOEX),
- #if defined (_UNICODE)
- "Change Keyboard Layout (Unicode)",
- #else
- "Change Keyboard Layout (ANSI)",
- #endif
+ "Change Keyboard Layout",
VERSION,
"Plugin for change keyboard layout of text (multilayout).",
"Yasnovidyashii",
@@ -18,28 +14,10 @@ PLUGININFOEX pluginInfoEx={
"© 2006-2009 Mikhail Yur'ev",
"http://lemnews.com/forum/viewtopic.php?t=1493",
0, //not transient
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE, //doesn't replace anything built-in
{0xc5ef53a8, 0x80d4, 0x4ce9, { 0xb3, 0x41, 0xec, 0x90, 0xd3, 0xec, 0x91, 0x56 }} //{c5ef53a8-80d4-4ce9-b341-ec90d3ec9156}
};
-PLUGININFO pluginInfo={
- sizeof(PLUGININFO),
- #if defined (_UNICODE)
- "Change Keyboard Layout (UNICODE)",
- #else
- "Change Keyboard Layout (ANSI)",
- #endif
- VERSION,
- "Plugin for change keyboard layout of text (multilayout)",
- "Yasnovidyashii",
- "Yasnovidyashii@gmail.com",
- "© 2006-2009 Mikhail Yur'ev",
- "http://lemnews.com/forum/viewtopic.php?t=1493",
- 0, //not transient
- 0 //doesn't replace anything built-in
-};
-
-
LPCTSTR ptszKeybEng=_T("`1234567890-=\\qwertyuiop[]asdfghjkl;'zxcvbnm,./~!@#$%^&*()_+|QWERTYUIOP{}ASDFGHJKL:\"ZXCVBNM<>?");
HKL hklEng=(HKL)0x04090409;
@@ -62,24 +40,10 @@ __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
return &pluginInfoEx;
}
-__declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
-{
- dwMirandaVersion = mirandaVersion;
- return &pluginInfo;
-}
-
-
-#if defined (_UNICODE)
- static const MUUID interfaces[] = {MIID_CKL_UNICODE, MIID_LAST};
-#else
- static const MUUID interfaces[] = {MIID_CKL_ANSI, MIID_LAST};
-#endif
+static const MUUID interfaces[] = {{0xc5ef53a8, 0x80d4, 0x4ce9, { 0xb3, 0x41, 0xec, 0x90, 0xd3, 0xec, 0x91, 0x56 }}, MIID_LAST};
__declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
{
- #if defined (_UNICODE)
- pluginInfoEx.flags = 1; // dynamic UNICODE_AWARE
- #endif
return interfaces;
}