4 * Copyright 1993 Alexandre Julliard
16 extern WORD USER_HeapSel
;
18 #define USER_HEAP_ALLOC(size) \
19 LOCAL_Alloc( USER_HeapSel, LMEM_FIXED, (size) )
20 #define USER_HEAP_REALLOC(handle,size) \
21 LOCAL_ReAlloc( USER_HeapSel, (handle), (size), LMEM_FIXED )
22 #define USER_HEAP_FREE(handle) \
23 LOCAL_Free( USER_HeapSel, (handle) )
24 #define USER_HEAP_LIN_ADDR(handle) \
25 ((handle) ? MapSL(MAKESEGPTR(USER_HeapSel, (handle))) : NULL)
27 #define USUD_LOCALALLOC 0x0001
28 #define USUD_LOCALFREE 0x0002
29 #define USUD_LOCALCOMPACT 0x0003
30 #define USUD_LOCALHEAP 0x0004
31 #define USUD_FIRSTCLASS 0x0005
33 struct tagCURSORICONINFO
;
34 struct DIDEVICEOBJECTDATA
;
36 typedef VOID
CALLBACK (*LPMOUSE_EVENT_PROC
)(DWORD
,DWORD
,DWORD
,DWORD
,DWORD
);
40 typedef struct tagUSER_DRIVER
{
41 /* keyboard functions */
42 void (*pInitKeyboard
)(void);
43 WORD (*pVkKeyScan
)(CHAR
);
44 UINT16 (*pMapVirtualKey
)(UINT16
, UINT16
);
45 INT16 (*pGetKeyNameText
)(LONG
, LPSTR
, INT16
);
46 INT (*pToUnicode
)(UINT
, UINT
, LPBYTE
, LPWSTR
, int, UINT
);
48 BOOL (*pGetDIState
)(DWORD
, LPVOID
);
49 BOOL (*pGetDIData
)(BYTE
*, DWORD
, struct DIDEVICEOBJECTDATA
*, LPDWORD
, DWORD
);
51 void (*pInitMouse
)(LPMOUSE_EVENT_PROC
);
52 void (*pSetCursor
)(struct tagCURSORICONINFO
*);
53 void (*pGetCursorPos
)(LPPOINT
);
54 void (*pSetCursorPos
)(INT
,INT
);
55 /* screen saver functions */
56 BOOL (*pGetScreenSaveActive
)(void);
57 void (*pSetScreenSaveActive
)(BOOL
);
58 int (*pGetScreenSaveTimeout
)(void);
59 void (*pSetScreenSaveTimeout
)(int);
60 /* resource functions */
61 HANDLE (*pLoadOEMResource
)(WORD
,WORD
);
62 /* clipboard functions */
63 void (*pAcquireClipboard
)(void); /* Acquire selection */
64 void (*pReleaseClipboard
)(void); /* Release selection */
65 void (*pSetClipboardData
)(UINT
); /* Set specified selection data */
66 BOOL (*pGetClipboardData
)(UINT
); /* Get specified selection data */
67 BOOL (*pIsClipboardFormatAvailable
)(UINT
); /* Check if specified format is available */
68 BOOL (*pRegisterClipboardFormat
)(LPCSTR
); /* Register a clipboard format */
69 BOOL (*pIsSelectionOwner
)(void); /* Check if we own the selection */
70 void (*pResetSelectionOwner
)(struct tagWND
*, BOOL
);
72 /* windowing functions */
73 BOOL (*pCreateWindow
)(HWND
,CREATESTRUCTA
*,BOOL
);
74 BOOL (*pDestroyWindow
)(HWND
);
75 BOOL (*pGetDC
)(HWND
,HDC
,HRGN
,DWORD
);
76 BOOL (*pEnableWindow
)(HWND
,BOOL
);
77 DWORD (*pMsgWaitForMultipleObjectsEx
)(DWORD
,const HANDLE
*,DWORD
,DWORD
,DWORD
);
78 BOOL (*pScrollDC
)(HDC
,INT
,INT
,const RECT
*,const RECT
*,HRGN
,LPRECT
);
79 INT (*pScrollWindowEx
)(HWND
,INT
,INT
,const RECT
*,const RECT
*,HRGN
,LPRECT
,UINT
);
80 void (*pSetFocus
)(HWND
);
81 HWND (*pSetParent
)(HWND
,HWND
);
82 BOOL (*pSetWindowPos
)(WINDOWPOS
*);
83 BOOL (*pSetWindowRgn
)(HWND
,HRGN
,BOOL
);
84 HICON (*pSetWindowIcon
)(HWND
,HICON
,BOOL
);
85 BOOL (*pSetWindowText
)(HWND
,LPCWSTR
);
86 BOOL (*pShowWindow
)(HWND
,INT
);
87 void (*pSysCommandSizeMove
)(HWND
,WPARAM
);
90 extern USER_DRIVER USER_Driver
;
92 WORD WINAPI
UserSignalProc( UINT uCode
, DWORD dwThreadOrProcessID
,
93 DWORD dwFlags
, HMODULE16 hModule
);
95 VOID WINAPI
MOUSE_Enable(LPMOUSE_EVENT_PROC lpMouseEventProc
);
96 VOID WINAPI
MOUSE_Disable(VOID
);
107 extern WINE_LOOK TWEAK_WineLook
;
109 /* gray brush cache */
110 extern HBRUSH
CACHE_GetPattern55AABrush(void);
112 #endif /* __WINE_USER_H */