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
;
35 /* internal messages codes */
36 enum wine_internal_message
38 WM_WINE_DESTROYWINDOW
= 0x80000000,
42 WM_WINE_SETWINDOWLONG
,
46 /* internal SendInput codes (FIXME) */
47 #define WINE_INTERNAL_INPUT_MOUSE (16+INPUT_MOUSE)
48 #define WINE_INTERNAL_INPUT_KEYBOARD (16+INPUT_KEYBOARD)
50 typedef struct tagUSER_DRIVER
{
51 /* keyboard functions */
52 void (*pInitKeyboard
)(LPBYTE
);
53 WORD (*pVkKeyScan
)(CHAR
);
54 UINT (*pMapVirtualKey
)(UINT
,UINT
);
55 INT (*pGetKeyNameText
)(LONG
,LPSTR
,INT
);
56 INT (*pToUnicode
)(UINT
, UINT
, LPBYTE
, LPWSTR
, int, UINT
);
59 void (*pInitMouse
)(LPBYTE
);
60 void (*pSetCursor
)(struct tagCURSORICONINFO
*);
61 void (*pGetCursorPos
)(LPPOINT
);
62 void (*pSetCursorPos
)(INT
,INT
);
63 /* screen saver functions */
64 BOOL (*pGetScreenSaveActive
)(void);
65 void (*pSetScreenSaveActive
)(BOOL
);
66 /* resource functions */
67 HANDLE (*pLoadOEMResource
)(WORD
,WORD
);
68 /* clipboard functions */
69 void (*pAcquireClipboard
)(void); /* Acquire selection */
70 void (*pReleaseClipboard
)(void); /* Release selection */
71 void (*pSetClipboardData
)(UINT
); /* Set specified selection data */
72 BOOL (*pGetClipboardData
)(UINT
); /* Get specified selection data */
73 BOOL (*pIsClipboardFormatAvailable
)(UINT
); /* Check if specified format is available */
74 BOOL (*pRegisterClipboardFormat
)(LPCSTR
); /* Register a clipboard format */
75 BOOL (*pIsSelectionOwner
)(void); /* Check if we own the selection */
76 void (*pResetSelectionOwner
)(HWND
, BOOL
);
78 /* windowing functions */
79 BOOL (*pCreateWindow
)(HWND
,CREATESTRUCTA
*,BOOL
);
80 BOOL (*pDestroyWindow
)(HWND
);
81 BOOL (*pGetDC
)(HWND
,HDC
,HRGN
,DWORD
);
82 void (*pForceWindowRaise
)(HWND
);
83 DWORD (*pMsgWaitForMultipleObjectsEx
)(DWORD
,const HANDLE
*,DWORD
,DWORD
,DWORD
);
84 BOOL (*pScrollDC
)(HDC
,INT
,INT
,const RECT
*,const RECT
*,HRGN
,LPRECT
);
85 INT (*pScrollWindowEx
)(HWND
,INT
,INT
,const RECT
*,const RECT
*,HRGN
,LPRECT
,UINT
);
86 void (*pSetFocus
)(HWND
);
87 HWND (*pSetParent
)(HWND
,HWND
);
88 BOOL (*pSetWindowPos
)(WINDOWPOS
*);
89 int (*pSetWindowRgn
)(HWND
,HRGN
,BOOL
);
90 HICON (*pSetWindowIcon
)(HWND
,HICON
,BOOL
);
91 void (*pSetWindowStyle
)(HWND
,DWORD
);
92 BOOL (*pSetWindowText
)(HWND
,LPCWSTR
);
93 BOOL (*pShowWindow
)(HWND
,INT
);
94 void (*pSysCommandSizeMove
)(HWND
,WPARAM
);
97 extern USER_DRIVER USER_Driver
;
99 WORD WINAPI
UserSignalProc( UINT uCode
, DWORD dwThreadOrProcessID
,
100 DWORD dwFlags
, HMODULE16 hModule
);
103 extern void USER_Lock(void);
104 extern void USER_Unlock(void);
105 extern void USER_CheckNotLock(void);
107 extern BOOL
USER_IsExitingThread( DWORD tid
);
118 extern WINE_LOOK TWEAK_WineLook
;
120 /* gray brush cache */
121 extern HBRUSH
CACHE_GetPattern55AABrush(void);
123 #endif /* __WINE_USER_H */