1*c2c66affSColin Finck #ifndef _MAIN_H 2*c2c66affSColin Finck #define _MAIN_H 3*c2c66affSColin Finck 4*c2c66affSColin Finck #include <stdarg.h> 5*c2c66affSColin Finck 6*c2c66affSColin Finck #define WIN32_NO_STATUS 7*c2c66affSColin Finck #define _INC_WINDOWS 8*c2c66affSColin Finck #define COM_NO_WINDOWS_H 9*c2c66affSColin Finck 10*c2c66affSColin Finck #include <windef.h> 11*c2c66affSColin Finck #include <winbase.h> 12*c2c66affSColin Finck #include <winreg.h> 13*c2c66affSColin Finck #include <wingdi.h> 14*c2c66affSColin Finck #include <wincon.h> 15*c2c66affSColin Finck #include <devguid.h> 16*c2c66affSColin Finck #include <shlobj.h> 17*c2c66affSColin Finck #include <cpl.h> 18*c2c66affSColin Finck #include <regstr.h> 19*c2c66affSColin Finck 20*c2c66affSColin Finck #include "resource.h" 21*c2c66affSColin Finck 22*c2c66affSColin Finck typedef enum 23*c2c66affSColin Finck { 24*c2c66affSColin Finck HWPD_STANDARDLIST = 0, 25*c2c66affSColin Finck HWPD_LARGELIST, 26*c2c66affSColin Finck HWPD_MAX = HWPD_LARGELIST 27*c2c66affSColin Finck } HWPAGE_DISPLAYMODE, *PHWPAGE_DISPLAYMODE; 28*c2c66affSColin Finck 29*c2c66affSColin Finck HWND WINAPI 30*c2c66affSColin Finck DeviceCreateHardwarePageEx(HWND hWndParent, 31*c2c66affSColin Finck LPGUID lpGuids, 32*c2c66affSColin Finck UINT uNumberOfGuids, 33*c2c66affSColin Finck HWPAGE_DISPLAYMODE DisplayMode); 34*c2c66affSColin Finck 35*c2c66affSColin Finck //typedef LONG (CALLBACK *APPLET_PROC)(VOID); 36*c2c66affSColin Finck 37*c2c66affSColin Finck typedef struct _APPLET 38*c2c66affSColin Finck { 39*c2c66affSColin Finck UINT idIcon; 40*c2c66affSColin Finck UINT idName; 41*c2c66affSColin Finck UINT idDescription; 42*c2c66affSColin Finck APPLET_PROC AppletProc; 43*c2c66affSColin Finck } APPLET, *PAPPLET; 44*c2c66affSColin Finck 45*c2c66affSColin Finck extern HINSTANCE hApplet; 46*c2c66affSColin Finck 47*c2c66affSColin Finck #define MAX_CPL_PAGES 32 48*c2c66affSColin Finck 49*c2c66affSColin Finck /* keyboard.c */ 50*c2c66affSColin Finck 51*c2c66affSColin Finck LONG APIENTRY 52*c2c66affSColin Finck KeyboardApplet(HWND hwnd, UINT uMsg, LPARAM wParam, LPARAM lParam); 53*c2c66affSColin Finck 54*c2c66affSColin Finck /* main.c */ 55*c2c66affSColin Finck 56*c2c66affSColin Finck BOOL 57*c2c66affSColin Finck InitPropSheetPage(PROPSHEETHEADER *ppsh, WORD idDlg, DLGPROC DlgProc); 58*c2c66affSColin Finck 59*c2c66affSColin Finck BOOL CALLBACK 60*c2c66affSColin Finck PropSheetAddPage(HPROPSHEETPAGE hpage, LPARAM lParam); 61*c2c66affSColin Finck 62*c2c66affSColin Finck /* mouse.c */ 63*c2c66affSColin Finck 64*c2c66affSColin Finck LONG APIENTRY 65*c2c66affSColin Finck MouseApplet(HWND hwnd, UINT uMsg, LPARAM wParam, LPARAM lParam); 66*c2c66affSColin Finck 67*c2c66affSColin Finck #endif /* _MAIN_H */ 68