Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Tape handling functions |
| 3 | * |
| 4 | * Copyright 1999 Chris Morgan <cmorgan@wpi.edu> |
| 5 | * James Abbatiello <abbeyj@wpi.edu> |
| 6 | * |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 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 | * |
Vincent Béron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 21 | * TODO: |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 22 | * Everything, all functions are stubs. |
| 23 | */ |
| 24 | |
| 25 | #include "winbase.h" |
| 26 | #include "winerror.h" |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 27 | #include "wine/debug.h" |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 28 | |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 29 | WINE_DEFAULT_DEBUG_CHANNEL(tape); |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 30 | |
| 31 | |
| 32 | /************************************************************************ |
Patrik Stridvall | dae8de6 | 2001-06-13 20:13:18 +0000 | [diff] [blame] | 33 | * BackupRead (KERNEL32.@) |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 34 | */ |
Alexandre Julliard | 05d006b | 1999-12-11 23:04:05 +0000 | [diff] [blame] | 35 | BOOL WINAPI BackupRead( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToRead, |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 36 | LPDWORD lpNumberOfBytesRead, BOOL bAbort, |
| 37 | BOOL bProcessSecurity, LPVOID *lpContext ) |
| 38 | { |
Huw D M Davies | 90d089b | 1999-12-12 19:40:01 +0000 | [diff] [blame] | 39 | FIXME("(%04x, %p, %ld, %p, %d, %d, %p) stub!\n", hFile, lpBuffer, |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 40 | nNumberOfBytesToRead, lpNumberOfBytesRead, bAbort, bProcessSecurity, |
| 41 | lpContext); |
Vincent Béron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 42 | |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 43 | SetLastError( ERROR_NOT_SUPPORTED ); |
| 44 | |
| 45 | return FALSE; |
| 46 | } |
| 47 | |
| 48 | |
| 49 | /************************************************************************ |
Patrik Stridvall | dae8de6 | 2001-06-13 20:13:18 +0000 | [diff] [blame] | 50 | * BackupSeek (KERNEL32.@) |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 51 | */ |
Alexandre Julliard | 05d006b | 1999-12-11 23:04:05 +0000 | [diff] [blame] | 52 | BOOL WINAPI BackupSeek( HANDLE hFile, DWORD dwLowBytesToSeek, DWORD dwHighBytesToSeek, |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 53 | LPDWORD lpdwLowByteSeeked, LPDWORD lpdwHighByteSeeked, |
| 54 | LPVOID *lpContext ) |
| 55 | { |
Huw D M Davies | 90d089b | 1999-12-12 19:40:01 +0000 | [diff] [blame] | 56 | FIXME("(%04x, %ld, %ld, %p, %p, %p) stub!\n", hFile, dwLowBytesToSeek, |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 57 | dwHighBytesToSeek, lpdwLowByteSeeked, lpdwHighByteSeeked, lpContext); |
| 58 | |
| 59 | SetLastError( ERROR_NOT_SUPPORTED ); |
| 60 | |
Vincent Béron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 61 | return FALSE; |
| 62 | } |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 63 | |
| 64 | |
| 65 | /************************************************************************ |
Patrik Stridvall | dae8de6 | 2001-06-13 20:13:18 +0000 | [diff] [blame] | 66 | * BackupWrite (KERNEL32.@) |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 67 | */ |
Alexandre Julliard | 05d006b | 1999-12-11 23:04:05 +0000 | [diff] [blame] | 68 | BOOL WINAPI BackupWrite( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToWrite, |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 69 | LPDWORD lpNumberOfBytesWritten, BOOL bAbort, |
| 70 | BOOL bProcessSecurity, LPVOID *lpContext ) |
| 71 | { |
Huw D M Davies | 90d089b | 1999-12-12 19:40:01 +0000 | [diff] [blame] | 72 | FIXME("(%04x, %p, %ld, %p, %d, %d, %p) stub!\n", hFile, lpBuffer, |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 73 | nNumberOfBytesToWrite, lpNumberOfBytesWritten, bAbort, |
| 74 | bProcessSecurity, lpContext); |
| 75 | |
| 76 | SetLastError( ERROR_NOT_SUPPORTED ); |
| 77 | |
| 78 | return FALSE; |
| 79 | } |
| 80 | |
| 81 | |
| 82 | /************************************************************************ |
Patrik Stridvall | dae8de6 | 2001-06-13 20:13:18 +0000 | [diff] [blame] | 83 | * CreateTapePartition (KERNEL32.@) |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 84 | */ |
Alexandre Julliard | 05d006b | 1999-12-11 23:04:05 +0000 | [diff] [blame] | 85 | DWORD WINAPI CreateTapePartition( HANDLE hDevice, DWORD dwPartitionMethod, |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 86 | DWORD dwCount, DWORD dwSize ) |
| 87 | { |
Huw D M Davies | 90d089b | 1999-12-12 19:40:01 +0000 | [diff] [blame] | 88 | FIXME("(%04x, %ld, %ld, %ld) stub!\n", hDevice, dwPartitionMethod, dwCount, |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 89 | dwSize); |
| 90 | |
| 91 | SetLastError( ERROR_NOT_SUPPORTED ); |
| 92 | |
| 93 | return FALSE; |
| 94 | } |
| 95 | |
| 96 | |
| 97 | /************************************************************************ |
Patrik Stridvall | dae8de6 | 2001-06-13 20:13:18 +0000 | [diff] [blame] | 98 | * EraseTape (KERNEL32.@) |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 99 | */ |
Alexandre Julliard | 05d006b | 1999-12-11 23:04:05 +0000 | [diff] [blame] | 100 | DWORD WINAPI EraseTape( HANDLE hDevice, DWORD dwEraseType, BOOL bImmediate ) |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 101 | { |
Huw D M Davies | 90d089b | 1999-12-12 19:40:01 +0000 | [diff] [blame] | 102 | FIXME("(%04x, %ld, %d) stub!\n", hDevice, dwEraseType, bImmediate); |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 103 | |
| 104 | SetLastError( ERROR_NOT_SUPPORTED ); |
| 105 | |
| 106 | return FALSE; |
| 107 | } |
| 108 | |
| 109 | |
| 110 | /************************************************************************ |
Patrik Stridvall | dae8de6 | 2001-06-13 20:13:18 +0000 | [diff] [blame] | 111 | * GetTapeParameters (KERNEL32.@) |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 112 | */ |
Alexandre Julliard | 05d006b | 1999-12-11 23:04:05 +0000 | [diff] [blame] | 113 | DWORD WINAPI GetTapeParameters( HANDLE hDevice, DWORD dwOperation, |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 114 | LPDWORD lpdwSize, LPVOID lpTapeInformation ) |
| 115 | { |
Huw D M Davies | 90d089b | 1999-12-12 19:40:01 +0000 | [diff] [blame] | 116 | FIXME("(%04x, %ld, %p, %p) stub!\n", hDevice, dwOperation, lpdwSize, |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 117 | lpTapeInformation); |
| 118 | |
| 119 | SetLastError( ERROR_NOT_SUPPORTED ); |
| 120 | |
| 121 | return FALSE; |
| 122 | } |
| 123 | |
| 124 | |
| 125 | /************************************************************************ |
Patrik Stridvall | dae8de6 | 2001-06-13 20:13:18 +0000 | [diff] [blame] | 126 | * GetTapePosition (KERNEL32.@) |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 127 | */ |
Alexandre Julliard | 05d006b | 1999-12-11 23:04:05 +0000 | [diff] [blame] | 128 | DWORD WINAPI GetTapePosition( HANDLE hDevice, DWORD dwPositionType, |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 129 | LPDWORD lpdwPartition, LPDWORD lpdwOffsetLow, |
| 130 | LPDWORD lpdwOffsetHigh ) |
Vincent Béron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 131 | { |
Huw D M Davies | 90d089b | 1999-12-12 19:40:01 +0000 | [diff] [blame] | 132 | FIXME("(%04x, %ld, %p, %p, %p) stub!\n", hDevice, dwPositionType, |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 133 | lpdwPartition, lpdwOffsetLow, lpdwOffsetHigh); |
| 134 | |
| 135 | SetLastError( ERROR_NOT_SUPPORTED ); |
| 136 | |
| 137 | return FALSE; |
| 138 | } |
| 139 | |
| 140 | |
| 141 | /************************************************************************ |
Patrik Stridvall | dae8de6 | 2001-06-13 20:13:18 +0000 | [diff] [blame] | 142 | * GetTapeStatus (KERNEL32.@) |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 143 | */ |
Alexandre Julliard | 05d006b | 1999-12-11 23:04:05 +0000 | [diff] [blame] | 144 | DWORD WINAPI GetTapeStatus( HANDLE hDevice ) |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 145 | { |
| 146 | FIXME("(%04x) stub!\n", hDevice); |
| 147 | |
| 148 | SetLastError( ERROR_NOT_SUPPORTED ); |
| 149 | |
| 150 | return FALSE; |
| 151 | } |
| 152 | |
| 153 | |
| 154 | /************************************************************************ |
Patrik Stridvall | dae8de6 | 2001-06-13 20:13:18 +0000 | [diff] [blame] | 155 | * PrepareTape (KERNEL32.@) |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 156 | */ |
Alexandre Julliard | 05d006b | 1999-12-11 23:04:05 +0000 | [diff] [blame] | 157 | DWORD WINAPI PrepareTape( HANDLE hDevice, DWORD dwOperation, BOOL bImmediate ) |
Vincent Béron | 9a62491 | 2002-05-31 23:06:46 +0000 | [diff] [blame] | 158 | { |
Huw D M Davies | 90d089b | 1999-12-12 19:40:01 +0000 | [diff] [blame] | 159 | FIXME("(%04x, %ld, %d) stub!\n", hDevice, dwOperation, bImmediate); |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 160 | |
| 161 | SetLastError( ERROR_NOT_SUPPORTED ); |
| 162 | |
| 163 | return FALSE; |
| 164 | } |
| 165 | |
| 166 | |
| 167 | /************************************************************************ |
Patrik Stridvall | dae8de6 | 2001-06-13 20:13:18 +0000 | [diff] [blame] | 168 | * SetTapeParameters (KERNEL32.@) |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 169 | */ |
Alexandre Julliard | 05d006b | 1999-12-11 23:04:05 +0000 | [diff] [blame] | 170 | DWORD WINAPI SetTapeParameters( HANDLE hDevice, DWORD dwOperation, |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 171 | LPVOID lpTapeInformation ) |
| 172 | { |
Huw D M Davies | 90d089b | 1999-12-12 19:40:01 +0000 | [diff] [blame] | 173 | FIXME("(%04x, %ld, %p) stub!\n", hDevice, dwOperation, lpTapeInformation); |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 174 | |
| 175 | SetLastError( ERROR_NOT_SUPPORTED ); |
| 176 | |
| 177 | return FALSE; |
| 178 | } |
| 179 | |
| 180 | |
| 181 | /************************************************************************ |
Patrik Stridvall | dae8de6 | 2001-06-13 20:13:18 +0000 | [diff] [blame] | 182 | * SetTapePosition (KERNEL32.@) |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 183 | */ |
Alexandre Julliard | 05d006b | 1999-12-11 23:04:05 +0000 | [diff] [blame] | 184 | DWORD WINAPI SetTapePosition( HANDLE hDevice, DWORD dwPositionMethod, DWORD |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 185 | dwPartition, DWORD dwOffsetLow, DWORD dwOffsetHigh, |
| 186 | BOOL bImmediate ) |
| 187 | { |
Huw D M Davies | 90d089b | 1999-12-12 19:40:01 +0000 | [diff] [blame] | 188 | FIXME("(%04x, %ld, %ld, %ld, %ld, %d) stub!\n", hDevice, dwPositionMethod, |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 189 | dwPartition, dwOffsetLow, dwOffsetHigh, bImmediate); |
| 190 | |
| 191 | SetLastError( ERROR_NOT_SUPPORTED ); |
| 192 | |
| 193 | return FALSE; |
| 194 | } |
| 195 | |
| 196 | |
| 197 | /************************************************************************ |
Patrik Stridvall | dae8de6 | 2001-06-13 20:13:18 +0000 | [diff] [blame] | 198 | * WriteTapemark (KERNEL32.@) |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 199 | */ |
Alexandre Julliard | 05d006b | 1999-12-11 23:04:05 +0000 | [diff] [blame] | 200 | DWORD WINAPI WriteTapemark( HANDLE hDevice, DWORD dwTapemarkType, DWORD |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 201 | dwTapemarkCount, BOOL bImmediate ) |
| 202 | { |
Huw D M Davies | 90d089b | 1999-12-12 19:40:01 +0000 | [diff] [blame] | 203 | FIXME("(%04x, %ld, %ld, %d) stub!\n", hDevice, dwTapemarkType, |
Alexandre Julliard | 7b7e2d4 | 1999-12-10 03:46:20 +0000 | [diff] [blame] | 204 | dwTapemarkCount, bImmediate); |
| 205 | |
| 206 | SetLastError( ERROR_NOT_SUPPORTED ); |
| 207 | |
| 208 | return FALSE; |
Huw D M Davies | 90d089b | 1999-12-12 19:40:01 +0000 | [diff] [blame] | 209 | } |