Avoid excessive heap memory reallocation when generating EMF
[wine] / dlls / ttydrv / user.c
1 /*
2  * TTYDRV USER driver functions
3  *
4  * Copyright 1998 Patrik Stridvall
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #include "config.h"
22
23 #include <stdarg.h>
24
25 #include "windef.h"
26 #include "winbase.h"
27 #include "dinput.h"
28 #include "gdi.h"
29 #include "ttydrv.h"
30 #include "wine/debug.h"
31
32 WINE_DEFAULT_DEBUG_CHANNEL(ttydrv);
33
34 struct tagCURSORICONINFO;
35
36 /***********************************************************************
37  *              VkKeyScan (TTYDRV.@)
38  */
39 WORD TTYDRV_VkKeyScan(CHAR cChar)
40 {
41   return 0;
42 }
43
44 /***********************************************************************
45  *              MapVirtualKey (TTYDRV.@)
46  */
47 UINT16 TTYDRV_MapVirtualKey(UINT16 wCode, UINT16 wMapType)
48 {
49   return 0;
50 }
51
52 /***********************************************************************
53  *              GetKeyNameText (TTYDRV.@)
54  */
55 INT16 TTYDRV_GetKeyNameText( LONG lParam, LPSTR lpBuffer, INT16 nSize )
56 {
57   if(lpBuffer && nSize)
58     {
59       *lpBuffer = 0;
60     }
61   return 0;
62 }
63
64 /***********************************************************************
65  *              ToUnicode (TTYDRV.@)
66  */
67 INT TTYDRV_ToUnicode( UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
68                       LPWSTR pwszBuff, int cchBuff, UINT flags )
69 {
70   return 0;
71 }
72
73 /***********************************************************************
74  *              Beep (TTYDRV.@)
75  */
76 void TTYDRV_Beep(void)
77 {
78 }
79
80 /***********************************************************************
81  *              SetCursor (TTYDRV.@)
82  */
83 void TTYDRV_SetCursor( struct tagCURSORICONINFO *lpCursor )
84 {
85 }
86
87 /***********************************************************************
88  *              GetScreenSaveActive (TTYDRV.@)
89  *
90  * Returns the active status of the screen saver
91  */
92 BOOL TTYDRV_GetScreenSaveActive(void)
93 {
94     return FALSE;
95 }
96
97 /***********************************************************************
98  *              SetScreenSaveActive (TTYDRV.@)
99  *
100  * Activate/Deactivate the screen saver
101  */
102 void TTYDRV_SetScreenSaveActive(BOOL bActivate)
103 {
104     FIXME("(%d): stub\n", bActivate);
105 }
106
107 /***********************************************************************
108  *              AcquireClipboard (TTYDRV.@)
109  */
110 void TTYDRV_AcquireClipboard(void)
111 {
112 }
113
114 /***********************************************************************
115  *              ReleaseClipboard (TTYDRV.@)
116  */
117 void TTYDRV_ReleaseClipboard(void)
118 {
119 }
120
121 /***********************************************************************
122  *              SetClipboardData (TTYDRV.@)
123  */
124 void TTYDRV_SetClipboardData(UINT wFormat)
125 {
126 }
127
128 /***********************************************************************
129  *              GetClipboardData (TTYDRV.@)
130  */
131 BOOL TTYDRV_GetClipboardData(UINT wFormat)
132 {
133   return FALSE;
134 }
135
136 /***********************************************************************
137  *              IsClipboardFormatAvailable (TTYDRV.@)
138  */
139 BOOL TTYDRV_IsClipboardFormatAvailable(UINT wFormat)
140 {
141   return FALSE;
142 }
143
144 /**************************************************************************
145  *              RegisterClipboardFormat (TTYDRV.@)
146  *
147  * Registers a custom clipboard format
148  * Returns: TRUE - new format registered, FALSE - Format already registered
149  */
150 BOOL TTYDRV_RegisterClipboardFormat( LPCSTR FormatName )
151 {
152   return TRUE;
153 }
154
155 /**************************************************************************
156  *              IsSelectionOwner (TTYDRV.@)
157  *
158  * Returns: TRUE - We(WINE) own the selection, FALSE - Selection not owned by us
159  */
160 BOOL TTYDRV_IsSelectionOwner(void)
161 {
162     return FALSE;
163 }