blob: ab0f383c7362180f085a42057672605673e37c4b [file] [log] [blame]
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +00001/*
2 * Tape handling functions
3 *
4 * Copyright 1999 Chris Morgan <cmorgan@wpi.edu>
5 * James Abbatiello <abbeyj@wpi.edu>
6 *
Alexandre Julliard0799c1a2002-03-09 23:29:33 +00007 * 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 *
Vincent Béron9a624912002-05-31 23:06:46 +000021 * TODO:
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000022 * Everything, all functions are stubs.
23 */
24
25#include "winbase.h"
26#include "winerror.h"
Alexandre Julliard0799c1a2002-03-09 23:29:33 +000027#include "wine/debug.h"
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000028
Alexandre Julliard0799c1a2002-03-09 23:29:33 +000029WINE_DEFAULT_DEBUG_CHANNEL(tape);
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000030
31
32/************************************************************************
Patrik Stridvalldae8de62001-06-13 20:13:18 +000033 * BackupRead (KERNEL32.@)
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000034 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +000035BOOL WINAPI BackupRead( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToRead,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000036 LPDWORD lpNumberOfBytesRead, BOOL bAbort,
37 BOOL bProcessSecurity, LPVOID *lpContext )
38{
Huw D M Davies90d089b1999-12-12 19:40:01 +000039 FIXME("(%04x, %p, %ld, %p, %d, %d, %p) stub!\n", hFile, lpBuffer,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000040 nNumberOfBytesToRead, lpNumberOfBytesRead, bAbort, bProcessSecurity,
41 lpContext);
Vincent Béron9a624912002-05-31 23:06:46 +000042
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000043 SetLastError( ERROR_NOT_SUPPORTED );
44
45 return FALSE;
46}
47
48
49/************************************************************************
Patrik Stridvalldae8de62001-06-13 20:13:18 +000050 * BackupSeek (KERNEL32.@)
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000051 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +000052BOOL WINAPI BackupSeek( HANDLE hFile, DWORD dwLowBytesToSeek, DWORD dwHighBytesToSeek,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000053 LPDWORD lpdwLowByteSeeked, LPDWORD lpdwHighByteSeeked,
54 LPVOID *lpContext )
55{
Huw D M Davies90d089b1999-12-12 19:40:01 +000056 FIXME("(%04x, %ld, %ld, %p, %p, %p) stub!\n", hFile, dwLowBytesToSeek,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000057 dwHighBytesToSeek, lpdwLowByteSeeked, lpdwHighByteSeeked, lpContext);
58
59 SetLastError( ERROR_NOT_SUPPORTED );
60
Vincent Béron9a624912002-05-31 23:06:46 +000061 return FALSE;
62}
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000063
64
65/************************************************************************
Patrik Stridvalldae8de62001-06-13 20:13:18 +000066 * BackupWrite (KERNEL32.@)
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000067 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +000068BOOL WINAPI BackupWrite( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToWrite,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000069 LPDWORD lpNumberOfBytesWritten, BOOL bAbort,
70 BOOL bProcessSecurity, LPVOID *lpContext )
71{
Huw D M Davies90d089b1999-12-12 19:40:01 +000072 FIXME("(%04x, %p, %ld, %p, %d, %d, %p) stub!\n", hFile, lpBuffer,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000073 nNumberOfBytesToWrite, lpNumberOfBytesWritten, bAbort,
74 bProcessSecurity, lpContext);
75
76 SetLastError( ERROR_NOT_SUPPORTED );
77
78 return FALSE;
79}
80
81
82/************************************************************************
Patrik Stridvalldae8de62001-06-13 20:13:18 +000083 * CreateTapePartition (KERNEL32.@)
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000084 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +000085DWORD WINAPI CreateTapePartition( HANDLE hDevice, DWORD dwPartitionMethod,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000086 DWORD dwCount, DWORD dwSize )
87{
Huw D M Davies90d089b1999-12-12 19:40:01 +000088 FIXME("(%04x, %ld, %ld, %ld) stub!\n", hDevice, dwPartitionMethod, dwCount,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000089 dwSize);
90
91 SetLastError( ERROR_NOT_SUPPORTED );
92
93 return FALSE;
94}
95
96
97/************************************************************************
Patrik Stridvalldae8de62001-06-13 20:13:18 +000098 * EraseTape (KERNEL32.@)
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000099 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +0000100DWORD WINAPI EraseTape( HANDLE hDevice, DWORD dwEraseType, BOOL bImmediate )
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000101{
Huw D M Davies90d089b1999-12-12 19:40:01 +0000102 FIXME("(%04x, %ld, %d) stub!\n", hDevice, dwEraseType, bImmediate);
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000103
104 SetLastError( ERROR_NOT_SUPPORTED );
105
106 return FALSE;
107}
108
109
110/************************************************************************
Patrik Stridvalldae8de62001-06-13 20:13:18 +0000111 * GetTapeParameters (KERNEL32.@)
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000112 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +0000113DWORD WINAPI GetTapeParameters( HANDLE hDevice, DWORD dwOperation,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000114 LPDWORD lpdwSize, LPVOID lpTapeInformation )
115{
Huw D M Davies90d089b1999-12-12 19:40:01 +0000116 FIXME("(%04x, %ld, %p, %p) stub!\n", hDevice, dwOperation, lpdwSize,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000117 lpTapeInformation);
118
119 SetLastError( ERROR_NOT_SUPPORTED );
120
121 return FALSE;
122}
123
124
125/************************************************************************
Patrik Stridvalldae8de62001-06-13 20:13:18 +0000126 * GetTapePosition (KERNEL32.@)
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000127 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +0000128DWORD WINAPI GetTapePosition( HANDLE hDevice, DWORD dwPositionType,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000129 LPDWORD lpdwPartition, LPDWORD lpdwOffsetLow,
130 LPDWORD lpdwOffsetHigh )
Vincent Béron9a624912002-05-31 23:06:46 +0000131{
Huw D M Davies90d089b1999-12-12 19:40:01 +0000132 FIXME("(%04x, %ld, %p, %p, %p) stub!\n", hDevice, dwPositionType,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000133 lpdwPartition, lpdwOffsetLow, lpdwOffsetHigh);
134
135 SetLastError( ERROR_NOT_SUPPORTED );
136
137 return FALSE;
138}
139
140
141/************************************************************************
Patrik Stridvalldae8de62001-06-13 20:13:18 +0000142 * GetTapeStatus (KERNEL32.@)
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000143 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +0000144DWORD WINAPI GetTapeStatus( HANDLE hDevice )
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000145{
146 FIXME("(%04x) stub!\n", hDevice);
147
148 SetLastError( ERROR_NOT_SUPPORTED );
149
150 return FALSE;
151}
152
153
154/************************************************************************
Patrik Stridvalldae8de62001-06-13 20:13:18 +0000155 * PrepareTape (KERNEL32.@)
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000156 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +0000157DWORD WINAPI PrepareTape( HANDLE hDevice, DWORD dwOperation, BOOL bImmediate )
Vincent Béron9a624912002-05-31 23:06:46 +0000158{
Huw D M Davies90d089b1999-12-12 19:40:01 +0000159 FIXME("(%04x, %ld, %d) stub!\n", hDevice, dwOperation, bImmediate);
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000160
161 SetLastError( ERROR_NOT_SUPPORTED );
162
163 return FALSE;
164}
165
166
167/************************************************************************
Patrik Stridvalldae8de62001-06-13 20:13:18 +0000168 * SetTapeParameters (KERNEL32.@)
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000169 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +0000170DWORD WINAPI SetTapeParameters( HANDLE hDevice, DWORD dwOperation,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000171 LPVOID lpTapeInformation )
172{
Huw D M Davies90d089b1999-12-12 19:40:01 +0000173 FIXME("(%04x, %ld, %p) stub!\n", hDevice, dwOperation, lpTapeInformation);
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000174
175 SetLastError( ERROR_NOT_SUPPORTED );
176
177 return FALSE;
178}
179
180
181/************************************************************************
Patrik Stridvalldae8de62001-06-13 20:13:18 +0000182 * SetTapePosition (KERNEL32.@)
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000183 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +0000184DWORD WINAPI SetTapePosition( HANDLE hDevice, DWORD dwPositionMethod, DWORD
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000185 dwPartition, DWORD dwOffsetLow, DWORD dwOffsetHigh,
186 BOOL bImmediate )
187{
Huw D M Davies90d089b1999-12-12 19:40:01 +0000188 FIXME("(%04x, %ld, %ld, %ld, %ld, %d) stub!\n", hDevice, dwPositionMethod,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000189 dwPartition, dwOffsetLow, dwOffsetHigh, bImmediate);
190
191 SetLastError( ERROR_NOT_SUPPORTED );
192
193 return FALSE;
194}
195
196
197/************************************************************************
Patrik Stridvalldae8de62001-06-13 20:13:18 +0000198 * WriteTapemark (KERNEL32.@)
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000199 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +0000200DWORD WINAPI WriteTapemark( HANDLE hDevice, DWORD dwTapemarkType, DWORD
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000201 dwTapemarkCount, BOOL bImmediate )
202{
Huw D M Davies90d089b1999-12-12 19:40:01 +0000203 FIXME("(%04x, %ld, %ld, %d) stub!\n", hDevice, dwTapemarkType,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000204 dwTapemarkCount, bImmediate);
205
206 SetLastError( ERROR_NOT_SUPPORTED );
207
208 return FALSE;
Huw D M Davies90d089b1999-12-12 19:40:01 +0000209}