2010-02-26 11:43:19 +00:00
|
|
|
#pragma once
|
2007-09-07 18:22:43 +00:00
|
|
|
|
2008-01-09 08:34:47 +00:00
|
|
|
#include <windows.h>
|
|
|
|
#include <commctrl.h>
|
|
|
|
#include <cpl.h>
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <tchar.h>
|
|
|
|
#include <process.h>
|
|
|
|
|
2007-09-07 18:22:43 +00:00
|
|
|
typedef LONG (CALLBACK *CPLAPPLET_PROC)(VOID);
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
2007-10-20 11:08:23 +00:00
|
|
|
int idIcon;
|
|
|
|
int idName;
|
|
|
|
int idDescription;
|
|
|
|
CPLAPPLET_PROC AppletProc;
|
2007-09-07 18:22:43 +00:00
|
|
|
} APPLET, *PAPPLET;
|
|
|
|
|
|
|
|
extern HINSTANCE hApplet;
|
2008-04-20 07:34:59 +00:00
|
|
|
extern HANDLE hProcessHeap;
|
|
|
|
|
|
|
|
// Character Count of a layout ID like "00000409"
|
|
|
|
#define CCH_LAYOUT_ID 8
|
2007-09-07 18:22:43 +00:00
|
|
|
|
2008-04-24 17:57:48 +00:00
|
|
|
// Maximum Character Count of a ULONG in decimal
|
|
|
|
#define CCH_ULONG_DEC 10
|
|
|
|
|
2007-09-07 18:22:43 +00:00
|
|
|
/* input.c */
|
|
|
|
VOID
|
|
|
|
InitPropSheetPage(PROPSHEETPAGE *psp, WORD idDlg, DLGPROC DlgProc);
|
|
|
|
|
|
|
|
/* settings.c */
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
SettingPageProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam);
|
2008-03-11 15:52:27 +00:00
|
|
|
BOOL
|
2008-05-02 06:41:59 +00:00
|
|
|
GetLayoutName(LPCTSTR szLCID, LPTSTR szName);
|
2008-04-20 07:34:59 +00:00
|
|
|
VOID
|
|
|
|
UpdateLayoutsList(VOID);
|
2008-05-14 15:51:53 +00:00
|
|
|
BOOL
|
|
|
|
IsLayoutExists(LPTSTR szLayoutID, LPTSTR szLangID);
|
2007-09-07 18:22:43 +00:00
|
|
|
|
|
|
|
/* keysettings.c */
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
KeySettingsDlgProc(HWND hDlg,UINT message,WPARAM wParam,LPARAM lParam);
|
2008-05-18 09:06:48 +00:00
|
|
|
VOID
|
|
|
|
UpdateKeySettingsList();
|
2007-09-07 18:22:43 +00:00
|
|
|
|
|
|
|
/* add.c */
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
AddDlgProc(HWND hDlg,UINT message,WPARAM wParam,LPARAM lParam);
|
2008-03-11 15:52:27 +00:00
|
|
|
VOID
|
2008-05-13 20:23:23 +00:00
|
|
|
CreateKeyboardLayoutList(HWND hItemsList);
|
|
|
|
INT
|
|
|
|
GetLayoutCount(LPTSTR szLang);
|
2007-09-07 18:22:43 +00:00
|
|
|
|
|
|
|
/* changekeyseq.c */
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
ChangeKeySeqDlgProc(HWND hDlg,UINT message,WPARAM wParam,LPARAM lParam);
|
2008-05-15 12:38:12 +00:00
|
|
|
BOOL
|
|
|
|
GetHotkeys(LPTSTR szHotkey, LPTSTR szLangHotkey, LPTSTR szLayoutHotkey);
|
2007-09-07 18:22:43 +00:00
|
|
|
|
|
|
|
void ShowLastWin32Error(HWND hWndOwner);
|
|
|
|
|
|
|
|
/* EOF */
|