Release 20020904.
[wine/gsoc-2012-control.git] / files / tape.c
blobab0f383c7362180f085a42057672605673e37c4b
1 /*
2 * Tape handling functions
4 * Copyright 1999 Chris Morgan <cmorgan@wpi.edu>
5 * James Abbatiello <abbeyj@wpi.edu>
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.
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.
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
21 * TODO:
22 * Everything, all functions are stubs.
25 #include "winbase.h"
26 #include "winerror.h"
27 #include "wine/debug.h"
29 WINE_DEFAULT_DEBUG_CHANNEL(tape);
32 /************************************************************************
33 * BackupRead (KERNEL32.@)
35 BOOL WINAPI BackupRead( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToRead,
36 LPDWORD lpNumberOfBytesRead, BOOL bAbort,
37 BOOL bProcessSecurity, LPVOID *lpContext )
39 FIXME("(%04x, %p, %ld, %p, %d, %d, %p) stub!\n", hFile, lpBuffer,
40 nNumberOfBytesToRead, lpNumberOfBytesRead, bAbort, bProcessSecurity,
41 lpContext);
43 SetLastError( ERROR_NOT_SUPPORTED );
45 return FALSE;
49 /************************************************************************
50 * BackupSeek (KERNEL32.@)
52 BOOL WINAPI BackupSeek( HANDLE hFile, DWORD dwLowBytesToSeek, DWORD dwHighBytesToSeek,
53 LPDWORD lpdwLowByteSeeked, LPDWORD lpdwHighByteSeeked,
54 LPVOID *lpContext )
56 FIXME("(%04x, %ld, %ld, %p, %p, %p) stub!\n", hFile, dwLowBytesToSeek,
57 dwHighBytesToSeek, lpdwLowByteSeeked, lpdwHighByteSeeked, lpContext);
59 SetLastError( ERROR_NOT_SUPPORTED );
61 return FALSE;
65 /************************************************************************
66 * BackupWrite (KERNEL32.@)
68 BOOL WINAPI BackupWrite( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToWrite,
69 LPDWORD lpNumberOfBytesWritten, BOOL bAbort,
70 BOOL bProcessSecurity, LPVOID *lpContext )
72 FIXME("(%04x, %p, %ld, %p, %d, %d, %p) stub!\n", hFile, lpBuffer,
73 nNumberOfBytesToWrite, lpNumberOfBytesWritten, bAbort,
74 bProcessSecurity, lpContext);
76 SetLastError( ERROR_NOT_SUPPORTED );
78 return FALSE;
82 /************************************************************************
83 * CreateTapePartition (KERNEL32.@)
85 DWORD WINAPI CreateTapePartition( HANDLE hDevice, DWORD dwPartitionMethod,
86 DWORD dwCount, DWORD dwSize )
88 FIXME("(%04x, %ld, %ld, %ld) stub!\n", hDevice, dwPartitionMethod, dwCount,
89 dwSize);
91 SetLastError( ERROR_NOT_SUPPORTED );
93 return FALSE;
97 /************************************************************************
98 * EraseTape (KERNEL32.@)
100 DWORD WINAPI EraseTape( HANDLE hDevice, DWORD dwEraseType, BOOL bImmediate )
102 FIXME("(%04x, %ld, %d) stub!\n", hDevice, dwEraseType, bImmediate);
104 SetLastError( ERROR_NOT_SUPPORTED );
106 return FALSE;
110 /************************************************************************
111 * GetTapeParameters (KERNEL32.@)
113 DWORD WINAPI GetTapeParameters( HANDLE hDevice, DWORD dwOperation,
114 LPDWORD lpdwSize, LPVOID lpTapeInformation )
116 FIXME("(%04x, %ld, %p, %p) stub!\n", hDevice, dwOperation, lpdwSize,
117 lpTapeInformation);
119 SetLastError( ERROR_NOT_SUPPORTED );
121 return FALSE;
125 /************************************************************************
126 * GetTapePosition (KERNEL32.@)
128 DWORD WINAPI GetTapePosition( HANDLE hDevice, DWORD dwPositionType,
129 LPDWORD lpdwPartition, LPDWORD lpdwOffsetLow,
130 LPDWORD lpdwOffsetHigh )
132 FIXME("(%04x, %ld, %p, %p, %p) stub!\n", hDevice, dwPositionType,
133 lpdwPartition, lpdwOffsetLow, lpdwOffsetHigh);
135 SetLastError( ERROR_NOT_SUPPORTED );
137 return FALSE;
141 /************************************************************************
142 * GetTapeStatus (KERNEL32.@)
144 DWORD WINAPI GetTapeStatus( HANDLE hDevice )
146 FIXME("(%04x) stub!\n", hDevice);
148 SetLastError( ERROR_NOT_SUPPORTED );
150 return FALSE;
154 /************************************************************************
155 * PrepareTape (KERNEL32.@)
157 DWORD WINAPI PrepareTape( HANDLE hDevice, DWORD dwOperation, BOOL bImmediate )
159 FIXME("(%04x, %ld, %d) stub!\n", hDevice, dwOperation, bImmediate);
161 SetLastError( ERROR_NOT_SUPPORTED );
163 return FALSE;
167 /************************************************************************
168 * SetTapeParameters (KERNEL32.@)
170 DWORD WINAPI SetTapeParameters( HANDLE hDevice, DWORD dwOperation,
171 LPVOID lpTapeInformation )
173 FIXME("(%04x, %ld, %p) stub!\n", hDevice, dwOperation, lpTapeInformation);
175 SetLastError( ERROR_NOT_SUPPORTED );
177 return FALSE;
181 /************************************************************************
182 * SetTapePosition (KERNEL32.@)
184 DWORD WINAPI SetTapePosition( HANDLE hDevice, DWORD dwPositionMethod, DWORD
185 dwPartition, DWORD dwOffsetLow, DWORD dwOffsetHigh,
186 BOOL bImmediate )
188 FIXME("(%04x, %ld, %ld, %ld, %ld, %d) stub!\n", hDevice, dwPositionMethod,
189 dwPartition, dwOffsetLow, dwOffsetHigh, bImmediate);
191 SetLastError( ERROR_NOT_SUPPORTED );
193 return FALSE;
197 /************************************************************************
198 * WriteTapemark (KERNEL32.@)
200 DWORD WINAPI WriteTapemark( HANDLE hDevice, DWORD dwTapemarkType, DWORD
201 dwTapemarkCount, BOOL bImmediate )
203 FIXME("(%04x, %ld, %ld, %d) stub!\n", hDevice, dwTapemarkType,
204 dwTapemarkCount, bImmediate);
206 SetLastError( ERROR_NOT_SUPPORTED );
208 return FALSE;