blob: 9f92d3bd483dc41e7c0253191c0253b2e9a1b4f5 [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 *
7 * TODO:
8 * Everything, all functions are stubs.
9 */
10
11#include "winbase.h"
12#include "winerror.h"
13#include "debugtools.h"
14
15DEFAULT_DEBUG_CHANNEL(tape)
16
17
18/************************************************************************
19 * BackupRead (KERNEL32.107)
20 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +000021BOOL WINAPI BackupRead( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToRead,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000022 LPDWORD lpNumberOfBytesRead, BOOL bAbort,
23 BOOL bProcessSecurity, LPVOID *lpContext )
24{
Huw D M Davies90d089b1999-12-12 19:40:01 +000025 FIXME("(%04x, %p, %ld, %p, %d, %d, %p) stub!\n", hFile, lpBuffer,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000026 nNumberOfBytesToRead, lpNumberOfBytesRead, bAbort, bProcessSecurity,
27 lpContext);
28
29 SetLastError( ERROR_NOT_SUPPORTED );
30
31 return FALSE;
32}
33
34
35/************************************************************************
36 * BackupSeek (KERNEL32.108)
37 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +000038BOOL WINAPI BackupSeek( HANDLE hFile, DWORD dwLowBytesToSeek, DWORD dwHighBytesToSeek,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000039 LPDWORD lpdwLowByteSeeked, LPDWORD lpdwHighByteSeeked,
40 LPVOID *lpContext )
41{
Huw D M Davies90d089b1999-12-12 19:40:01 +000042 FIXME("(%04x, %ld, %ld, %p, %p, %p) stub!\n", hFile, dwLowBytesToSeek,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000043 dwHighBytesToSeek, lpdwLowByteSeeked, lpdwHighByteSeeked, lpContext);
44
45 SetLastError( ERROR_NOT_SUPPORTED );
46
47 return FALSE;
48}
49
50
51/************************************************************************
52 * BackupWrite (KERNEL32.109)
53 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +000054BOOL WINAPI BackupWrite( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToWrite,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000055 LPDWORD lpNumberOfBytesWritten, BOOL bAbort,
56 BOOL bProcessSecurity, LPVOID *lpContext )
57{
Huw D M Davies90d089b1999-12-12 19:40:01 +000058 FIXME("(%04x, %p, %ld, %p, %d, %d, %p) stub!\n", hFile, lpBuffer,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000059 nNumberOfBytesToWrite, lpNumberOfBytesWritten, bAbort,
60 bProcessSecurity, lpContext);
61
62 SetLastError( ERROR_NOT_SUPPORTED );
63
64 return FALSE;
65}
66
67
68/************************************************************************
69 * CreateTapePartition (KERNEL32.177)
70 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +000071DWORD WINAPI CreateTapePartition( HANDLE hDevice, DWORD dwPartitionMethod,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000072 DWORD dwCount, DWORD dwSize )
73{
Huw D M Davies90d089b1999-12-12 19:40:01 +000074 FIXME("(%04x, %ld, %ld, %ld) stub!\n", hDevice, dwPartitionMethod, dwCount,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000075 dwSize);
76
77 SetLastError( ERROR_NOT_SUPPORTED );
78
79 return FALSE;
80}
81
82
83/************************************************************************
84 * EraseTape (KERNEL32.212)
85 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +000086DWORD WINAPI EraseTape( HANDLE hDevice, DWORD dwEraseType, BOOL bImmediate )
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000087{
Huw D M Davies90d089b1999-12-12 19:40:01 +000088 FIXME("(%04x, %ld, %d) stub!\n", hDevice, dwEraseType, bImmediate);
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +000089
90 SetLastError( ERROR_NOT_SUPPORTED );
91
92 return FALSE;
93}
94
95
96/************************************************************************
97 * GetTapeParameters (KERNEL32.409)
98 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +000099DWORD WINAPI GetTapeParameters( HANDLE hDevice, DWORD dwOperation,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000100 LPDWORD lpdwSize, LPVOID lpTapeInformation )
101{
Huw D M Davies90d089b1999-12-12 19:40:01 +0000102 FIXME("(%04x, %ld, %p, %p) stub!\n", hDevice, dwOperation, lpdwSize,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000103 lpTapeInformation);
104
105 SetLastError( ERROR_NOT_SUPPORTED );
106
107 return FALSE;
108}
109
110
111/************************************************************************
112 * GetTapePosition (KERNEL32.410)
113 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +0000114DWORD WINAPI GetTapePosition( HANDLE hDevice, DWORD dwPositionType,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000115 LPDWORD lpdwPartition, LPDWORD lpdwOffsetLow,
116 LPDWORD lpdwOffsetHigh )
117{
Huw D M Davies90d089b1999-12-12 19:40:01 +0000118 FIXME("(%04x, %ld, %p, %p, %p) stub!\n", hDevice, dwPositionType,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000119 lpdwPartition, lpdwOffsetLow, lpdwOffsetHigh);
120
121 SetLastError( ERROR_NOT_SUPPORTED );
122
123 return FALSE;
124}
125
126
127/************************************************************************
128 * GetTapeStatus (KERNEL32.411)
129 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +0000130DWORD WINAPI GetTapeStatus( HANDLE hDevice )
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000131{
132 FIXME("(%04x) stub!\n", hDevice);
133
134 SetLastError( ERROR_NOT_SUPPORTED );
135
136 return FALSE;
137}
138
139
140/************************************************************************
141 * PrepareTape (KERNEL32.554)
142 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +0000143DWORD WINAPI PrepareTape( HANDLE hDevice, DWORD dwOperation, BOOL bImmediate )
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000144{
Huw D M Davies90d089b1999-12-12 19:40:01 +0000145 FIXME("(%04x, %ld, %d) stub!\n", hDevice, dwOperation, bImmediate);
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000146
147 SetLastError( ERROR_NOT_SUPPORTED );
148
149 return FALSE;
150}
151
152
153/************************************************************************
154 * SetTapeParameters (KERNEL32.667)
155 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +0000156DWORD WINAPI SetTapeParameters( HANDLE hDevice, DWORD dwOperation,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000157 LPVOID lpTapeInformation )
158{
Huw D M Davies90d089b1999-12-12 19:40:01 +0000159 FIXME("(%04x, %ld, %p) stub!\n", hDevice, dwOperation, lpTapeInformation);
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000160
161 SetLastError( ERROR_NOT_SUPPORTED );
162
163 return FALSE;
164}
165
166
167/************************************************************************
168 * SetTapePosition (KERNEL32.668)
169 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +0000170DWORD WINAPI SetTapePosition( HANDLE hDevice, DWORD dwPositionMethod, DWORD
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000171 dwPartition, DWORD dwOffsetLow, DWORD dwOffsetHigh,
172 BOOL bImmediate )
173{
Huw D M Davies90d089b1999-12-12 19:40:01 +0000174 FIXME("(%04x, %ld, %ld, %ld, %ld, %d) stub!\n", hDevice, dwPositionMethod,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000175 dwPartition, dwOffsetLow, dwOffsetHigh, bImmediate);
176
177 SetLastError( ERROR_NOT_SUPPORTED );
178
179 return FALSE;
180}
181
182
183/************************************************************************
184 * WriteTapemark (KERNEL32.751)
185 */
Alexandre Julliard05d006b1999-12-11 23:04:05 +0000186DWORD WINAPI WriteTapemark( HANDLE hDevice, DWORD dwTapemarkType, DWORD
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000187 dwTapemarkCount, BOOL bImmediate )
188{
Huw D M Davies90d089b1999-12-12 19:40:01 +0000189 FIXME("(%04x, %ld, %ld, %d) stub!\n", hDevice, dwTapemarkType,
Alexandre Julliard7b7e2d41999-12-10 03:46:20 +0000190 dwTapemarkCount, bImmediate);
191
192 SetLastError( ERROR_NOT_SUPPORTED );
193
194 return FALSE;
Huw D M Davies90d089b1999-12-12 19:40:01 +0000195}