home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2004 June / VPR0406.ISO / OLS / BGA32037 / bga32037.lzh / SDK / Bga32Api.h < prev    next >
C/C++ Source or Header  |  2002-06-04  |  17KB  |  458 lines

  1. /*===================================================================
  2.  
  3.     ZLIB -- general purpose compression library
  4.         zlib 1.1.4 is a general purpose data compression library.
  5.         (C) 1995-2002 Jean-loup Gailly and Mark Adler
  6.  
  7.     LIBBZIP2 -- a program and library for lossless,
  8.                 block-sorting data compression.
  9.         bzip2-1.0.2 is distributed under a BSD-style license.
  10.         Copyright (C) 1996-2002 Julian R Seward.  All rights reserved.
  11.  
  12.     BGA32.DLL -- Archiver by ZLIB(GZIP) / LIBBZIP2(BZIP2)
  13.         Windows' DLL Version
  14.         Copyright(c) 1999-2002 by Toshinobu Kimura. All rights reserved.
  15.  
  16. =====================================================================*/
  17. #if !defined(__BGA32API_H__)
  18. #define __BGA32API_H__
  19.  
  20. #define BGA_DLL_VERSION      37         /* version 0.37 */
  21.  
  22. #if !defined(FNAME_MAX32)
  23. #define FNAME_MAX32        512
  24. #define FNAME_MAX    FNAME_MAX32
  25. #else
  26. #if !defined(FNAME_MAX)
  27. #define FNAME_MAX    128
  28. #endif
  29. #endif
  30.  
  31. #if !defined(COMMENT_MAX)
  32. #define COMMENT_MAX 2048
  33. #endif
  34.  
  35. #ifndef ARC_DECSTRACT
  36. #define ARC_DECSTRACT
  37.  
  38. #if defined(__BORLANDC__)
  39. #pragma option -a-
  40. #else
  41. #pragma pack(1)
  42. #endif
  43.  
  44. typedef HGLOBAL HARCHIVE ;
  45.  
  46. typedef HGLOBAL HARC ;
  47.  
  48. typedef struct {
  49.     DWORD dwOriginalSize;                /* ファイルのサイズ */
  50.     DWORD dwCompressedSize;                /* 圧縮後のサイズ */
  51.     DWORD dwCRC;                        /* 格納ファイルのチェックサム */
  52.     UINT  uFlag;                        /* 解凍やテストの処理結果 */
  53.     UINT  uOSType;                        /* ファイル作成時のOS */
  54.     WORD  wRatio;                        /* 圧縮率(パーミル) */
  55.     WORD  wDate;                        /* 格納ファイルの日付 */
  56.     WORD  wTime;                        /* 格納ファイルの時刻 */
  57.     char  szFileName[FNAME_MAX32 + 1];    /* アーカイブファイル名 */
  58.     char  dummy1[3];
  59.     char  szAttribute[8];                /* 格納ファイルの属性 */
  60.     char  szMode[8];                    /* 格納ファイルの格納モード */
  61. } INDIVIDUALINFO, FAR *LPINDIVIDUALINFO;
  62.  
  63. typedef struct {
  64.     DWORD dwFileSize;                            /* 格納ファイルのサイズ */
  65.     DWORD dwWriteSize;                            /* 解凍して書き込んだサイズ */
  66.     char  szSourceFileName[FNAME_MAX32 + 1];    /* 処理を行う格納ファイル名 */
  67.     char  dummy1[3];
  68.     char  szDestFileName[FNAME_MAX32 + 1];        /* 実際に書き込まれるパス名 */
  69.     char  dummy[3];
  70. } EXTRACTINGINFO, FAR *LPEXTRACTINGINFO;
  71.  
  72. typedef struct {
  73.     EXTRACTINGINFO exinfo;
  74.     DWORD dwCompressedSize; /* 圧縮後のサイズ。*/
  75.     DWORD dwCRC;            /* 格納ファイルのチェックサム/CRC */
  76.     UINT  uOSType;            /* このファイルの作成に使われたOS */
  77.     WORD  wRatio;            /* 圧縮率(パーミル) */
  78.     WORD  wDate;            /* 格納ファイルの日付。*/
  79.     WORD  wTime;            /* 格納ファイルの時刻。*/
  80.     char  szAttribute[8];    /* 格納ファイルの属性。*/
  81.     char  szMode[8];        /* 格納ファイルの格納モード。*/
  82. } EXTRACTINGINFOEX, *LPEXTRACTINGINFOEX;
  83.  
  84. typedef struct {
  85.     DWORD            dwStructSize;
  86.     UINT            uCommand;
  87.     DWORD            dwOriginalSize;
  88.     DWORD            dwCompressedSize;
  89.     DWORD            dwAttributes;
  90.     DWORD            dwCRC;
  91.     UINT            uOSType;
  92.     WORD            wRatio;
  93.     FILETIME        ftCreateTime;
  94.     FILETIME        ftAccessTime;
  95.     FILETIME        ftWriteTime;
  96.     char            szFileName[FNAME_MAX32 + 1];
  97.     char            dummy1[3];
  98.     char            szAddFileName[FNAME_MAX32 + 1];
  99.     char            dummy2[3];
  100. }    UNLHA_ENUM_MEMBER_INFO, *LPUNLHA_ENUM_MEMBER_INFO;
  101.  
  102. typedef BOOL (CALLBACK *UNLHA_WND_ENUMMEMBPROC)(LPUNLHA_ENUM_MEMBER_INFO);
  103.  
  104. #if !defined(__BORLANDC__)
  105. #pragma pack()
  106. #else
  107. #pragma option -a.
  108. #endif
  109.  
  110. #endif /* ARC_DECSTRACT */
  111.  
  112. #if !defined(__BORLANDC__)
  113. #define _export
  114. #endif
  115.  
  116. #ifdef __cplusplus
  117. extern "C" {
  118. #endif
  119.  
  120. /* LHA.DLL Compatible API (LHA.DLL V1.1 と互換性を考慮した API 群です) */
  121. int WINAPI _export Bga( const HWND hWnd, LPCSTR pCmdLine,
  122.                         LPSTR pOutput, const DWORD dwSize );
  123. WORD WINAPI _export BgaGetVersion();
  124. BOOL WINAPI _export BgaGetRunning();
  125.  
  126. #if 0    /* 現在未実装です */
  127. BOOL WINAPI _export BgaGetBackGroundMode();
  128. BOOL WINAPI _export BgaSetBackGroundMode( const BOOL bBackGroundMode );
  129. BOOL WINAPI _export BgaGetCursorMode();
  130. BOOL WINAPI _export BgaSetCursorMode( const BOOL bCursorMode );
  131. WORD WINAPI _export BgaGetCursorInterval();
  132. BOOL WINAPI _export BgaSetCursorInterval( const WORD wInterval );
  133.  
  134. int WINAPI _export BgaCommandLine( HWND hWnd, HINSTANCE hInst,
  135.                                    LPCSTR szCmdLine, DWORD nCmdShow );
  136. #endif    /* 現在未実装です */
  137.  
  138. /*
  139. True Compatible API (『統合アーカイバAPI』独自の、互換性の高い API 群です)
  140. */
  141.  
  142. BOOL WINAPI _export BgaCheckArchive( LPCSTR pFileName, const int iMode );
  143. /**/
  144. #if !defined(CHECKARCHIVE_RAPID)
  145. #define CHECKARCHIVE_RAPID        0    /* 簡易型(高速) */
  146. #define CHECKARCHIVE_BASIC        1    /* 標準型(ヘッダーのみ) */
  147. #define CHECKARCHIVE_FULLCRC    2    /* 完全型(CRC等のチェックを含む) */
  148.  
  149. /* 以下のフラグは上記と組み合わせて使用。*/
  150. #define CHECKARCHIVE_RECOVERY    4    /* 破損ヘッダを読み飛ばして処理 */
  151. #define CHECKARCHIVE_SFX        8    /* SFX かどうかを返す */
  152. #define CHECKARCHIVE_ALL        16    /* ファイルの最後まで検索する */
  153. #endif
  154.  
  155. BOOL WINAPI _export BgaConfigDialog( const HWND hWnd, LPSTR pOption,
  156.                                      const int iMode );
  157. /**/
  158. #if !defined(UNPACK_CONFIG_MODE)
  159. #define UNPACK_CONFIG_MODE        1    /* 解凍(復元)系のコマンド */
  160. #define PACK_CONFIG_MODE        2    /* 圧縮(作成)系のコマンド */
  161. #endif
  162.  
  163. BOOL WINAPI _export BgaQueryFunctionList( const int iFunction );
  164. /**/
  165. #if !defined(ISARC_FUNCTION_START)
  166. #define ISARC_FUNCTION_START            0
  167. #define ISARC                            0    /* Unlha */
  168. #define ISARC_GET_VERSION                1    /* UnlhaGetVersion */
  169. #define ISARC_GET_CURSOR_INTERVAL        2    /* UnlhaGetCursorInterval */
  170. #define ISARC_SET_CURSOR_INTERVAL        3    /* UnlhaSetCursorInterval */
  171. #define ISARC_GET_BACK_GROUND_MODE        4    /* UnlhaGetBackGroundMode */
  172. #define ISARC_SET_BACK_GROUND_MODE        5    /* UnlhaSetBackGroundMode */
  173. #define ISARC_GET_CURSOR_MODE            6    /* UnlhaGetCursorMode */
  174. #define ISARC_SET_CURSOR_MODE            7    /* UnlhaSetCursorMode */
  175. #define ISARC_GET_RUNNING                8    /* UnlhaGetRunning */
  176.  
  177. #define ISARC_CHECK_ARCHIVE                16    /* UnlhaCheckArchive */
  178. #define ISARC_CONFIG_DIALOG                17    /* UnlhaConfigDialog */
  179. #define ISARC_GET_FILE_COUNT            18    /* UnlhaGetFileCount */
  180. #define ISARC_QUERY_FUNCTION_LIST        19    /* UnlhaQueryFunctionList */
  181. #define ISARC_HOUT                        20    /* (UnlhaHOut) */
  182. #define ISARC_STRUCTOUT                    21    /* (UnlhaStructOut) */
  183. #define ISARC_GET_ARC_FILE_INFO            22    /* UnlhaGetArcFileInfo */
  184.  
  185. #define ISARC_OPEN_ARCHIVE                23    /* UnlhaOpenArchive */
  186. #define ISARC_CLOSE_ARCHIVE                24    /* UnlhaCloseArchive */
  187. #define ISARC_FIND_FIRST                25    /* UnlhaFindFirst */
  188. #define ISARC_FIND_NEXT                    26    /* UnlhaFindNext */
  189. #define ISARC_EXTRACT                    27    /* (UnlhaExtract) */
  190. #define ISARC_ADD                        28    /* (UnlhaAdd) */
  191. #define ISARC_MOVE                        29    /* (UnlhaMove) */
  192. #define ISARC_DELETE                    30    /* (UnlhaDelete) */
  193. #define ISARC_SETOWNERWINDOW            31    /* UnlhaSetOwnerWindow */
  194. #define ISARC_CLEAROWNERWINDOW            32    /* UnlhaClearOwnerWindow */
  195. #define ISARC_SETOWNERWINDOWEX            33    /* UnlhaSetOwnerWindowEx */
  196. #define ISARC_KILLOWNERWINDOWEX            34    /* UnlhaKillOwnerWindowEx */
  197.  
  198. #define ISARC_GET_ARC_FILE_NAME            40    /* UnlhaGetArcFileName */
  199. #define ISARC_GET_ARC_FILE_SIZE            41    /* UnlhaGetArcFileSize */
  200. #define ISARC_GET_ARC_ORIGINAL_SIZE        42    /* UnlhaArcOriginalSize */
  201. #define ISARC_GET_ARC_COMPRESSED_SIZE    43    /* UnlhaGetArcCompressedSize */
  202. #define ISARC_GET_ARC_RATIO                44    /* UnlhaGetArcRatio */
  203. #define ISARC_GET_ARC_DATE                45    /* UnlhaGetArcDate */
  204. #define ISARC_GET_ARC_TIME                46    /* UnlhaGetArcTime */
  205. #define ISARC_GET_ARC_OS_TYPE            47    /* UnlhaGetArcOSType */
  206. #define ISARC_GET_ARC_IS_SFX_FILE        48    /* UnlhaGetArcIsSFXFile */
  207. #define ISARC_GET_ARC_WRITE_TIME_EX        49    /* UnlhaGetArcWriteTimeEx */
  208. #define ISARC_GET_ARC_CREATE_TIME_EX    50    /* UnlhaGetArcCreateTimeEx */
  209. #define ISARC_GET_ARC_ACCESS_TIME_EX    51    /* UnlhaGetArcAccessTimeEx */
  210. #define ISARC_GET_ARC_CREATE_TIME_EX2    52    /* UnlhaGetArcCreateTimeEx2 */
  211. #define ISARC_GET_ARC_WRITE_TIME_EX2    53    /* UnlhaGetArcWriteTimeEx2 */
  212. #define ISARC_GET_FILE_NAME                57    /* UnlhaGetFileName */
  213. #define ISARC_GET_ORIGINAL_SIZE            58    /* UnlhaGetOriginalSize */
  214. #define ISARC_GET_COMPRESSED_SIZE        59    /* UnlhaGetCompressedSize */
  215. #define ISARC_GET_RATIO                    60    /* UnlhaGetRatio */
  216. #define ISARC_GET_DATE                    61    /* UnlhaGetDate */
  217. #define ISARC_GET_TIME                    62    /* UnlhaGetTime */
  218. #define ISARC_GET_CRC                    63    /* UnlhaGetCRC */
  219. #define ISARC_GET_ATTRIBUTE                64    /* UnlhaGetAttribute */
  220. #define ISARC_GET_OS_TYPE                65    /* UnlhaGetOSType */
  221. #define ISARC_GET_METHOD                66    /* UnlhaGetMethod */
  222. #define ISARC_GET_WRITE_TIME            67    /* UnlhaGetWriteTime */
  223. #define ISARC_GET_CREATE_TIME            68    /* UnlhaGetCreateTime */
  224. #define ISARC_GET_ACCESS_TIME            69    /* UnlhaGetAccessTime */
  225. #define ISARC_GET_WRITE_TIME_EX            70    /* UnlhaGetWriteTimeEx */
  226. #define ISARC_GET_CREATE_TIME_EX        71    /* UnlhaGetCreateTimeEx */
  227. #define ISARC_GET_ACCESS_TIME_EX        72    /* UnlhaGetAccessTimeEx */
  228. #define ISARC_SET_ENUM_MEMBERS_PROC        80    /* UnlhaSetEnumMembersProc */
  229. #define ISARC_CLEAR_ENUM_MEMBERS_PROC    81    /* UnlhaClearEnumMembersProc */
  230.  
  231. #endif    /* ISARC_FUNCTION_START */
  232.  
  233. /* 格納されているファイルの情報の取得 */
  234. /* int WINAPI _export BgaGetArcFileInfo( LPSTR szFileName,
  235.                                         LPMAININFO lpMainInfo ); */
  236.  
  237. int WINAPI _export BgaGetFileCount( LPCSTR pArcFile );
  238.  
  239. HARC WINAPI _export BgaOpenArchive( const HWND hWnd, LPCSTR pFileName,
  240.                                     const DWORD dwMode );
  241. int WINAPI _export BgaCloseArchive( HARC hArc );
  242. int WINAPI _export BgaFindFirst( HARC hArc, LPCSTR pWildName,
  243.                                  LPINDIVIDUALINFO pSubInfo );
  244. int WINAPI _export BgaFindNext( HARC hArc, LPINDIVIDUALINFO pSubInfo );
  245.  
  246. #if 0    /* 現在未実装です */
  247. int WINAPI _export BgaExtract( HARC harc, LPCSTR szFileName,
  248.                                LPCSTR szDirName, DWORD dwMode );
  249. int WINAPI _export BgaAdd( HARC harc, LPSTR szFileName, DWORD dwMode );
  250. int WINAPI _export BgaMove( HARC harc, LPSTR szFileName, DWORD dwMode );
  251. int WINAPI _export BgaDelete( HARC harc, LPSTR szFileName, DWORD dwMode );
  252. int WINAPI _export BgaGetArcFileName( HARC harc, LPSTR lpBuffer,
  253.                                       const int nSize );
  254. DWORD WINAPI _export BgaGetArcFileSize( HARC harc );
  255. #endif    /* 現在未実装です */
  256.  
  257. DWORD WINAPI _export BgaGetArcOriginalSize( HARC hArc );
  258. DWORD WINAPI _export BgaGetArcCompressedSize( HARC hArc );
  259. WORD WINAPI _export BgaGetArcRatio( HARC hArc );
  260.  
  261. #if 0    /* 現在未実装です */
  262. WORD WINAPI _export BgaGetArcDate( HARC harc );
  263. WORD WINAPI _export BgaGetArcTime( HARC harc );
  264. UINT WINAPI _export BgaGetArcOSType( HARC harc );
  265. int WINAPI _export BgaGetFileName( HARC harc, LPSTR lpBuffer,
  266.                                    const int nSize );
  267. int WINAPI _export BgaGetMethod( HARC harc, LPSTR lpBuffer, const int nSize );
  268. DWORD WINAPI _export BgaGetOriginalSize( HARC harc );
  269. DWORD WINAPI _export BgaGetCompressedSize( HARC harc );
  270. WORD WINAPI _export BgaGetRatio( HARC harc );
  271. WORD WINAPI _export BgaGetDate( HARC harc );
  272. WORD WINAPI _export BgaGetTime( HARC harc );
  273.  
  274. DWORD WINAPI _export BgaGetWriteTime( HARC harc );
  275. DWORD WINAPI _export BgaGetAccessTime( HARC harc );
  276. DWORD WINAPI _export BgaGetCreateTime( HARC harc );
  277.  
  278. DWORD WINAPI _export BgaGetCRC( HARC harc );
  279. int WINAPI _export BgaGetAttribute( HARC harc );
  280. UINT WINAPI _export BgaGetOSType( HARC harc );
  281.  
  282. int WINAPI _export BgaIsSFXFile( HARC harc );
  283. #endif    /* 現在未実装です */
  284.  
  285. BOOL WINAPI _export BgaSetOwnerWindow( const HWND hWnd );
  286. BOOL WINAPI _export BgaClearOwnerWindow();
  287.  
  288. #ifndef WM_ARCEXTRACT
  289. #define WM_ARCEXTRACT    "wm_arcextract"
  290.  
  291. #define ARCEXTRACT_BEGIN        0    /* 該当ファイルの処理の開始 */
  292. #define ARCEXTRACT_INPROCESS    1    /* 該当ファイルの展開中 */
  293. #define ARCEXTRACT_END            2    /* 処理終了、関連メモリを開放 */
  294. #define ARCEXTRACT_OPEN            3    /* 該当書庫の処理の開始 */
  295. #define ARCEXTRACT_COPY            4    /* ワークファイルの書き戻し */
  296.  
  297. typedef BOOL CALLBACK ARCHIVERPROC( HWND hWnd, UINT uMsg, UINT uState,
  298.                                     LPEXTRACTINGINFOEX pEis );
  299. typedef ARCHIVERPROC *LPARCHIVERPROC ;
  300.  
  301. BOOL WINAPI _export BgaSetOwnerWindowEx( HWND hWnd,
  302.                                          LPARCHIVERPROC pArcProc );
  303. BOOL WINAPI _export BgaKillOwnerWindowEx( HWND hWnd );
  304. #endif    /* WM_ARCEXTRACT */
  305.  
  306.  
  307. #if !defined(EXTRACT_FOUND_FILE)
  308. /* MODE (for OpenArchive) */
  309. #define M_INIT_FILE_USE            0x00000001L /* レジストリの設定を使用 */
  310. #define M_REGARDLESS_INIT_FILE    0x00000002L /* 〃 を使用しない */
  311. #define M_NO_BACKGROUND_MODE    0x00000004L /* バックグラウンドを禁止 */
  312. #define M_NOT_USE_TIME_STAMP    0x00000008L
  313. #define M_EXTRACT_REPLACE_FILE    0x00000010L
  314. #define M_EXTRACT_NEW_FILE        0x00000020L
  315. #define M_EXTRACT_UPDATE_FILE    0x00000040L
  316. #define M_CHECK_ALL_PATH        0x00000100L /* 厳格なファイル名サーチ */
  317. #define M_CHECK_FILENAME_ONLY    0x00000200L /* 〃を行わない */
  318. #define M_CHECK_DISK_SIZE        0x00000400L
  319. #define M_REGARDLESS_DISK_SIZE    0x00000800L
  320. #define M_USE_DRIVE_LETTER        0x00001000L /* ドライブ名から格納 */
  321. #define M_NOT_USE_DRIVE_LETTER    0x00002000L /* 〃 を格納しない */
  322. #define M_INQUIRE_DIRECTORY        0x00004000L
  323. #define M_NOT_INQUIRE_DIRECTORY 0x00008000L
  324. #define M_INQUIRE_WRITE            0x00010000L
  325. #define M_NOT_INQUIRE_WRITE        0x00020000L
  326. #define M_CHECK_READONLY        0x00040000L
  327. #define M_REGARDLESS_READONLY    0x00080000L
  328. #define M_REGARD_E_COMMAND        0x00100000L
  329. #define M_REGARD_X_COMMAND        0x00200000L
  330. #define M_ERROR_MESSAGE_ON        0x00400000L /* エラーメッセージを表示 */
  331. #define M_ERROR_MESSAGE_OFF        0x00800000L /* 〃を表示しない */
  332. #define M_BAR_WINDOW_ON            0x01000000L
  333. #define M_BAR_WINDOW_OFF        0x02000000L
  334. #define M_CHECK_PATH            0x04000000L
  335. #define M_RECOVERY_ON            0x08000000L /* 破損ヘッダの読み飛ばし */
  336.  
  337. #define M_MAKE_INDEX_FILE        0x10000000L
  338. #define M_NOT_MAKE_INDEX_FILE    0x20000000L
  339. #define EXTRACT_FOUND_FILE        0x40000000L /* 検索されたファイルを解凍 */
  340. #define EXTRACT_NAMED_FILE        0x80000000L /* 指定したファイルを解凍 */
  341. #endif /* EXTRACT_FOUND_FILE */
  342.  
  343.  
  344. #ifndef FA_RDONLY
  345. /* Attribute */
  346. #define FA_RDONLY        0x01            /* Read only attribute */
  347. #define FA_HIDDEN        0x02            /* Hidden file */
  348. #define FA_SYSTEM        0x04            /* System file */
  349. #define FA_LABEL        0x08            /* Volume label */
  350. #define FA_DIREC        0x10            /* Directory */
  351. #define FA_ARCH            0x20            /* Archive */
  352. #endif
  353.  
  354.  
  355. #if 0    /* 現在未実装です */
  356. int WINAPI _export BgaExtractMem(const HWND _hwndParent,
  357.         LPCSTR _szCmdLine, LPBYTE _lpBuffer, const DWORD _dwSize,
  358.         time_t *_lpTime, LPWORD _lpwAttr, LPDWORD _lpdwWriteSize);
  359. int WINAPI _export BgaCompressMem(const HWND _hwndParent,
  360.         LPCSTR _szCmdLine, const LPBYTE _lpBuffer, const DWORD _dwSize,
  361.         const time_t *_lpTime, const LPWORD _lpwAttr,
  362.         LPDWORD _lpdwWriteSize);
  363. #endif
  364.  
  365. #ifndef UNLHA_LIST_COMMAND
  366. #define UNLHA_LIST_COMMAND        1
  367. #define UNLHA_ADD_COMMAND        2
  368. #define UNLHA_FRESH_COMMAND        3
  369. #define UNLHA_DELETE_COMMAND    4
  370. #define UNLHA_EXTRACT_COMMAND    5
  371. #define UNLHA_PRINT_COMMAND        6
  372. #define UNLHA_TEST_COMMAND        7
  373. #define UNLHA_MAKESFX_COMMAND    8
  374. #define UNLHA_JOINT_COMMAND        9
  375. #define UNLHA_CONVERT_COMMAND    10
  376. #define UNLHA_RENAME_COMMAND    11
  377. #endif    /* UNLHA_LIST_COMMAND */
  378.  
  379. BOOL WINAPI _export BgaSetEnumMembersProc( UNLHA_WND_ENUMMEMBPROC pEnumProc );
  380. BOOL WINAPI _export BgaClearEnumMembersProc();
  381.  
  382.  
  383. #if !defined(ERROR_START)
  384. #define ERROR_START                0x8000
  385. /* WARNING */
  386. #define ERROR_DISK_SPACE        0x8005
  387. #define ERROR_READ_ONLY            0x8006
  388. #define ERROR_USER_SKIP            0x8007
  389. #define ERROR_UNKNOWN_TYPE        0x8008
  390. #define ERROR_METHOD            0x8009
  391. #define ERROR_PASSWORD_FILE        0x800A
  392. #define ERROR_VERSION            0x800B
  393. #define ERROR_FILE_CRC            0x800C
  394. #define ERROR_FILE_OPEN            0x800D
  395. #define ERROR_MORE_FRESH        0x800E
  396. #define ERROR_NOT_EXIST            0x800F
  397. #define ERROR_ALREADY_EXIST        0x8010
  398.  
  399. #define ERROR_TOO_MANY_FILES    0x8011
  400.  
  401. /* ERROR */
  402. #define ERROR_MAKEDIRECTORY        0x8012
  403. #define ERROR_CANNOT_WRITE        0x8013
  404. #define ERROR_HUFFMAN_CODE        0x8014
  405. #define ERROR_COMMENT_HEADER    0x8015
  406. #define ERROR_HEADER_CRC        0x8016
  407. #define ERROR_HEADER_BROKEN        0x8017
  408. #define ERROR_ARC_FILE_OPEN        0x8018
  409. #define ERROR_NOT_ARC_FILE        0x8019
  410. #define ERROR_CANNOT_READ        0x801A
  411. #define ERROR_FILE_STYLE        0x801B
  412. #define ERROR_COMMAND_NAME        0x801C
  413. #define ERROR_MORE_HEAP_MEMORY    0x801D
  414. #define ERROR_ENOUGH_MEMORY        0x801E
  415. #if !defined(ERROR_ALREADY_RUNNING)
  416. #define ERROR_ALREADY_RUNNING    0x801F
  417. #endif
  418. #define ERROR_USER_CANCEL        0x8020
  419. #define ERROR_HARC_ISNOT_OPENED 0x8021
  420. #define ERROR_NOT_SEARCH_MODE    0x8022
  421. #define ERROR_NOT_SUPPORT        0x8023
  422. #define ERROR_TIME_STAMP        0x8024
  423. #define ERROR_TMP_OPEN            0x8025
  424. #define ERROR_LONG_FILE_NAME    0x8026
  425. #define ERROR_ARC_READ_ONLY        0x8027
  426. #define ERROR_SAME_NAME_FILE    0x8028
  427. #define ERROR_NOT_FIND_ARC_FILE 0x8029
  428. #define ERROR_RESPONSE_READ        0x802A
  429. #define ERROR_NOT_FILENAME        0x802B
  430. #define ERROR_TMP_COPY            0x802C
  431. #define ERROR_EOF                0x802D
  432. #define ERROR_ADD_TO_LARC        0x802E
  433. #define ERROR_TMP_BACK_SPACE    0x802F
  434. #define ERROR_SHARING            0x8030
  435. #define ERROR_NOT_FIND_FILE        0x8031
  436. #define ERROR_LOG_FILE            0x8032
  437. #define ERROR_NO_DEVICE            0x8033
  438. #define ERROR_GET_ATTRIBUTES    0x8034
  439. #define ERROR_SET_ATTRIBUTES    0x8035
  440. #define ERROR_GET_INFORMATION    0x8036
  441. #define ERROR_GET_POINT            0x8037
  442. #define ERROR_SET_POINT            0x8038
  443. #define ERROR_CONVERT_TIME        0x8039
  444. #define ERROR_GET_TIME            0x803a
  445. #define ERROR_SET_TIME            0x803b
  446. #define ERROR_CLOSE_FILE        0x803c
  447. #define ERROR_HEAP_MEMORY        0x803d
  448. #define ERROR_HANDLE            0x803e
  449. #define ERROR_TIME_STAMP_RANGE    0x803f
  450.  
  451. #define ERROR_END    ERROR_TIME_STAMP_RANGE
  452. #endif /* ERROR_START */
  453.  
  454. #ifdef __cplusplus
  455. }
  456. #endif
  457. #endif    /* __BGA32API_H__ */
  458.