ReactOS 0.4.16-dev-736-g28b802b
|
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "chm_lib.h"
#include "lzx.h"
Go to the source code of this file.
Classes | |
struct | chmItsfHeader |
struct | chmItspHeader |
struct | chmPmglHeader |
struct | chmPmgiHeader |
struct | chmLzxcResetTable |
struct | chmLzxcControlData |
struct | chmFile |
Macros | |
#define | CHM_ACQUIRE_LOCK(a) |
#define | CHM_RELEASE_LOCK(a) |
#define | CHM_NULL_FD (INVALID_HANDLE_VALUE) |
#define | CHM_CLOSE_FILE(fd) CloseHandle((fd)) |
#define | CHM_MAX_BLOCKS_CACHED 5 |
#define | CHM_PARAM_MAX_BLOCKS_CACHED 0 |
#define | _CHM_ITSF_V2_LEN (0x58) |
#define | _CHM_ITSF_V3_LEN (0x60) |
#define | _CHM_ITSP_V1_LEN (0x54) |
#define | _CHM_PMGL_LEN (0x14) |
#define | _CHM_PMGI_LEN (0x08) |
#define | _CHM_LZXC_RESETTABLE_V1_LEN (0x28) |
#define | _CHM_LZXC_MIN_LEN (0x18) |
#define | _CHM_LZXC_V2_LEN (0x1c) |
Typedefs | |
typedef BYTE | UChar |
typedef SHORT | Int16 |
typedef USHORT | UInt16 |
typedef LONG | Int32 |
typedef DWORD | UInt32 |
typedef LONGLONG | Int64 |
typedef ULONGLONG | UInt64 |
Variables | |
static const WCHAR | _CHMU_RESET_TABLE [] |
static const WCHAR | _CHMU_LZXC_CONTROLDATA [] |
static const WCHAR | _CHMU_CONTENT [] |
static const char | _chm_pmgl_marker [4] = "PMGL" |
static const char | _chm_pmgi_marker [4] = "PMGI" |
#define CHM_NULL_FD (INVALID_HANDLE_VALUE) |
Definition at line 1180 of file chm_lib.c.
Referenced by _chm_decompress_region().
|
static |
Definition at line 1290 of file chm_lib.c.
Referenced by chm_retrieve_object().
Definition at line 566 of file chm_lib.c.
Referenced by _chm_decompress_block(), _chm_get_cmpblock_bounds(), chm_enumerate_dir(), chm_openW(), chm_resolve_object(), and chm_retrieve_object().
Definition at line 1006 of file chm_lib.c.
Referenced by chm_resolve_object().
|
static |
Definition at line 964 of file chm_lib.c.
Referenced by chm_resolve_object().
|
static |
Definition at line 1118 of file chm_lib.c.
Referenced by _chm_decompress_block().
Definition at line 920 of file chm_lib.c.
Referenced by _chm_find_in_PMGI(), _chm_find_in_PMGL(), and _chm_parse_PMGL_entry().
|
static |
Definition at line 943 of file chm_lib.c.
Referenced by chm_enumerate_dir(), and chm_resolve_object().
Definition at line 934 of file chm_lib.c.
Referenced by _chm_find_in_PMGI(), _chm_find_in_PMGL(), and _chm_parse_PMGL_entry().
Definition at line 905 of file chm_lib.c.
Referenced by _chm_skip_PMGL_entry_data().
|
static |
Definition at line 109 of file chm_lib.c.
Referenced by _unmarshal_itsf_header(), _unmarshal_itsp_header(), _unmarshal_lzxc_control_data(), _unmarshal_pmgi_header(), and _unmarshal_pmgl_header().
|
static |
Definition at line 135 of file chm_lib.c.
Referenced by _unmarshal_itsf_header(), _unmarshal_itsp_header(), and _unmarshal_pmgl_header().
|
static |
|
static |
Definition at line 255 of file chm_lib.c.
Referenced by chm_openW().
|
static |
Definition at line 333 of file chm_lib.c.
Referenced by chm_openW().
|
static |
Definition at line 482 of file chm_lib.c.
Referenced by chm_openW().
|
static |
Definition at line 444 of file chm_lib.c.
Referenced by chm_openW().
|
static |
Definition at line 412 of file chm_lib.c.
Referenced by _chm_find_in_PMGI().
|
static |
Definition at line 381 of file chm_lib.c.
Referenced by _chm_find_in_PMGL(), and chm_enumerate_dir().
|
static |
Definition at line 147 of file chm_lib.c.
Referenced by _unmarshal_itsf_header(), _unmarshal_itsp_header(), _unmarshal_lzxc_control_data(), _unmarshal_lzxc_reset_table(), _unmarshal_pmgi_header(), and _unmarshal_pmgl_header().
|
static |
Definition at line 179 of file chm_lib.c.
Referenced by _chm_get_cmpblock_bounds(), _unmarshal_itsf_header(), and _unmarshal_lzxc_reset_table().
|
static |
Definition at line 199 of file chm_lib.c.
Referenced by _unmarshal_itsf_header(), and _unmarshal_itsp_header().
Definition at line 863 of file chm_lib.c.
Referenced by chm_openW(), ITSProtocol_Start(), ITSS_IStorageImpl_Release(), and release_chm().
Definition at line 831 of file chm_lib.c.
Referenced by ITSS_IStorageImpl_OpenStorage().
BOOL chm_enumerate_dir | ( | struct chmFile * | h, |
const WCHAR * | prefix, | ||
int | what, | ||
CHM_ENUMERATOR | e, | ||
void * | context | ||
) |
Definition at line 1400 of file chm_lib.c.
Referenced by ITSS_IStorageImpl_EnumElements().
Definition at line 678 of file chm_lib.c.
Referenced by ITSProtocol_Start(), and ITSS_StgOpenStorage().
Definition at line 1048 of file chm_lib.c.
Referenced by chm_openW(), ITSProtocol_Start(), and ITSS_IStorageImpl_OpenStream().
LONGINT64 chm_retrieve_object | ( | struct chmFile * | h, |
struct chmUnitInfo * | ui, | ||
unsigned char * | buf, | ||
LONGUINT64 | addr, | ||
LONGINT64 | len | ||
) |
Definition at line 1342 of file chm_lib.c.
Referenced by chm_openW(), ITSProtocol_Read(), and ITSS_IStream_Read().
Definition at line 613 of file chm_lib.c.
Referenced by chm_dup(), and chm_openW().
Definition at line 404 of file chm_lib.c.
Referenced by _unmarshal_pmgi_header(), and chm_resolve_object().
Definition at line 370 of file chm_lib.c.
Referenced by _unmarshal_pmgl_header(), and chm_resolve_object().
Definition at line 224 of file chm_lib.c.
Referenced by chm_openW().
Definition at line 218 of file chm_lib.c.
Referenced by chm_openW().
Definition at line 207 of file chm_lib.c.
Referenced by chm_openW().