2 * TTYDRV USER driver functions
4 * Copyright 1998 Patrik Stridvall
10 #include "debugtools.h"
12 DEFAULT_DEBUG_CHANNEL(ttydrv);
15 /***********************************************************************
16 * TTYDRV_InitKeyboard (TTYDRV.@)
18 void TTYDRV_InitKeyboard(void)
22 /***********************************************************************
23 * TTYDRV_VkKeyScan (TTYDRV.@)
25 WORD TTYDRV_VkKeyScan(CHAR cChar)
30 /***********************************************************************
31 * TTYDRV_MapVirtualKey (TTYDRV.@)
33 UINT16 TTYDRV_MapVirtualKey(UINT16 wCode, UINT16 wMapType)
38 /***********************************************************************
39 * TTYDRV_GetKeyNameText (TTYDRV.@)
41 INT16 TTYDRV_GetKeyNameText( LONG lParam, LPSTR lpBuffer, INT16 nSize )
50 /***********************************************************************
51 * TTYDRV_ToUnicode (TTYDRV.@)
53 INT TTYDRV_ToUnicode( UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
54 LPWSTR pwszBuff, int cchBuff, UINT flags )
59 /***********************************************************************
60 * TTYDRV_Beep (TTYDRV.@)
62 void TTYDRV_Beep(void)
66 /***********************************************************************
67 * TTYDRV_GetDIState (TTYDRV.@)
69 BOOL TTYDRV_GetDIState(DWORD len, LPVOID ptr)
74 /***********************************************************************
75 * TTYDRV_GetDIData (TTYDRV.@)
77 BOOL TTYDRV_GetDIData( BYTE *keystate, DWORD dodsize, LPDIDEVICEOBJECTDATA dod,
78 LPDWORD entries, DWORD flags )
83 /***********************************************************************
84 * TTYDRV_InitMouse (TTYDRV.@)
86 void TTYDRV_InitMouse(LPMOUSE_EVENT_PROC proc)
90 /***********************************************************************
91 * TTYDRV_SetCursor (TTYDRV.@)
93 void TTYDRV_SetCursor( struct tagCURSORICONINFO *lpCursor )
97 /***********************************************************************
98 * TTYDRV_GetScreenSaveActive (TTYDRV.@)
100 * Returns the active status of the screen saver
102 BOOL TTYDRV_GetScreenSaveActive(void)
107 /***********************************************************************
108 * TTYDRV_SetScreenSaveActive (TTYDRV.@)
110 * Activate/Deactivate the screen saver
112 void TTYDRV_SetScreenSaveActive(BOOL bActivate)
114 FIXME("(%d): stub\n", bActivate);
117 /***********************************************************************
118 * TTYDRV_GetScreenSaveTimeout (TTYDRV.@)
120 * Return the screen saver timeout
122 int TTYDRV_GetScreenSaveTimeout(void)
127 /***********************************************************************
128 * TTYDRV_SetScreenSaveTimeout (TTYDRV.@)
130 * Set the screen saver timeout
132 void TTYDRV_SetScreenSaveTimeout(int nTimeout)
134 FIXME("(%d): stub\n", nTimeout);
137 /**********************************************************************
138 * TTYDRV_LoadOEMResource (TTYDRV.@)
140 HANDLE TTYDRV_LoadOEMResource(WORD resid, WORD type)
146 hbitmap = CreateBitmap(1, 1, 1, 1, NULL);
147 TTYDRV_DC_CreateBitmap(hbitmap);
153 ERR("unknown type (%d)\n", type);
158 /***********************************************************************
159 * TTYDRV_AcquireClipboard (TTYDRV.@)
161 void TTYDRV_AcquireClipboard(void)
165 /***********************************************************************
166 * TTYDRV_ReleaseClipboard (TTYDRV.@)
168 void TTYDRV_ReleaseClipboard(void)
172 /***********************************************************************
173 * TTYDRV_SetClipboardData (TTYDRV.@)
175 void TTYDRV_SetClipboardData(UINT wFormat)
179 /***********************************************************************
180 * TTYDRV_GetClipboardData (TTYDRV.@)
182 BOOL TTYDRV_GetClipboardData(UINT wFormat)
187 /***********************************************************************
188 * TTYDRV_IsClipboardFormatAvailable (TTYDRV.@)
190 BOOL TTYDRV_IsClipboardFormatAvailable(UINT wFormat)
195 /**************************************************************************
196 * TTYDRV_RegisterClipboardFormat (TTYDRV.@)
198 * Registers a custom clipboard format
199 * Returns: TRUE - new format registered, FALSE - Format already registered
201 BOOL TTYDRV_RegisterClipboardFormat( LPCSTR FormatName )
206 /**************************************************************************
207 * TTYDRV_IsSelectionOwner (TTYDRV.@)
209 * Returns: TRUE - We(WINE) own the selection, FALSE - Selection not owned by us
211 BOOL TTYDRV_IsSelectionOwner(void)
216 /***********************************************************************
217 * TTYDRV_ResetSelectionOwner (TTYDRV.@)
219 void TTYDRV_ResetSelectionOwner(struct tagWND *pWnd, BOOL bFooBar)