Lhaz
公開メンバ関数 | 非公開型 | 非公開メンバ関数 | 静的非公開メンバ関数 | 非公開変数類 | 静的非公開変数類 | 全メンバ一覧
SFX クラス

LZH-SFX class. [詳解]

#include <sfx.h>

公開メンバ関数

 SFX (HINSTANCE hInstance)
 Constructor. [詳解]
 
 ‾SFX (void)
 Destructor. [詳解]
 
int Run (void)
 Run. [詳解]
 

非公開型

enum  {
  SFX_START = WM_APP, SFX_DISP, SFX_PRGRS, SFX_FINISH,
  SFX_STOP
}
 
enum  { LHAZWND_WIDTH = 256, LHAZWND_HEIGHT = 114 }
 
enum  TYPE {
  LZH, ZIP, CAB, TGZ,
  TAR, GZIP, TBZ, BZ2,
  RAR
}
 
enum  INQ_RET {
  INQ_OK, INQ_NO, INQ_SKIP, INQ_SKIP_ALL,
  INQ_CANCEL
}
 
enum  { I_HEADER_CHECKSUM = 1, I_HEADER_LEVEL = 20, I_METHOD = 2, I_PACKED_SIZE = 7 }
 

非公開メンバ関数

bool Init (HINSTANCE hInstance)
 Init. [詳解]
 
bool GetParam (void)
 GetParam. [詳解]
 
void CreateShortCutSub (int)
 CreateShortCutSub. [詳解]
 
void CreateShortCut (void)
 CreateShortCut. [詳解]
 
void Exec (void)
 Exec. [詳解]
 
bool Extract (void)
 Extract. [詳解]
 
int GetTotalSize (void)
 GetTotalSize. [詳解]
 
bool GetHeader (LzHeader *hdr)
 GetHeader. [詳解]
 
bool ExtractOne (LzHeader *hdr)
 ExtractOne. [詳解]
 
unsigned short DecodeLzhuf (MYFILE *outfp, long original_size, long packed_size, TCHAR *name, int method)
 DecodeLzhuf. [詳解]
 
INQ_RET Inquire_extract (const MYSTR &name)
 Inquire_extract. [詳解]
 
void Adjust_info (TCHAR *name, LzHeader *hdr)
 Adjust_info. [詳解]
 
long GetLongword (void)
 GetLongword. [詳解]
 
unsigned short GetWord (void)
 GetWord. [詳解]
 
int CalcSum (char *p, int len)
 CalcSum. [詳解]
 
void UpdateShell (bool mkdir, TCHAR *p)
 UpdateShell. [詳解]
 
time_t GenericToUnixStamp (long t)
 GenericToUnixStamp. [詳解]
 
long GetTZ (void)
 GetTZ. [詳解]
 
long CopyFile (MYFILE *f2, long size, bool calc_crc)
 CopyFile. [詳解]
 
void SetupGet (char *p)
 
unsigned char GetByte (void)
 
bool ChangeDir (const TCHAR *dir)
 ChangeDir. [詳解]
 
void DispName (const MYSTR &name)
 DispName. [詳解]
 

静的非公開メンバ関数

static LRESULT CALLBACK WndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 WndProc. [詳解]
 
static INT_PTR CALLBACK DialogCancel (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
static INT_PTR CALLBACK DialogMain (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
 DialogMain. [詳解]
 
static void (_cdecl Thread)(void *)
 

非公開変数類

MYFILE * Afp
 
HWND Hwnd
 
HWND StaticWnd
 
HWND CancelButtonWnd
 
char * GetPtr
 
MYSTR DecodeName
 
MYSTR DestDir
 
LHAZSFX Param
 
bool Error
 
bool Option
 

静的非公開変数類

static const int SKIP_SIZE = 47104
 
static const TCHAR ClassName [] = _T("LHAZSFXCLASS")
 
static const TCHAR SFXTITLE [] = _T("Lhaz SFX")
 
static const char * Methods []
 
static const TCHAR LHAZOPEN [] = _T("Open")
 
static const TCHAR LHAZEXT [] = _T("Lhazで解凍(&E)")
 
static const TCHAR LHAZVIEW [] = _T("Lhazで閲覧(&V)")
 
static const TCHAR LHAZARC [] = _T("Archive file")
 
static const TCHAR LHAZ [] = _T("Lhaz")
 
static bool Initialized = false
 
static HINSTANCE Instance = NULL
 

詳解

LZH-SFX class.

列挙型メンバ詳解

anonymous enum
private
列挙値
SFX_START 
SFX_DISP 
SFX_PRGRS 
SFX_FINISH 
SFX_STOP 
anonymous enum
private
列挙値
LHAZWND_WIDTH 
LHAZWND_HEIGHT 
anonymous enum
private
列挙値
I_HEADER_CHECKSUM 
I_HEADER_LEVEL 
I_METHOD 
I_PACKED_SIZE 
enum SFX::INQ_RET
private
列挙値
INQ_OK 
INQ_NO 
INQ_SKIP 
INQ_SKIP_ALL 
INQ_CANCEL 
enum SFX::TYPE
private
列挙値
LZH 
ZIP 
CAB 
TGZ 
TAR 
GZIP 
TBZ 
BZ2 
RAR 

構築子と解体子

SFX::SFX ( HINSTANCE  hInstance)

Constructor.

関数詳解

void SFX::Adjust_info ( TCHAR *  name,
LzHeader hdr 
)
private

Adjust_info.

int SFX::CalcSum ( char *  p,
int  len 
)
private

CalcSum.

bool SFX::ChangeDir ( const TCHAR *  dir)
private

ChangeDir.

long SFX::CopyFile ( MYFILE *  f2,
long  size,
bool  calc_crc 
)
private

CopyFile.

void SFX::CreateShortCut ( void  )
private

CreateShortCut.

void SFX::CreateShortCutSub ( int  nFolder)
private

CreateShortCutSub.

ushort SFX::DecodeLzhuf ( MYFILE *  outfp,
long  original_size,
long  packed_size,
TCHAR *  name,
int  method 
)
private

DecodeLzhuf.

static INT_PTR CALLBACK SFX::DialogCancel ( HWND  hwndDlg,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
staticprivate
INT_PTR CALLBACK SFX::DialogMain ( HWND  hwndDlg,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
staticprivate

DialogMain.

void SFX::DispName ( const MYSTR &  name)
private

DispName.

void SFX::Exec ( void  )
private

Exec.

bool SFX::Extract ( void  )
private

Extract.

bool SFX::ExtractOne ( LzHeader hdr)
private

ExtractOne.

time_t SFX::GenericToUnixStamp ( long  t)
private

GenericToUnixStamp.

unsigned char SFX::GetByte ( void  )
inlineprivate
bool SFX::GetHeader ( LzHeader hdr)
private

GetHeader.

long SFX::GetLongword ( void  )
inlineprivate

GetLongword.

bool SFX::GetParam ( void  )
private

GetParam.

int SFX::GetTotalSize ( void  )
private

GetTotalSize.

long SFX::GetTZ ( void  )
private

GetTZ.

ushort SFX::GetWord ( void  )
inlineprivate

GetWord.

bool SFX::Init ( HINSTANCE  hInstance)
private

Init.

SFX::INQ_RET SFX::Inquire_extract ( const MYSTR &  name)
private

Inquire_extract.

int SFX::Run ( void  )

Run.

void SFX::SetupGet ( char *  p)
inlineprivate
void SFX::UpdateShell ( bool  mkdir,
TCHAR *  p 
)
private

UpdateShell.

static SFX::void ( _cdecl  Thread)
staticprivate
LRESULT CALLBACK SFX::WndProc ( HWND  hwnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
staticprivate

WndProc.

SFX::‾SFX ( void  )

Destructor.

メンバ詳解

MYFILE* SFX::Afp
private
HWND SFX::CancelButtonWnd
private
const TCHAR SFX::ClassName = _T("LHAZSFXCLASS")
staticprivate
MYSTR SFX::DecodeName
private
MYSTR SFX::DestDir
private
bool SFX::Error
private
char* SFX::GetPtr
private
HWND SFX::Hwnd
private
bool SFX::Initialized = false
staticprivate
HINSTANCE SFX::Instance = NULL
staticprivate
const TCHAR SFX::LHAZ = _T("Lhaz")
staticprivate
const TCHAR SFX::LHAZARC = _T("Archive file")
staticprivate
const TCHAR SFX::LHAZEXT = _T("Lhazで解凍(&E)")
staticprivate
const TCHAR SFX::LHAZOPEN = _T("Open")
staticprivate
const TCHAR SFX::LHAZVIEW = _T("Lhazで閲覧(&V)")
staticprivate
const char * SFX::Methods
staticprivate
初期値:
= {
"-lh0-",
"-lh1-",
"-lh2-",
"-lh3-",
"-lh4-",
"-lh5-",
"-lh6-",
"-lh7-",
"-lzs-",
"-lz5-",
"-lz4-",
"-lhd-",
NULL
}
bool SFX::Option
private
LHAZSFX SFX::Param
private
const TCHAR SFX::SFXTITLE = _T("Lhaz SFX")
staticprivate
const int SFX::SKIP_SIZE = 47104
staticprivate
HWND SFX::StaticWnd
private

このクラス詳解は次のファイルから抽出されました: