2 * TTYDRV USER driver functions
4 * Copyright 1998 Patrik Stridvall
10 #include "debugtools.h"
12 DEFAULT_DEBUG_CHANNEL(ttydrv
);
14 /***********************************************************************
17 void TTYDRV_Synchronize( void )
21 /***********************************************************************
24 BOOL
TTYDRV_CheckFocus(void)
29 /***********************************************************************
30 * TTYDRV_UserRepaintDisable
32 void TTYDRV_UserRepaintDisable( BOOL bDisable
)
37 /***********************************************************************
40 void TTYDRV_InitKeyboard(void)
44 /***********************************************************************
47 WORD
TTYDRV_VkKeyScan(CHAR cChar
)
52 /***********************************************************************
53 * TTYDRV_MapVirtualKey
55 UINT16
TTYDRV_MapVirtualKey(UINT16 wCode
, UINT16 wMapType
)
60 /***********************************************************************
61 * TTYDRV_GetKeyNameText
63 INT16
TTYDRV_GetKeyNameText( LONG lParam
, LPSTR lpBuffer
, INT16 nSize
)
72 /***********************************************************************
75 INT
TTYDRV_ToUnicode( UINT virtKey
, UINT scanCode
, LPBYTE lpKeyState
,
76 LPWSTR pwszBuff
, int cchBuff
, UINT flags
)
81 /***********************************************************************
82 * TTYDRV_GetBeepActive
84 BOOL
TTYDRV_GetBeepActive(void)
89 /***********************************************************************
90 * TTYDRV_SetBeepActive
92 void TTYDRV_SetBeepActive(BOOL bActivate
)
96 /***********************************************************************
99 void TTYDRV_Beep(void)
103 /***********************************************************************
106 BOOL
TTYDRV_GetDIState(DWORD len
, LPVOID ptr
)
111 /***********************************************************************
114 BOOL
TTYDRV_GetDIData( BYTE
*keystate
, DWORD dodsize
, LPDIDEVICEOBJECTDATA dod
,
115 LPDWORD entries
, DWORD flags
)
120 /***********************************************************************
121 * TTYDRV_GetKeyboardConfig
123 void TTYDRV_GetKeyboardConfig(KEYBOARD_CONFIG
*cfg
)
127 /***********************************************************************
128 * TTYDRV_SetKeyboardConfig
130 extern void TTYDRV_SetKeyboardConfig(KEYBOARD_CONFIG
*cfg
, DWORD mask
)
134 /***********************************************************************
137 void TTYDRV_InitMouse(LPMOUSE_EVENT_PROC proc
)
141 /***********************************************************************
144 void TTYDRV_SetCursor( struct tagCURSORICONINFO
*lpCursor
)
148 /***********************************************************************
151 void TTYDRV_MoveCursor(WORD wAbsX
, WORD wAbsY
)
155 /***********************************************************************
156 * TTYDRV_GetScreenSaveActive
158 * Returns the active status of the screen saver
160 BOOL
TTYDRV_GetScreenSaveActive(void)
165 /***********************************************************************
166 * TTYDRV_SetScreenSaveActive
168 * Activate/Deactivate the screen saver
170 void TTYDRV_SetScreenSaveActive(BOOL bActivate
)
172 FIXME("(%d): stub\n", bActivate
);
175 /***********************************************************************
176 * TTYDRV_GetScreenSaveTimeout
178 * Return the screen saver timeout
180 int TTYDRV_GetScreenSaveTimeout(void)
185 /***********************************************************************
186 * TTYDRV_SetScreenSaveTimeout
188 * Set the screen saver timeout
190 void TTYDRV_SetScreenSaveTimeout(int nTimeout
)
192 FIXME("(%d): stub\n", nTimeout
);
195 /**********************************************************************
196 * TTYDRV_LoadOEMResource
198 HANDLE
TTYDRV_LoadOEMResource(WORD resid
, WORD type
)
204 hbitmap
= CreateBitmap(1, 1, 1, 1, NULL
);
205 TTYDRV_DC_CreateBitmap(hbitmap
);
211 ERR("unknown type (%d)\n", type
);
216 /***********************************************************************
217 * TTYDRV_IsSingleWindow
219 BOOL
TTYDRV_IsSingleWindow(void)
224 /***********************************************************************
225 * TTYDRV_AcquireClipboard
227 void TTYDRV_AcquireClipboard(void)
231 /***********************************************************************
232 * TTYDRV_ReleaseClipboard
234 void TTYDRV_ReleaseClipboard(void)
238 /***********************************************************************
239 * TTYDRV_SetClipboardData
241 void TTYDRV_SetClipboardData(UINT wFormat
)
245 /***********************************************************************
246 * TTYDRV_GetClipboardData
248 BOOL
TTYDRV_GetClipboardData(UINT wFormat
)
253 /***********************************************************************
254 * TTYDRV_IsClipboardFormatAvailable
256 BOOL
TTYDRV_IsClipboardFormatAvailable(UINT wFormat
)
261 /**************************************************************************
262 * TTYDRV_RegisterClipboardFormat
264 * Registers a custom clipboard format
265 * Returns: TRUE - new format registered, FALSE - Format already registered
267 BOOL
TTYDRV_RegisterClipboardFormat( LPCSTR FormatName
)
272 /**************************************************************************
273 * TTYDRV_IsSelectionOwner
275 * Returns: TRUE - We(WINE) own the selection, FALSE - Selection not owned by us
277 BOOL
TTYDRV_IsSelectionOwner(void)
282 /***********************************************************************
283 * TTYDRV_ResetSelectionOwner
285 void TTYDRV_ResetSelectionOwner(struct tagWND
*pWnd
, BOOL bFooBar
)