Build the debugger as a .so.
[wine/multimedia.git] / include / user.h
blobec6b129e989b84a0331b8888339b4e9bc091acac
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 VOID CALLBACK (*LPMOUSE_EVENT_PROC)(DWORD,DWORD,DWORD,DWORD,DWORD);
42 struct tagWND;
44 typedef struct tagUSER_DRIVER {
45 /* event functions */
46 void (*pSynchronize)(void);
47 BOOL (*pCheckFocus)(void);
48 void (*pUserRepaintDisable)(BOOL);
49 /* keyboard functions */
50 void (*pInitKeyboard)(void);
51 WORD (*pVkKeyScan)(CHAR);
52 UINT16 (*pMapVirtualKey)(UINT16, UINT16);
53 INT16 (*pGetKeyNameText)(LONG, LPSTR, INT16);
54 INT (*pToUnicode)(UINT, UINT, LPBYTE, LPWSTR, int, UINT);
55 BOOL (*pGetBeepActive)(void);
56 void (*pSetBeepActive)(BOOL);
57 void (*pBeep)(void);
58 BOOL (*pGetDIState)(DWORD, LPVOID);
59 BOOL (*pGetDIData)(BYTE *, DWORD, struct DIDEVICEOBJECTDATA *, LPDWORD, DWORD);
60 void (*pGetKeyboardConfig)(KEYBOARD_CONFIG *);
61 void (*pSetKeyboardConfig)(KEYBOARD_CONFIG *, DWORD);
62 /* mouse functions */
63 void (*pInitMouse)(LPMOUSE_EVENT_PROC);
64 void (*pSetCursor)(struct tagCURSORICONINFO *);
65 void (*pMoveCursor)(WORD, WORD);
66 /* screen saver functions */
67 BOOL (*pGetScreenSaveActive)(void);
68 void (*pSetScreenSaveActive)(BOOL);
69 int (*pGetScreenSaveTimeout)(void);
70 void (*pSetScreenSaveTimeout)(int);
71 /* resource functions */
72 HANDLE (*pLoadOEMResource)(WORD,WORD);
73 /* windowing functions */
74 BOOL (*pIsSingleWindow)(void);
75 /* clipboard functions */
76 void (*pAcquireClipboard)(void); /* Acquire selection */
77 void (*pReleaseClipboard)(void); /* Release selection */
78 void (*pSetClipboardData)(UINT); /* Set specified selection data */
79 BOOL (*pGetClipboardData)(UINT); /* Get specified selection data */
80 BOOL (*pIsClipboardFormatAvailable)(UINT); /* Check if specified format is available */
81 BOOL (*pRegisterClipboardFormat)(LPCSTR); /* Register a clipboard format */
82 BOOL (*pIsSelectionOwner)(void); /* Check if we own the selection */
83 void (*pResetSelectionOwner)(struct tagWND *, BOOL);
84 } USER_DRIVER;
86 extern USER_DRIVER USER_Driver;
88 WORD WINAPI UserSignalProc( UINT uCode, DWORD dwThreadOrProcessID,
89 DWORD dwFlags, HMODULE16 hModule );
91 VOID WINAPI MOUSE_Enable(LPMOUSE_EVENT_PROC lpMouseEventProc);
92 VOID WINAPI MOUSE_Disable(VOID);
94 #endif /* __WINE_USER_H */