Fixed cut&paste problem in SETRTS.
[wine] / dlls / ttydrv / user.c
1 /*
2  * TTYDRV USER driver functions
3  *
4  * Copyright 1998 Patrik Stridvall
5  */
6
7 #include "config.h"
8
9 #include "dinput.h"
10 #include "ttydrv.h"
11 #include "debugtools.h"
12
13 DEFAULT_DEBUG_CHANNEL(ttydrv);
14
15
16 /***********************************************************************
17  *              VkKeyScan (TTYDRV.@)
18  */
19 WORD TTYDRV_VkKeyScan(CHAR cChar)
20 {
21   return 0;
22 }
23
24 /***********************************************************************
25  *              MapVirtualKey (TTYDRV.@)
26  */
27 UINT16 TTYDRV_MapVirtualKey(UINT16 wCode, UINT16 wMapType)
28 {
29   return 0;
30 }
31
32 /***********************************************************************
33  *              GetKeyNameText (TTYDRV.@)
34  */
35 INT16 TTYDRV_GetKeyNameText( LONG lParam, LPSTR lpBuffer, INT16 nSize )
36 {  
37   if(lpBuffer && nSize)
38     {
39       *lpBuffer = 0;
40     }
41   return 0;
42 }
43
44 /***********************************************************************
45  *              ToUnicode (TTYDRV.@)
46  */
47 INT TTYDRV_ToUnicode( UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
48                       LPWSTR pwszBuff, int cchBuff, UINT flags )
49 {
50   return 0;
51 }
52
53 /***********************************************************************
54  *              Beep (TTYDRV.@)
55  */
56 void TTYDRV_Beep(void)
57 {
58 }
59
60 /***********************************************************************
61  *              SetCursor (TTYDRV.@)
62  */
63 void TTYDRV_SetCursor( struct tagCURSORICONINFO *lpCursor )
64 {
65 }
66
67 /***********************************************************************
68  *              GetScreenSaveActive (TTYDRV.@)
69  *
70  * Returns the active status of the screen saver
71  */
72 BOOL TTYDRV_GetScreenSaveActive(void)
73 {
74     return FALSE;
75 }
76
77 /***********************************************************************
78  *              SetScreenSaveActive (TTYDRV.@)
79  *
80  * Activate/Deactivate the screen saver
81  */
82 void TTYDRV_SetScreenSaveActive(BOOL bActivate)
83 {
84     FIXME("(%d): stub\n", bActivate);
85 }
86
87 /***********************************************************************
88  *              AcquireClipboard (TTYDRV.@)
89  */
90 void TTYDRV_AcquireClipboard(void)
91 {
92 }
93
94 /***********************************************************************
95  *              ReleaseClipboard (TTYDRV.@)
96  */
97 void TTYDRV_ReleaseClipboard(void)
98 {
99 }
100
101 /***********************************************************************
102  *              SetClipboardData (TTYDRV.@)
103  */
104 void TTYDRV_SetClipboardData(UINT wFormat)
105 {
106 }
107
108 /***********************************************************************
109  *              GetClipboardData (TTYDRV.@)
110  */
111 BOOL TTYDRV_GetClipboardData(UINT wFormat)
112 {
113   return FALSE;
114 }
115
116 /***********************************************************************
117  *              IsClipboardFormatAvailable (TTYDRV.@)
118  */
119 BOOL TTYDRV_IsClipboardFormatAvailable(UINT wFormat)
120 {
121   return FALSE;
122 }
123
124 /**************************************************************************
125  *              RegisterClipboardFormat (TTYDRV.@)
126  *
127  * Registers a custom clipboard format
128  * Returns: TRUE - new format registered, FALSE - Format already registered
129  */
130 BOOL TTYDRV_RegisterClipboardFormat( LPCSTR FormatName )
131 {
132   return TRUE;
133 }
134
135 /**************************************************************************
136  *              IsSelectionOwner (TTYDRV.@)
137  *
138  * Returns: TRUE - We(WINE) own the selection, FALSE - Selection not owned by us
139  */
140 BOOL TTYDRV_IsSelectionOwner(void)
141 {
142     return FALSE;
143 }