UDF_API.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:3k
- /****************************************************************************************
- * Copyright (c) 2002 ZORAN Corporation, All Rights Reserved
- * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
- *
- * File: $Workfile: UDF_API.h $
- *
- * Description:
- * ============
- *
- *
- * Log:
- * ====
- * $Revision: 2 $
- * Last Modified by $Author: Leslie $ at $Modtime: 03-01-06 17:15 $
- ****************************************************************************************
- * Updates:
- ****************************************************************************************
- * $Log: /SourceCode/I64_Common/I64_Reference/Playcore/FileSys/UDF/UDF_API.h $
- *
- * 2 03-01-10 12:20 Leslie
- * Add builtin unicode support
- *
- * 3 9/05/02 16:16 Nirm
- * - Expanded UDF_getDVDFileInfo() functionality, to increase efficiency.
- *
- * 2 23/04/02 9:30 Nirm
- * - Added dependency in "Config.h".
- *
- * 1 30/01/02 18:12 Nirm
- ****************************************************************************************/
- /////////////////////////////////////////////////////////////////////////////
- // UDF_API.h - Abstract Programming Interface for a UDF-2.00 File-System
- //
- // Author: Nir Milstein
- #include "Config.h" // Global Configuration - do not remove!
- #ifndef __UDF_API_H_
- #define __UDF_API_H_
- #include "IncludeSysDefs.h"
- #include "PlaycoreFileSysFileSystem.h"
- /////////////////////////////////////////////////////////////////////////////
- // Detection
- BOOL UDF_isResident(DWORD dwCandidateLBN, UINT16 *o_pUDFRevision);
- /////////////////////////////////////////////////////////////////////////////
- // Construction / Destruction
- void UDF_construct(DWORD dwSessionStartLBN, UINT16 uRevision);
- void UDF_destruct(void);
- /////////////////////////////////////////////////////////////////////////////
- // Initialization
- BOOL UDF_initialize(BOOL bLongFilenameSupport);
- /////////////////////////////////////////////////////////////////////////////
- // Navigation
- BOOL UDF_goToRootDir(void);
- BOOL UDF_changeDir(LPCWSTR i_pszDestDirName);
- BOOL UDF_goUp(void);
- void UDF_storeWorkingDirectory(void);
- void UDF_recallWorkingDirectory(void);
- /////////////////////////////////////////////////////////////////////////////
- // Queries
- void UDF_getVolumeName(LPCWSTR volumeName);
- BOOL UDF_fileExists(LPCWSTR i_pszFilename);
- BOOL UDF_fileLocation(LPCWSTR i_pszFilename, DWORD *o_pFileLocation);
- BOOL UDF_getDVDFileInfo(LPCWSTR i_pszFilename, enDVD_FileInfoType eType,
- DVDFileInfo *o_pFileInfo, FindData *o_pFindData);
- UINT16 UDF_findFirstFile(LPCWSTR i_pszPattern, FindData *o_pFindData);
- BOOL UDF_findNextFile(UINT16 hFindFile, FindData *o_pFindData);
- BOOL UDF_findClose(UINT16 hFileFind);
- #ifdef DVD_VR_SUPPORT
- #define MAX_PLAY_EXTENT_IN_FE 1
- #define ALLOCATION_EXTENT_INTERPRETATION 0xc0000000UL
- BOOL UDF_getDVDVRFileExtent(LPCWSTR i_pszFilename, DWORD* o_pFileExtentList);
- BOOL UDF_ReadFile(DWORD pFileHandle, DWORD dwOffset, DWORD dwSize, BYTE* o_pBuffer);
- BOOL UDF_PlayExtents(DWORD pFileHandle, DWORD dwOffset, DWORD dwSize);
- BOOL UDF_TransferExtentToFE();
- #endif
- #endif //__UDF_API_H_