Use Callout table instead of direct GetProcAddress.
[wine/multimedia.git] / include / keyboard.h
blob45ed3bbb21cdad9a477f23a474f432bedd5f2e49
1 /*
2 * KEYBOARD driver interface
4 * Copyright 1998 Ulrich Weigand
5 */
7 #ifndef __WINE_KEYBOARD_H
8 #define __WINE_KEYBOARD_H
10 #include "wintypes.h"
12 #pragma pack(1)
13 typedef struct _KBINFO
15 BYTE Begin_First_Range;
16 BYTE End_First_Range;
17 BYTE Begin_Second_Range;
18 BYTE End_Second_Range;
19 WORD StateSize;
20 } KBINFO, *LPKBINFO;
21 #pragma pack(4)
23 typedef VOID (CALLBACK *LPKEYBD_EVENT_PROC)(BYTE,BYTE,DWORD,DWORD);
25 WORD WINAPI KEYBOARD_Inquire(LPKBINFO kbInfo);
26 VOID WINAPI KEYBOARD_Enable(LPKEYBD_EVENT_PROC lpKeybEventProc,
27 LPBYTE lpKeyState);
28 VOID WINAPI KEYBOARD_Disable(VOID);
30 /* Wine internals */
32 typedef struct _KEYBOARD_DRIVER {
33 void (*pInit)();
34 WORD (*pVkKeyScan)(CHAR);
35 UINT16 (*pMapVirtualKey)(UINT16, UINT16);
36 INT16 (*pGetKeyNameText)(LONG, LPSTR, INT16);
37 INT16 (*pToAscii)(UINT16, UINT16, LPBYTE, LPVOID, UINT16);
38 } KEYBOARD_DRIVER;
40 extern KEYBOARD_DRIVER *KEYBOARD_GetDriver();
42 extern void KEYBOARD_SendEvent(BYTE bVk, BYTE bScan, DWORD dwFlags, DWORD posX, DWORD posY, DWORD time);
44 #define WINE_KEYBDEVENT_MAGIC ( ('K'<<24)|('E'<<16)|('Y'<<8)|'B' )
45 typedef struct _WINE_KEYBDEVENT
47 DWORD magic;
48 DWORD posX;
49 DWORD posY;
50 DWORD time;
52 } WINE_KEYBDEVENT;
54 #endif /* __WINE_KEYBOARD_H */