Store monitor size and depth in the generic structure.
[wine/multimedia.git] / include / user.h
blob741428a67114dbbd660c09c73dcdd6a6f98ca716
1 /*
2 * USER definitions
4 * Copyright 1993 Alexandre Julliard
5 */
7 #ifndef __WINE_USER_H
8 #define __WINE_USER_H
10 #include "ldt.h"
11 #include "local.h"
13 extern WORD USER_HeapSel;
15 #define USER_HEAP_ALLOC(size) \
16 LOCAL_Alloc( USER_HeapSel, LMEM_FIXED, (size) )
17 #define USER_HEAP_REALLOC(handle,size) \
18 LOCAL_ReAlloc( USER_HeapSel, (handle), (size), LMEM_FIXED )
19 #define USER_HEAP_FREE(handle) \
20 LOCAL_Free( USER_HeapSel, (handle) )
21 #define USER_HEAP_LIN_ADDR(handle) \
22 ((handle) ? PTR_SEG_OFF_TO_LIN(USER_HeapSel, (handle)) : NULL)
23 #define USER_HEAP_SEG_ADDR(handle) \
24 ((handle) ? PTR_SEG_OFF_TO_SEGPTR(USER_HeapSel, (handle)) : (SEGPTR)0)
26 #define USUD_LOCALALLOC 0x0001
27 #define USUD_LOCALFREE 0x0002
28 #define USUD_LOCALCOMPACT 0x0003
29 #define USUD_LOCALHEAP 0x0004
30 #define USUD_FIRSTCLASS 0x0005
32 struct tagCURSORICONINFO;
33 struct DIDEVICEOBJECTDATA;
35 #define WINE_KEYBOARD_CONFIG_AUTO_REPEAT 0x00000001
36 typedef struct tagKEYBOARD_CONFIG {
37 BOOL auto_repeat;
38 } KEYBOARD_CONFIG;
40 typedef struct tagUSER_DRIVER {
41 /* event functions */
42 void (*pSynchronize)(void);
43 BOOL (*pCheckFocus)(void);
44 void (*pUserRepaintDisable)(BOOL);
45 /* keyboard functions */
46 void (*pInitKeyboard)(void);
47 WORD (*pVkKeyScan)(CHAR);
48 UINT16 (*pMapVirtualKey)(UINT16, UINT16);
49 INT16 (*pGetKeyNameText)(LONG, LPSTR, INT16);
50 INT16 (*pToAscii)(UINT16, UINT16, LPBYTE, LPVOID, UINT16);
51 BOOL (*pGetBeepActive)(void);
52 void (*pSetBeepActive)(BOOL);
53 void (*pBeep)(void);
54 BOOL (*pGetDIState)(DWORD, LPVOID);
55 BOOL (*pGetDIData)(BYTE *, DWORD, struct DIDEVICEOBJECTDATA *, LPDWORD, DWORD);
56 void (*pGetKeyboardConfig)(KEYBOARD_CONFIG *);
57 void (*pSetKeyboardConfig)(KEYBOARD_CONFIG *, DWORD);
58 /* mouse functions */
59 void (*pInitMouse)(void);
60 void (*pSetCursor)(struct tagCURSORICONINFO *);
61 void (*pMoveCursor)(WORD, WORD);
62 LONG (*pEnableWarpPointer)(BOOL);
63 /* screen saver functions */
64 BOOL (*pGetScreenSaveActive)(void);
65 void (*pSetScreenSaveActive)(BOOL);
66 int (*pGetScreenSaveTimeout)(void);
67 void (*pSetScreenSaveTimeout)(int);
68 /* windowing functions */
69 BOOL (*pIsSingleWindow)(void);
70 } USER_DRIVER;
72 extern USER_DRIVER *USER_Driver;
74 WORD WINAPI UserSignalProc( UINT uCode, DWORD dwThreadOrProcessID,
75 DWORD dwFlags, HMODULE16 hModule );
77 #endif /* __WINE_USER_H */