BOOL IsFileExist1( LPSTR lpszFilename ) { HANDLE hFile = CreateFile( lpszFilename, 0, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL ); if ( hFile != INVALID_HANDLE_VALUE ) { CloseHandle(hFile); return TRUE; } return FALSE; } BOOL IsFileExist2( LPSTR lpszFilename ) { WIN32_FIND_DATA wfd; HANDLE hFind = FindFirstFile( lpszFilename, &wfd ); if ( hFind == INVALID_HANDLE_VALUE ) re..