-
Notifications
You must be signed in to change notification settings - Fork 29
/
sfvfcts.cpp
520 lines (432 loc) · 17.8 KB
/
sfvfcts.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
/***************************************************************************
Copyright 2004 Sebastian Ewert
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
***************************************************************************/
#include "resource.h"
#include "globals.h"
#include <shlobj.h>
BOOL InterpretSFVLine(TCHAR *szLine, UINT uiStringLength, lFILEINFO *fileList, UINT uiHashMode);
BOOL InterpretMDSHALine(TCHAR *szLine, UINT uiStringLength, UINT uiMode, lFILEINFO *fileList);
BOOL InterpretBSDLine(TCHAR *szLine, UINT uiStringLength, lFILEINFO *fileList);
/*****************************************************************************
DWORD WriteSfvHeader(CONST HANDLE hFile)
hFile : (IN) handle to an open file
Return Value:
- returns NOERROR or GetLastError()
*****************************************************************************/
DWORD WriteSfvHeader(CONST HANDLE hFile)
{
TCHAR szLine[MAX_LINE_LENGTH];
#ifdef UNICODE
CHAR szLineAnsi[MAX_LINE_LENGTH];
#endif
DWORD dwNumberOfBytesWritten;
size_t stStringLength;
VOID *szOutLine=szLine;
StringCbPrintf(szLine, MAX_LINE_LENGTH, TEXT("; Generated by WIN-SFV32 v1 (compatible; RapidCRC http://rapidcrc.sourceforge.net unicode-file mod by OV2)%s;%s"),
g_program_options.bCreateUnixStyle ? TEXT("\n") : TEXT("\r\n"), g_program_options.bCreateUnixStyle ? TEXT("\n") : TEXT("\r\n"));
StringCbLength(szLine, MAX_LINE_LENGTH, & stStringLength);
#ifdef UNICODE
if(!g_program_options.bCreateUnicodeFiles || g_program_options.iUnicodeSaveType == UTF_8 || g_program_options.iUnicodeSaveType==UTF_8_BOM) {
if(!WideCharToMultiByte(CP_ACP, 0, szLine, -1, szLineAnsi, MAX_UTF8_PATH, NULL, NULL) )
return GetLastError();
StringCbLengthA(szLineAnsi, MAX_LINE_LENGTH, & stStringLength);
szOutLine=szLineAnsi;
}
#endif
if(!WriteFile(hFile, szOutLine, (DWORD)stStringLength, & dwNumberOfBytesWritten, NULL) )
return GetLastError();
return NOERROR;
}
/*****************************************************************************
DWORD WriteHashLine(CONST HANDLE hFile, CONST TCHAR szFilename[MAX_PATH_EX], CONST TCHAR szHashResult[RESULT_AS_STRING_MAX_LENGTH], UINT uiMode)
hFile : (IN) handle to an open file
szFilename : (IN) string of the filename that we want to write into the hash file
szHashResult : (IN) string of the hash result
uiMode : (IN) type of hash file
Return Value:
- returns NOERROR or GetLastError()
*****************************************************************************/
DWORD WriteHashLine(CONST HANDLE hFile, CONST TCHAR szFilename[MAX_PATH_EX], CONST TCHAR szHashResult[RESULT_AS_STRING_MAX_LENGTH], UINT uiMode)
{
TCHAR szFilenameTemp[MAX_PATH_EX];
TCHAR szLine[MAX_LINE_LENGTH];
#ifdef UNICODE
CHAR szLineAnsi[MAX_LINE_LENGTH];
#endif
DWORD dwNumberOfBytesWritten;
size_t stStringLength;
VOID *szOutLine=szLine;
if(!RegularFromLongFilename(szFilenameTemp, szFilename)) {
if(g_program_options.bCreateUnixStyle)
ReplaceChar(szFilenameTemp, MAX_PATH_EX, TEXT('\\'), TEXT('/'));
}
if(uiMode == MODE_SFV || uiMode == MODE_CRC32C)
StringCchPrintf(szLine, MAX_LINE_LENGTH, TEXT("%s %s%s"), szFilenameTemp,
szHashResult, g_program_options.bCreateUnixStyle ? TEXT("\n") : TEXT("\r\n"));
else
{
const TCHAR *psz_format = uiMode == MODE_BLAKE3 ? TEXT("%s %s%s") : TEXT("%s *%s%s");
StringCchPrintf(szLine, MAX_LINE_LENGTH, psz_format, szHashResult,
szFilenameTemp, g_program_options.bCreateUnixStyle ? TEXT("\n") : TEXT("\r\n"));
}
StringCbLength(szLine, MAX_LINE_LENGTH, & stStringLength);
#ifdef UNICODE
// we only need the conversion if we don't write unicode data
if(!g_program_options.bCreateUnicodeFiles) {
if(!WideCharToMultiByte(CP_ACP, 0, szLine, -1, szLineAnsi, MAX_UTF8_PATH, NULL, NULL) )
return GetLastError();
StringCbLengthA(szLineAnsi, MAX_LINE_LENGTH, & stStringLength);
szOutLine=szLineAnsi;
} else if(g_program_options.iUnicodeSaveType == UTF_8 || g_program_options.iUnicodeSaveType==UTF_8_BOM) {
if(!WideCharToMultiByte(CP_UTF8, 0, szLine, -1, szLineAnsi, MAX_UTF8_PATH, NULL, NULL) )
return GetLastError();
StringCbLengthA(szLineAnsi, MAX_LINE_LENGTH, & stStringLength);
szOutLine=szLineAnsi;
}
#endif
if(!WriteFile(hFile, szOutLine, (DWORD)stStringLength, & dwNumberOfBytesWritten, NULL) )
return GetLastError();
return NOERROR;
}
/*****************************************************************************
BOOL EnterHashMode(lFILEINFO *fileList, UINT uiMode)
fileList : (IN/OUT) pointer to the job structure whose files are to be processed
uiMode : (IN) type of hash file
Return Value:
returns TRUE if everything went fine. FALSE went something went wrong.
Notes:
- takes fileList->fInfos.front().szFilename as .sha1 file and creates new list entries
based on that
*****************************************************************************/
BOOL EnterHashMode(lFILEINFO *fileList, UINT uiMode)
{
#ifdef UNICODE
CHAR szLineAnsi[MAX_LINE_LENGTH];
#endif
TCHAR szLine[MAX_LINE_LENGTH];
TCHAR szFilenameHash[MAX_PATH_EX];
HANDLE hFile;
UINT uiStringLength;
BOOL bErrorOccured, bEndOfFile;
BOOL fileIsUTF16, bWasAnyAbsolute = FALSE;
UINT codePage;
UNICODE_TYPE detectedBOM;
FILEINFO fileinfoTmp = {0};
// save hash filename and path
// => g_szBasePath in is the path part of the complete filename of the .xyz file
StringCchCopy(szFilenameHash, MAX_PATH_EX, fileList->fInfos.front().szFilename);
StringCchCopy(fileList->g_szBasePath, MAX_PATH_EX, szFilenameHash);
ReduceToPath(fileList->g_szBasePath);
if(fileList->uiCmdOpts==CMD_REPARENT) {
TCHAR szReparentPath[MAX_PATH_EX];
LPITEMIDLIST iidl=NULL;
BROWSEINFO bInfo = {0};
bInfo.lpszTitle = TEXT("Select folder for reparenting");
bInfo.ulFlags = BIF_RETURNONLYFSDIRS | BIF_USENEWUI;
bInfo.lpfn = BrowseFolderSetSelProc;
bInfo.lParam = (LPARAM)(fileList->g_szBasePath + 4);
if(iidl=SHBrowseForFolder(&bInfo)) {
SHGetPathFromIDList(iidl,szReparentPath);
CoTaskMemFree(iidl);
StringCchPrintf(fileList->g_szBasePath, MAX_PATH_EX, TEXT("\\\\?\\%s\\"),szReparentPath);
if(fileList->g_szBasePath[lstrlen(fileList->g_szBasePath) - 2] == TEXT('\\'))
fileList->g_szBasePath[lstrlen(fileList->g_szBasePath) - 1] = TEXT('\0');
}
}
// set mode
fileList->uiRapidCrcMode = uiMode;
// free everything we did so far
fileList->fInfos.clear();
hFile = CreateFile(szFilenameHash, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_FLAG_SEQUENTIAL_SCAN , 0);
if(hFile == INVALID_HANDLE_VALUE){
MessageBox(NULL, TEXT("Hash file could not be read"), TEXT("Error"), MB_ICONERROR | MB_OK);
return FALSE;
}
// check for the BOM and read accordingly
detectedBOM = CheckForBOM(hFile);
fileIsUTF16 = (detectedBOM == UTF_16LE);
if(!fileIsUTF16) {
if(detectedBOM==UTF_8_BOM)
codePage = CP_UTF8;
else if(g_program_options.bUseDefaultCP)
codePage = g_program_options.uiDefaultCP;
else
codePage = DetermineFileCP(hFile);
}
GetNextLine(hFile, szLine, MAX_LINE_LENGTH, & uiStringLength, &bErrorOccured, &bEndOfFile, fileIsUTF16);
if(bErrorOccured){
MessageBox(NULL, TEXT("Hash file could not be read"), TEXT("Error"), MB_ICONERROR | MB_OK);
return FALSE;
}
while( !(bEndOfFile && uiStringLength == 0) ) {
#ifdef UNICODE
// if we already read unicode characters we don't need the conversion here
if(!fileIsUTF16) {
AnsiFromUnicode(szLineAnsi,MAX_LINE_LENGTH,szLine);
MultiByteToWideChar(codePage, // ANSI Codepage
0, // we use no flags; ANSI isn't a 'real' MBCC
szLineAnsi, // the ANSI String
-1, // ANSI String is 0 terminated
szLine, // the UNICODE destination string
MAX_LINE_LENGTH ); // size of the UNICODE String in chars
uiStringLength = lstrlen(szLine);
}
#endif
BOOL bWasAbsolute = FALSE;
switch(uiMode) {
case MODE_SFV:
case MODE_CRC32C:
bWasAbsolute = InterpretSFVLine(szLine, uiStringLength, fileList, uiMode);
break;
case MODE_MD5:
case MODE_SHA1:
case MODE_SHA256:
case MODE_SHA512:
case MODE_SHA3_224:
case MODE_SHA3_256:
case MODE_SHA3_512:
case MODE_BLAKE2SP:
case MODE_BLAKE3:
bWasAbsolute = InterpretMDSHALine(szLine, uiStringLength, uiMode, fileList);
break;
case MODE_BSD:
bWasAbsolute = InterpretBSDLine(szLine, uiStringLength, fileList);
break;
}
if(bWasAbsolute)
bWasAnyAbsolute = TRUE;
GetNextLine(hFile, szLine, MAX_LINE_LENGTH, & uiStringLength, &bErrorOccured, &bEndOfFile, fileIsUTF16);
if(bErrorOccured){
MessageBox(NULL, TEXT("Hash file could not be read"), TEXT("Error"), MB_ICONERROR | MB_OK);
fileList->fInfos.clear();
return FALSE;
}
}
CloseHandle(hFile);
// should no longer be necessary to empty the base path if encountering absolute paths
/*if(bWasAnyAbsolute)
fileList->g_szBasePath[0] = TEXT('\0');*/
return TRUE;
}
BOOL InterpretSFVLine(TCHAR *szLine, UINT uiStringLength, lFILEINFO *fileList, UINT uiHashMode)
{
BOOL bCrcOK, bWasAbsolute = FALSE;
FILEINFO fileinfoTmp = {0};
fileinfoTmp.parentList=fileList;
if(uiStringLength < 9)
return FALSE;
//delete trailing spaces
while( (szLine[uiStringLength - 1] == TEXT(' ')) && (uiStringLength > 8) ){
szLine[uiStringLength - 1] = NULL;
uiStringLength--;
}
if( (szLine[0] != TEXT(';')) && (szLine[0] != TEXT('\0')) ){
bCrcOK = TRUE;
for(int i=1; i <= 8; ++i)
if(! IsLegalHexSymbol(szLine[uiStringLength-i]))
bCrcOK = FALSE;
if(bCrcOK){
fileinfoTmp.hashInfo[uiHashMode].dwFound = HASH_FOUND_FILE;
fileinfoTmp.hashInfo[uiHashMode].f.dwCrc32Found = HexToDword(szLine + uiStringLength - 8, 8);
fileinfoTmp.dwError = NOERROR;
}
else
fileinfoTmp.dwError = APPL_ERROR_ILLEGAL_CRC;
uiStringLength -= 8;
szLine[uiStringLength] = NULL; // keep only the filename
//delete trailing spaces
while( (szLine[uiStringLength - 1] == TEXT(' ')) && (uiStringLength > 0) ){
szLine[uiStringLength - 1] = NULL;
uiStringLength--;
}
ReplaceChar(szLine, MAX_PATH_EX, TEXT('/'), TEXT('\\'));
bWasAbsolute = !ConstructCompleteFilename(fileinfoTmp.szFilename, fileList->g_szBasePath, szLine);
fileList->fInfos.push_back(fileinfoTmp);
}
return bWasAbsolute;
}
BOOL InterpretMDSHALine(TCHAR *szLine, UINT uiStringLength, UINT uiMode, lFILEINFO *fileList)
{
UINT uiHashLengthChars = g_hash_lengths[uiMode] * 2;
UINT uiIndex;
BOOL bHashOK, bWasAbsolute = FALSE;
FILEINFO fileinfoTmp = {0};
fileinfoTmp.parentList=fileList;
if(uiStringLength < uiHashLengthChars)
return FALSE;
if( IsLegalHexSymbol(szLine[0]) ){
bHashOK = TRUE;
for(uiIndex=0; uiIndex < uiHashLengthChars; ++uiIndex)
if(! IsLegalHexSymbol(szLine[uiIndex]))
bHashOK = FALSE;
if(bHashOK){
fileinfoTmp.hashInfo[uiMode].dwFound = HASH_FOUND_FILE;
for(uiIndex=0; uiIndex < g_hash_lengths[uiMode]; ++uiIndex)
*((BYTE *)&fileinfoTmp.hashInfo[uiMode].f + uiIndex) = (BYTE)HexToDword(szLine + uiIndex * 2, 2);
fileinfoTmp.dwError = NOERROR;
}
else
fileinfoTmp.dwError = APPL_ERROR_ILLEGAL_CRC;
//delete trailing spaces
while(szLine[uiStringLength - 1] == TEXT(' ')){
szLine[uiStringLength - 1] = NULL;
uiStringLength--;
}
//find leading spaces and '*'
uiIndex = uiHashLengthChars; // szLine[uiHashLengthChars] is the first char after the hash
while( (uiIndex < uiStringLength) && ((szLine[uiIndex] == TEXT(' ')) || (szLine[uiIndex] == TEXT('*'))) )
uiIndex++;
ReplaceChar(szLine, MAX_PATH_EX, TEXT('/'), TEXT('\\'));
bWasAbsolute = !ConstructCompleteFilename(fileinfoTmp.szFilename, fileList->g_szBasePath, szLine + uiIndex);
fileList->fInfos.push_back(fileinfoTmp);
}
return bWasAbsolute;
}
BOOL InterpretBSDLine(TCHAR *szLine, UINT uiStringLength, lFILEINFO *fileList)
{
BOOL bHashOK, bWasAbsolute = FALSE;
int iHashIndex = -1;
FILEINFO fileinfoTmp = {0};
fileinfoTmp.parentList=fileList;
if(uiStringLength < 5)
return FALSE;
for(int i=0; i < NUM_HASH_TYPES; i++) {
if(!_tcsncmp(szLine, g_hash_names[i], lstrlen(g_hash_names[i]))) {
iHashIndex = i;
break;
}
}
if(iHashIndex<0)
return FALSE;
TCHAR *szFirstBrace = _tcschr(szLine, TEXT('('));
TCHAR *szLastBrace = _tcsrchr(szLine, TEXT(')'));
if(!szFirstBrace || !szLastBrace || szFirstBrace > szLastBrace)
return FALSE;
*szLastBrace = TEXT('\0');
szLastBrace++;
ReplaceChar(szFirstBrace + 1, MAX_PATH_EX, TEXT('/'), TEXT('\\'));
bWasAbsolute = !ConstructCompleteFilename(fileinfoTmp.szFilename, fileList->g_szBasePath, szFirstBrace + 1);
while(!IsLegalHexSymbol(*szLastBrace) && *szLastBrace != TEXT('\0') )
szLastBrace++;
UINT uiHashLengthChars = g_hash_lengths[iHashIndex] * 2;
if(lstrlen(szLastBrace) < (int)uiHashLengthChars)
return FALSE;
FILEINFO *fileInfo = &fileinfoTmp;
bool alreadyInList = false;
for(list<FILEINFO>::reverse_iterator it = fileList->fInfos.rbegin(); it != fileList->fInfos.rend(); it++) {
if(it->szFilename == fileinfoTmp.szFilename) {
fileInfo = &(*it);
alreadyInList = true;
break;
}
}
if( IsLegalHexSymbol(*szLastBrace) ){
bHashOK = TRUE;
for(UINT uiIndex=0; uiIndex < uiHashLengthChars; ++uiIndex)
if(! IsLegalHexSymbol(szLastBrace[uiIndex]))
bHashOK = FALSE;
if(bHashOK){
fileInfo->hashInfo[iHashIndex].dwFound = HASH_FOUND_FILE;
if(iHashIndex == HASH_TYPE_CRC32) {
fileInfo->hashInfo[HASH_TYPE_CRC32].f.dwCrc32Found = HexToDword(szLastBrace, 8);
} else {
for(UINT uiIndex=0; uiIndex < g_hash_lengths[iHashIndex]; ++uiIndex)
*((BYTE *)&fileInfo->hashInfo[iHashIndex].f + uiIndex) = (BYTE)HexToDword(szLastBrace + uiIndex * 2, 2);
}
fileInfo->dwError = NOERROR;
}
else
fileInfo->dwError = APPL_ERROR_ILLEGAL_CRC;
if(!alreadyInList)
fileList->fInfos.push_back(fileinfoTmp);
fileList->bDoCalculate[iHashIndex] = true;
}
return bWasAbsolute;
}
/*****************************************************************************
DWORD WriteSfvHeader(CONST HANDLE hFile)
hFile : (IN) handle to an open file
Return Value:
- returns NOERROR or GetLastError()
*****************************************************************************/
DWORD WriteFileComment(CONST HANDLE hFile, CONST FILEINFO *pFileInfo, UINT startChar)
{
TCHAR szLine[MAX_LINE_LENGTH];
#ifdef UNICODE
CHAR szLineAnsi[MAX_LINE_LENGTH];
#endif
DWORD dwNumberOfBytesWritten;
size_t stStringLength;
VOID *szOutLine=szLine;
SYSTEMTIME st;
FILETIME ft;
TCHAR szTimeStamp[50];
TIME_ZONE_INFORMATION tz;
DWORD dst = GetTimeZoneInformation(&tz);
FileTimeToLocalFileTime( &pFileInfo->ftModificationTime, &ft );
FileTimeToSystemTime( &ft, &st );
int chars = GetTimeFormat( LOCALE_USER_DEFAULT, 0, &st, TEXT("HH':'mm'.'ss"), szTimeStamp, 50 );
GetDateFormat( LOCALE_USER_DEFAULT, 0, &st, TEXT("' 'yyyy'-'MM'-'dd"), szTimeStamp + chars - 1, 50 - chars );
StringCbPrintf(szLine, MAX_LINE_LENGTH, TEXT(";%13I64d %s (UTC%+d) %s%s"), pFileInfo->qwFilesize, szTimeStamp, -tz.Bias / 60,
pFileInfo->szFilename.GetString() + startChar, g_program_options.bCreateUnixStyle ? TEXT("\n") : TEXT("\r\n"));
StringCbLength(szLine, MAX_LINE_LENGTH, & stStringLength);
#ifdef UNICODE
if(!g_program_options.bCreateUnicodeFiles) {
if(!WideCharToMultiByte(CP_ACP, 0, szLine, -1, szLineAnsi, MAX_UTF8_PATH, NULL, NULL) )
return GetLastError();
StringCbLengthA(szLineAnsi, MAX_LINE_LENGTH, & stStringLength);
szOutLine=szLineAnsi;
} else if(g_program_options.iUnicodeSaveType == UTF_8 || g_program_options.iUnicodeSaveType==UTF_8_BOM) {
if(!WideCharToMultiByte(CP_UTF8, 0, szLine, -1, szLineAnsi, MAX_UTF8_PATH, NULL, NULL) )
return GetLastError();
StringCbLengthA(szLineAnsi, MAX_LINE_LENGTH, & stStringLength);
szOutLine=szLineAnsi;
}
#endif
if(!WriteFile(hFile, szOutLine, (DWORD)stStringLength, & dwNumberOfBytesWritten, NULL) )
return GetLastError();
return NOERROR;
}
#ifdef UNICODE
/*****************************************************************************
BOOL WriteCurrentBOM(CONST HANDLE hFile)
hFile : (IN) handle of the file to write the currently set BOM to
Return Value:
returns TRUE if everything went fine. FALSE went something went wrong.
*****************************************************************************/
BOOL WriteCurrentBOM(CONST HANDLE hFile) {
DWORD bBOM;
DWORD bomByteCount;
DWORD NumberOfBytesWritten;
if(g_program_options.bCreateUnicodeFiles) {
switch(g_program_options.iUnicodeSaveType) {
case UTF_16LE:
bBOM = 0xFEFF;
bomByteCount = 2;
break;
case UTF_8_BOM:
bBOM = 0xBFBBEF;
bomByteCount = 3;
break;
default:
bomByteCount = 0;
}
if(!WriteFile(hFile, &bBOM, bomByteCount, &NumberOfBytesWritten, NULL)) {
CloseHandle(hFile);
return FALSE;
}
}
return TRUE;
}
#endif