Removed the FailReadOnly option, this is now the default behavior.
[wine] / dlls / kernel / 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 <stdarg.h>
26
27 #include "windef.h"
28 #include "winbase.h"
29 #include "winerror.h"
30 #include "wine/debug.h"
31
32 WINE_DEFAULT_DEBUG_CHANNEL(tape);
33
34
35 /************************************************************************
36  *              BackupRead  (KERNEL32.@)
37  */
38 BOOL WINAPI BackupRead( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToRead,
39                 LPDWORD lpNumberOfBytesRead, BOOL bAbort,
40                 BOOL bProcessSecurity, LPVOID *lpContext )
41 {
42   FIXME("(%p, %p, %ld, %p, %d, %d, %p) stub!\n", hFile, lpBuffer,
43     nNumberOfBytesToRead, lpNumberOfBytesRead, bAbort, bProcessSecurity,
44     lpContext);
45
46   SetLastError( ERROR_NOT_SUPPORTED );
47
48   return FALSE;
49 }
50
51
52 /************************************************************************
53  *              BackupSeek  (KERNEL32.@)
54  */
55 BOOL WINAPI BackupSeek( HANDLE hFile, DWORD dwLowBytesToSeek, DWORD dwHighBytesToSeek,
56                 LPDWORD lpdwLowByteSeeked, LPDWORD lpdwHighByteSeeked,
57                 LPVOID *lpContext )
58 {
59   FIXME("(%p, %ld, %ld, %p, %p, %p) stub!\n", hFile, dwLowBytesToSeek,
60     dwHighBytesToSeek, lpdwLowByteSeeked, lpdwHighByteSeeked, lpContext);
61
62   SetLastError( ERROR_NOT_SUPPORTED );
63
64   return FALSE;
65 }
66
67
68 /************************************************************************
69  *              BackupWrite  (KERNEL32.@)
70  */
71 BOOL WINAPI BackupWrite( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToWrite,
72                 LPDWORD lpNumberOfBytesWritten, BOOL bAbort,
73                 BOOL bProcessSecurity, LPVOID *lpContext )
74 {
75   FIXME("(%p, %p, %ld, %p, %d, %d, %p) stub!\n", hFile, lpBuffer,
76     nNumberOfBytesToWrite, lpNumberOfBytesWritten, bAbort,
77     bProcessSecurity, lpContext);
78
79   SetLastError( ERROR_NOT_SUPPORTED );
80
81   return FALSE;
82 }
83
84
85 /************************************************************************
86  *              CreateTapePartition  (KERNEL32.@)
87  */
88 DWORD WINAPI CreateTapePartition( HANDLE hDevice, DWORD dwPartitionMethod,
89                         DWORD dwCount, DWORD dwSize )
90 {
91   FIXME("(%p, %ld, %ld, %ld) stub!\n", hDevice, dwPartitionMethod, dwCount,
92     dwSize);
93
94   SetLastError( ERROR_NOT_SUPPORTED );
95
96   return FALSE;
97 }
98
99
100 /************************************************************************
101  *              EraseTape  (KERNEL32.@)
102  */
103 DWORD WINAPI EraseTape( HANDLE hDevice, DWORD dwEraseType, BOOL bImmediate )
104 {
105   FIXME("(%p, %ld, %d) stub!\n", hDevice, dwEraseType, bImmediate);
106
107   SetLastError( ERROR_NOT_SUPPORTED );
108
109   return FALSE;
110 }
111
112
113 /************************************************************************
114  *              GetTapeParameters  (KERNEL32.@)
115  */
116 DWORD WINAPI GetTapeParameters( HANDLE hDevice, DWORD dwOperation,
117                         LPDWORD lpdwSize, LPVOID lpTapeInformation )
118 {
119   FIXME("(%p, %ld, %p, %p) stub!\n", hDevice, dwOperation, lpdwSize,
120     lpTapeInformation);
121
122   SetLastError( ERROR_NOT_SUPPORTED );
123
124   return FALSE;
125 }
126
127
128 /************************************************************************
129  *              GetTapePosition  (KERNEL32.@)
130  */
131 DWORD WINAPI GetTapePosition( HANDLE hDevice, DWORD dwPositionType,
132                         LPDWORD lpdwPartition, LPDWORD lpdwOffsetLow,
133                         LPDWORD lpdwOffsetHigh )
134 {
135   FIXME("(%p, %ld, %p, %p, %p) stub!\n", hDevice, dwPositionType,
136     lpdwPartition, lpdwOffsetLow, lpdwOffsetHigh);
137
138   SetLastError( ERROR_NOT_SUPPORTED );
139
140   return FALSE;
141 }
142
143
144 /************************************************************************
145  *              GetTapeStatus  (KERNEL32.@)
146  */
147 DWORD WINAPI GetTapeStatus( HANDLE hDevice )
148 {
149   FIXME("(%p) stub!\n", hDevice);
150
151   SetLastError( ERROR_NOT_SUPPORTED );
152
153   return FALSE;
154 }
155
156
157 /************************************************************************
158  *              PrepareTape  (KERNEL32.@)
159  */
160 DWORD WINAPI PrepareTape( HANDLE hDevice,  DWORD dwOperation,  BOOL bImmediate )
161 {
162   FIXME("(%p, %ld, %d) stub!\n", hDevice, dwOperation, bImmediate);
163
164   SetLastError( ERROR_NOT_SUPPORTED );
165
166   return FALSE;
167 }
168
169
170 /************************************************************************
171  *              SetTapeParameters  (KERNEL32.@)
172  */
173 DWORD WINAPI SetTapeParameters( HANDLE hDevice, DWORD dwOperation,
174                          LPVOID lpTapeInformation )
175 {
176   FIXME("(%p, %ld, %p) stub!\n", hDevice, dwOperation, lpTapeInformation);
177
178   SetLastError( ERROR_NOT_SUPPORTED );
179
180   return FALSE;
181 }
182
183
184 /************************************************************************
185  *              SetTapePosition  (KERNEL32.@)
186  */
187 DWORD WINAPI SetTapePosition( HANDLE hDevice, DWORD dwPositionMethod, DWORD
188                        dwPartition, DWORD dwOffsetLow, DWORD dwOffsetHigh,
189                        BOOL bImmediate )
190 {
191   FIXME("(%p, %ld, %ld, %ld, %ld, %d) stub!\n", hDevice, dwPositionMethod,
192     dwPartition, dwOffsetLow, dwOffsetHigh, bImmediate);
193
194   SetLastError( ERROR_NOT_SUPPORTED );
195
196   return FALSE;
197 }
198
199
200 /************************************************************************
201  *              WriteTapemark  (KERNEL32.@)
202  */
203 DWORD WINAPI WriteTapemark( HANDLE hDevice,  DWORD dwTapemarkType, DWORD
204                      dwTapemarkCount, BOOL bImmediate )
205 {
206   FIXME("(%p, %ld, %ld, %d) stub!\n", hDevice, dwTapemarkType,
207     dwTapemarkCount, bImmediate);
208
209   SetLastError( ERROR_NOT_SUPPORTED );
210
211   return FALSE;
212 }