KFilePath.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:2k
- //---------------------------------------------------------------------------
- // Sword3 Engine (c) 1999-2000 by Kingsoft
- //
- // File: KFilePath.h
- // Date: 2000.08.08
- // Code: WangWei(Daphnis)
- // Desc: Header File
- //---------------------------------------------------------------------------
- #ifndef KFilePath_H
- #define KFilePath_H
- //---------------------------------------------------------------------------
- #ifndef MAXPATH
- #define MAXPATH 260
- #define MAXDIR 256
- #define MAXFILE 256
- #define MAXEXT 256
- #define MAXDRIVE 3
- #endif
- //---------------------------------------------------------------------------
- ENGINE_API void g_SetRootPath(LPSTR lpPathName = NULL);
- ENGINE_API void g_GetRootPath(LPSTR lpPathName);
- ENGINE_API void g_SetFilePath(LPSTR lpPathName);
- ENGINE_API void g_GetFilePath(LPSTR lpPathName);
- ENGINE_API void g_GetFullPath(LPSTR lpPathName, LPSTR lpFileName);
- ENGINE_API void g_GetHalfPath(LPSTR lpPathName, LPSTR lpFileName);
- ENGINE_API void g_GetPackPath(LPSTR lpPathName, LPSTR lpFileName);
- ENGINE_API void g_GetDiskPath(LPSTR lpPathName, LPSTR lpFileName);
- ENGINE_API void g_CreatePath(LPSTR lpPathName);
- // 一个路径和一个文件名,合并到lpGet中形成一个完整的路径文件名
- ENGINE_API void g_UnitePathAndName(char *lpPath, char *lpFile, char *lpGet);
- //---------------------------------------------------------------------------
- ENGINE_API BOOL g_FileExists(LPSTR lpPathName);
- ENGINE_API DWORD g_FileName2Id(LPSTR lpFileName);
- ENGINE_API void g_ChangeFileExt(LPSTR lpFileName, LPSTR lpNewExt);
- ENGINE_API void g_ExtractFileName(LPSTR lpFileName, LPSTR lpFilePath);
- ENGINE_API void g_ExtractFilePath(LPSTR lpPathName, LPSTR lpFilePath);
- //---------------------------------------------------------------------------
- #endif