From ab734942de075bf5af260cd83f6e0b3f4de15f1a Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 24 Jul 2015 09:24:35 +0000 Subject: HwHotKeys: common project git-svn-id: http://svn.miranda-ng.org/main/trunk@14667 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HwHotKeys/src/stdafx.h | 87 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 plugins/HwHotKeys/src/stdafx.h (limited to 'plugins/HwHotKeys/src/stdafx.h') diff --git a/plugins/HwHotKeys/src/stdafx.h b/plugins/HwHotKeys/src/stdafx.h new file mode 100644 index 0000000000..162b14a481 --- /dev/null +++ b/plugins/HwHotKeys/src/stdafx.h @@ -0,0 +1,87 @@ +/* ============================================================================ +Hardware HotKeys plugin for Miranda NG. +Copyright © Eugene f2065, http://f2065.narod.ru, f2065 mail.ru, ICQ 35078112 + +This program is free software; you can redistribute it and / or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 - 1307, USA. +============================================================================ */ + +#include +#include + +#include +#include +#include +#include +#include + +#include + +#include "resource.h" +#include "Version.h" + +int initializeOptions(WPARAM, LPARAM); +INT_PTR CALLBACK OptDlgProc(HWND, UINT, WPARAM, LPARAM); +VOID HwHotKeys_PrintFullKeyname(DWORD); +BOOL HwHotKeys_CompareCurrentScancode(DWORD); +LRESULT CALLBACK key_hook(INT, WPARAM, LPARAM); +extern CLIST_INTERFACE *pcli; + + +extern HINSTANCE hInstance; +extern INT hLangpack; +extern HWND hDialogWnd; // глобально используется для вывода туда в реалтайме сканкодов клавы, из хука +extern HHOOK hHook; + +extern DWORD code_Close_tmp; +extern DWORD code_HideShow_tmp; +extern DWORD code_ReadMsg_tmp; +extern DWORD code_Close; +extern DWORD code_HideShow; +extern DWORD code_ReadMsg; + +extern DWORD key_code; +extern DWORD key_code_raw; +extern DWORD key_code_assign; + + +extern CHAR key_name_buffer[150]; +extern const CHAR *key_tab[0x200]; + +extern const CHAR *t_CL; +extern const CHAR *t_CR; +extern const CHAR *t_CC; +extern const CHAR *t_AL; +extern const CHAR *t_AR; +extern const CHAR *t_AA; +extern const CHAR *t_WL; +extern const CHAR *t_WR; +extern const CHAR *t_WW; +extern const CHAR *t_SL; +extern const CHAR *t_SR; +extern const CHAR *t_SS; + +// значения связаны с битами в HwHotKeys_CompareCurrentScancode +enum : DWORD { key_flag_sr = 0x01000000 }; +enum : DWORD { key_flag_cr = 0x02000000 }; +enum : DWORD { key_flag_ar = 0x04000000 }; +enum : DWORD { key_flag_wr = 0x08000000 }; +enum : DWORD { key_flag_sl = 0x10000000 }; +enum : DWORD { key_flag_cl = 0x20000000 }; +enum : DWORD { key_flag_al = 0x40000000 }; +enum : DWORD { key_flag_wl = 0x80000000 }; +enum : DWORD { key_flag_ss = 0x00100000 }; +enum : DWORD { key_flag_cc = 0x00200000 }; +enum : DWORD { key_flag_aa = 0x00400000 }; +enum : DWORD { key_flag_ww = 0x00800000 }; -- cgit v1.2.3