2 * TTYDRV USER driver functions
4 * Copyright 1998 Patrik Stridvall
10 #include "debugtools.h"
12 DEFAULT_DEBUG_CHANNEL(ttydrv);
15 /***********************************************************************
16 * InitKeyboard (TTYDRV.@)
18 void TTYDRV_InitKeyboard(void)
22 /***********************************************************************
23 * VkKeyScan (TTYDRV.@)
25 WORD TTYDRV_VkKeyScan(CHAR cChar)
30 /***********************************************************************
31 * MapVirtualKey (TTYDRV.@)
33 UINT16 TTYDRV_MapVirtualKey(UINT16 wCode, UINT16 wMapType)
38 /***********************************************************************
39 * GetKeyNameText (TTYDRV.@)
41 INT16 TTYDRV_GetKeyNameText( LONG lParam, LPSTR lpBuffer, INT16 nSize )
50 /***********************************************************************
51 * ToUnicode (TTYDRV.@)
53 INT TTYDRV_ToUnicode( UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
54 LPWSTR pwszBuff, int cchBuff, UINT flags )
59 /***********************************************************************
62 void TTYDRV_Beep(void)
66 /***********************************************************************
67 * GetDIState (TTYDRV.@)
69 BOOL TTYDRV_GetDIState(DWORD len, LPVOID ptr)
74 /***********************************************************************
75 * GetDIData (TTYDRV.@)
77 BOOL TTYDRV_GetDIData( BYTE *keystate, DWORD dodsize, LPDIDEVICEOBJECTDATA dod,
78 LPDWORD entries, DWORD flags )
83 /***********************************************************************
84 * InitMouse (TTYDRV.@)
86 void TTYDRV_InitMouse(LPMOUSE_EVENT_PROC proc)
90 /***********************************************************************
91 * SetCursor (TTYDRV.@)
93 void TTYDRV_SetCursor( struct tagCURSORICONINFO *lpCursor )
97 /***********************************************************************
98 * GetScreenSaveActive (TTYDRV.@)
100 * Returns the active status of the screen saver
102 BOOL TTYDRV_GetScreenSaveActive(void)
107 /***********************************************************************
108 * SetScreenSaveActive (TTYDRV.@)
110 * Activate/Deactivate the screen saver
112 void TTYDRV_SetScreenSaveActive(BOOL bActivate)
114 FIXME("(%d): stub\n", bActivate);
117 /***********************************************************************
118 * GetScreenSaveTimeout (TTYDRV.@)
120 * Return the screen saver timeout
122 int TTYDRV_GetScreenSaveTimeout(void)
127 /***********************************************************************
128 * SetScreenSaveTimeout (TTYDRV.@)
130 * Set the screen saver timeout
132 void TTYDRV_SetScreenSaveTimeout(int nTimeout)
134 FIXME("(%d): stub\n", nTimeout);
137 /**********************************************************************
138 * 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 * AcquireClipboard (TTYDRV.@)
161 void TTYDRV_AcquireClipboard(void)
165 /***********************************************************************
166 * ReleaseClipboard (TTYDRV.@)
168 void TTYDRV_ReleaseClipboard(void)
172 /***********************************************************************
173 * SetClipboardData (TTYDRV.@)
175 void TTYDRV_SetClipboardData(UINT wFormat)
179 /***********************************************************************
180 * GetClipboardData (TTYDRV.@)
182 BOOL TTYDRV_GetClipboardData(UINT wFormat)
187 /***********************************************************************
188 * IsClipboardFormatAvailable (TTYDRV.@)
190 BOOL TTYDRV_IsClipboardFormatAvailable(UINT wFormat)
195 /**************************************************************************
196 * 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 * IsSelectionOwner (TTYDRV.@)
209 * Returns: TRUE - We(WINE) own the selection, FALSE - Selection not owned by us
211 BOOL TTYDRV_IsSelectionOwner(void)
216 /***********************************************************************
217 * ResetSelectionOwner (TTYDRV.@)
219 void TTYDRV_ResetSelectionOwner(struct tagWND *pWnd, BOOL bFooBar)