Added support for nested server waits (to allow waiting in signal
[wine/multimedia.git] / include / keyboard.h
blob1f1bc5b92d33888a74582014c3336b9d21b498da
1 /*
2 * KEYBOARD driver interface
4 * Copyright 1998 Ulrich Weigand
5 */
7 #ifndef __WINE_KEYBOARD_H
8 #define __WINE_KEYBOARD_H
10 #include "windef.h"
12 #include "pshpack1.h"
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 #include "poppack.h"
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 extern BOOL KEYBOARD_GetBeepActive(void);
33 extern void KEYBOARD_SetBeepActive(BOOL bActivate);
35 extern void KEYBOARD_SendEvent(BYTE bVk, BYTE bScan, DWORD dwFlags, DWORD posX, DWORD posY, DWORD time);
37 #define WINE_KEYBDEVENT_MAGIC ( ('K'<<24)|('E'<<16)|('Y'<<8)|'B' )
38 typedef struct _WINE_KEYBDEVENT
40 DWORD magic;
41 DWORD posX;
42 DWORD posY;
43 DWORD time;
45 } WINE_KEYBDEVENT;
47 #endif /* __WINE_KEYBOARD_H */