Moved implementation of GetDiskFreeSpaceEx from ascii to unicode.
[wine] / files / tape.c
1 /*
2  * Tape handling functions
3  *
4  * Copyright 1999 Chris Morgan <cmorgan@wpi.edu>
5  *                James Abbatiello <abbeyj@wpi.edu>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  *
21  * TODO:
22  *    Everything, all functions are stubs.
23  */
24
25 #include "winbase.h"
26 #include "winerror.h"
27 #include "wine/debug.h"
28
29 WINE_DEFAULT_DEBUG_CHANNEL(tape);
30
31
32 /************************************************************************
33  *              BackupRead  (KERNEL32.@)
34  */
35 BOOL WINAPI BackupRead( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToRead,
36                 LPDWORD lpNumberOfBytesRead, BOOL bAbort,
37                 BOOL bProcessSecurity, LPVOID *lpContext )
38 {
39   FIXME("(%p, %p, %ld, %p, %d, %d, %p) stub!\n", hFile, lpBuffer,
40     nNumberOfBytesToRead, lpNumberOfBytesRead, bAbort, bProcessSecurity,
41     lpContext);
42
43   SetLastError( ERROR_NOT_SUPPORTED );
44
45   return FALSE;
46 }
47
48
49 /************************************************************************
50  *              BackupSeek  (KERNEL32.@)
51  */
52 BOOL WINAPI BackupSeek( HANDLE hFile, DWORD dwLowBytesToSeek, DWORD dwHighBytesToSeek,
53                 LPDWORD lpdwLowByteSeeked, LPDWORD lpdwHighByteSeeked,
54                 LPVOID *lpContext )
55 {
56   FIXME("(%p, %ld, %ld, %p, %p, %p) stub!\n", hFile, dwLowBytesToSeek,
57     dwHighBytesToSeek, lpdwLowByteSeeked, lpdwHighByteSeeked, lpContext);
58
59   SetLastError( ERROR_NOT_SUPPORTED );
60
61   return FALSE;
62 }
63
64
65 /************************************************************************
66  *              BackupWrite  (KERNEL32.@)
67  */
68 BOOL WINAPI BackupWrite( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToWrite,
69                 LPDWORD lpNumberOfBytesWritten, BOOL bAbort,
70                 BOOL bProcessSecurity, LPVOID *lpContext )
71 {
72   FIXME("(%p, %p, %ld, %p, %d, %d, %p) stub!\n", hFile, lpBuffer,
73     nNumberOfBytesToWrite, lpNumberOfBytesWritten, bAbort,
74     bProcessSecurity, lpContext);
75
76   SetLastError( ERROR_NOT_SUPPORTED );
77
78   return FALSE;
79 }
80
81
82 /************************************************************************
83  *              CreateTapePartition  (KERNEL32.@)
84  */
85 DWORD WINAPI CreateTapePartition( HANDLE hDevice, DWORD dwPartitionMethod,
86                         DWORD dwCount, DWORD dwSize )
87 {
88   FIXME("(%p, %ld, %ld, %ld) stub!\n", hDevice, dwPartitionMethod, dwCount,
89     dwSize);
90
91   SetLastError( ERROR_NOT_SUPPORTED );
92
93   return FALSE;
94 }
95
96
97 /************************************************************************
98  *              EraseTape  (KERNEL32.@)
99  */
100 DWORD WINAPI EraseTape( HANDLE hDevice, DWORD dwEraseType, BOOL bImmediate )
101 {
102   FIXME("(%p, %ld, %d) stub!\n", hDevice, dwEraseType, bImmediate);
103
104   SetLastError( ERROR_NOT_SUPPORTED );
105
106   return FALSE;
107 }
108
109
110 /************************************************************************
111  *              GetTapeParameters  (KERNEL32.@)
112  */
113 DWORD WINAPI GetTapeParameters( HANDLE hDevice, DWORD dwOperation,
114                         LPDWORD lpdwSize, LPVOID lpTapeInformation )
115 {
116   FIXME("(%p, %ld, %p, %p) stub!\n", hDevice, dwOperation, lpdwSize,
117     lpTapeInformation);
118
119   SetLastError( ERROR_NOT_SUPPORTED );
120
121   return FALSE;
122 }
123
124
125 /************************************************************************
126  *              GetTapePosition  (KERNEL32.@)
127  */
128 DWORD WINAPI GetTapePosition( HANDLE hDevice, DWORD dwPositionType,
129                         LPDWORD lpdwPartition, LPDWORD lpdwOffsetLow,
130                         LPDWORD lpdwOffsetHigh )
131 {
132   FIXME("(%p, %ld, %p, %p, %p) stub!\n", hDevice, dwPositionType,
133     lpdwPartition, lpdwOffsetLow, lpdwOffsetHigh);
134
135   SetLastError( ERROR_NOT_SUPPORTED );
136
137   return FALSE;
138 }
139
140
141 /************************************************************************
142  *              GetTapeStatus  (KERNEL32.@)
143  */
144 DWORD WINAPI GetTapeStatus( HANDLE hDevice )
145 {
146   FIXME("(%p) stub!\n", hDevice);
147
148   SetLastError( ERROR_NOT_SUPPORTED );
149
150   return FALSE;
151 }
152
153
154 /************************************************************************
155  *              PrepareTape  (KERNEL32.@)
156  */
157 DWORD WINAPI PrepareTape( HANDLE hDevice,  DWORD dwOperation,  BOOL bImmediate )
158 {
159   FIXME("(%p, %ld, %d) stub!\n", hDevice, dwOperation, bImmediate);
160
161   SetLastError( ERROR_NOT_SUPPORTED );
162
163   return FALSE;
164 }
165
166
167 /************************************************************************
168  *              SetTapeParameters  (KERNEL32.@)
169  */
170 DWORD WINAPI SetTapeParameters( HANDLE hDevice, DWORD dwOperation,
171                          LPVOID lpTapeInformation )
172 {
173   FIXME("(%p, %ld, %p) stub!\n", hDevice, dwOperation, lpTapeInformation);
174
175   SetLastError( ERROR_NOT_SUPPORTED );
176
177   return FALSE;
178 }
179
180
181 /************************************************************************
182  *              SetTapePosition  (KERNEL32.@)
183  */
184 DWORD WINAPI SetTapePosition( HANDLE hDevice, DWORD dwPositionMethod, DWORD
185                        dwPartition, DWORD dwOffsetLow, DWORD dwOffsetHigh,
186                        BOOL bImmediate )
187 {
188   FIXME("(%p, %ld, %ld, %ld, %ld, %d) stub!\n", hDevice, dwPositionMethod,
189     dwPartition, dwOffsetLow, dwOffsetHigh, bImmediate);
190
191   SetLastError( ERROR_NOT_SUPPORTED );
192
193   return FALSE;
194 }
195
196
197 /************************************************************************
198  *              WriteTapemark  (KERNEL32.@)
199  */
200 DWORD WINAPI WriteTapemark( HANDLE hDevice,  DWORD dwTapemarkType, DWORD
201                      dwTapemarkCount, BOOL bImmediate )
202 {
203   FIXME("(%p, %ld, %ld, %d) stub!\n", hDevice, dwTapemarkType,
204     dwTapemarkCount, bImmediate);
205
206   SetLastError( ERROR_NOT_SUPPORTED );
207
208   return FALSE;
209 }