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
);
38 /* internal messages codes */
39 enum wine_internal_message
41 WM_WINE_DESTROYWINDOW
= 0x80000000,
47 typedef struct tagUSER_DRIVER
{
48 /* keyboard functions */
49 void (*pInitKeyboard
)(void);
50 WORD (*pVkKeyScan
)(CHAR
);
51 UINT16 (*pMapVirtualKey
)(UINT16
, UINT16
);
52 INT16 (*pGetKeyNameText
)(LONG
, LPSTR
, INT16
);
53 INT (*pToUnicode
)(UINT
, UINT
, LPBYTE
, LPWSTR
, int, UINT
);
55 BOOL (*pGetDIState
)(DWORD
, LPVOID
);
56 BOOL (*pGetDIData
)(BYTE
*, DWORD
, struct DIDEVICEOBJECTDATA
*, LPDWORD
, DWORD
);
58 void (*pInitMouse
)(LPMOUSE_EVENT_PROC
);
59 void (*pSetCursor
)(struct tagCURSORICONINFO
*);
60 void (*pGetCursorPos
)(LPPOINT
);
61 void (*pSetCursorPos
)(INT
,INT
);
62 /* screen saver functions */
63 BOOL (*pGetScreenSaveActive
)(void);
64 void (*pSetScreenSaveActive
)(BOOL
);
65 int (*pGetScreenSaveTimeout
)(void);
66 void (*pSetScreenSaveTimeout
)(int);
67 /* resource functions */
68 HANDLE (*pLoadOEMResource
)(WORD
,WORD
);
69 /* clipboard functions */
70 void (*pAcquireClipboard
)(void); /* Acquire selection */
71 void (*pReleaseClipboard
)(void); /* Release selection */
72 void (*pSetClipboardData
)(UINT
); /* Set specified selection data */
73 BOOL (*pGetClipboardData
)(UINT
); /* Get specified selection data */
74 BOOL (*pIsClipboardFormatAvailable
)(UINT
); /* Check if specified format is available */
75 BOOL (*pRegisterClipboardFormat
)(LPCSTR
); /* Register a clipboard format */
76 BOOL (*pIsSelectionOwner
)(void); /* Check if we own the selection */
77 void (*pResetSelectionOwner
)(HWND
, BOOL
);
79 /* windowing functions */
80 BOOL (*pCreateWindow
)(HWND
,CREATESTRUCTA
*,BOOL
);
81 BOOL (*pDestroyWindow
)(HWND
);
82 BOOL (*pGetDC
)(HWND
,HDC
,HRGN
,DWORD
);
83 BOOL (*pEnableWindow
)(HWND
,BOOL
);
84 void (*pForceWindowRaise
)(HWND
);
85 DWORD (*pMsgWaitForMultipleObjectsEx
)(DWORD
,const HANDLE
*,DWORD
,DWORD
,DWORD
);
86 BOOL (*pScrollDC
)(HDC
,INT
,INT
,const RECT
*,const RECT
*,HRGN
,LPRECT
);
87 INT (*pScrollWindowEx
)(HWND
,INT
,INT
,const RECT
*,const RECT
*,HRGN
,LPRECT
,UINT
);
88 void (*pSetFocus
)(HWND
);
89 HWND (*pSetParent
)(HWND
,HWND
);
90 BOOL (*pSetWindowPos
)(WINDOWPOS
*);
91 BOOL (*pSetWindowRgn
)(HWND
,HRGN
,BOOL
);
92 HICON (*pSetWindowIcon
)(HWND
,HICON
,BOOL
);
93 void (*pSetWindowStyle
)(HWND
,DWORD
);
94 BOOL (*pSetWindowText
)(HWND
,LPCWSTR
);
95 BOOL (*pShowWindow
)(HWND
,INT
);
96 void (*pSysCommandSizeMove
)(HWND
,WPARAM
);
99 extern USER_DRIVER USER_Driver
;
101 WORD WINAPI
UserSignalProc( UINT uCode
, DWORD dwThreadOrProcessID
,
102 DWORD dwFlags
, HMODULE16 hModule
);
105 extern void USER_Lock(void);
106 extern void USER_Unlock(void);
107 extern void USER_CheckNotLock(void);
109 extern BOOL
USER_IsExitingThread( DWORD tid
);
111 VOID WINAPI
MOUSE_Enable(LPMOUSE_EVENT_PROC lpMouseEventProc
);
112 VOID WINAPI
MOUSE_Disable(VOID
);
123 extern WINE_LOOK TWEAK_WineLook
;
125 /* gray brush cache */
126 extern HBRUSH
CACHE_GetPattern55AABrush(void);
128 #endif /* __WINE_USER_H */