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

anonymous enum
private
列挙値
SFX_START 
SFX_DISP 
SFX_PRGRS 
SFX_FINISH 
SFX_STOP 

◆ anonymous enum

anonymous enum
private
列挙値
LHAZWND_WIDTH 
LHAZWND_HEIGHT 

◆ anonymous enum

anonymous enum
private
列挙値
I_HEADER_CHECKSUM 
I_HEADER_LEVEL 
I_METHOD 
I_PACKED_SIZE 

◆ INQ_RET

enum SFX::INQ_RET
private
列挙値
INQ_OK 
INQ_NO 
INQ_SKIP 
INQ_SKIP_ALL 
INQ_CANCEL 

◆ TYPE

enum SFX::TYPE
private
列挙値
LZH 
ZIP 
CAB 
TGZ 
TAR 
GZIP 
TBZ 
BZ2 
RAR 

構築子と解体子

◆ SFX()

SFX::SFX ( HINSTANCE  hInstance)

Constructor

関数詳解

◆ Adjust_info()

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

Adjust_info

◆ CalcSum()

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

CalcSum

◆ ChangeDir()

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

ChangeDir

◆ CopyFile()

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

CopyFile

◆ CreateShortCut()

void SFX::CreateShortCut ( void  )
private

CreateShortCut

◆ CreateShortCutSub()

void SFX::CreateShortCutSub ( int  nFolder)
private

CreateShortCutSub

◆ DecodeLzhuf()

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

DecodeLzhuf

◆ DialogCancel()

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

◆ DialogMain()

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

DialogMain

◆ DispName()

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

DispName

◆ Exec()

void SFX::Exec ( void  )
private

Exec

◆ Extract()

bool SFX::Extract ( void  )
private

Extract

◆ ExtractOne()

bool SFX::ExtractOne ( LzHeader hdr)
private

ExtractOne

◆ GenericToUnixStamp()

time_t SFX::GenericToUnixStamp ( long  t)
private

GenericToUnixStamp

◆ GetByte()

unsigned char SFX::GetByte ( void  )
inlineprivate

◆ GetHeader()

bool SFX::GetHeader ( LzHeader hdr)
private

GetHeader

◆ GetLongword()

long SFX::GetLongword ( void  )
inlineprivate

GetLongword

◆ GetParam()

bool SFX::GetParam ( void  )
private

GetParam

◆ GetTotalSize()

int SFX::GetTotalSize ( void  )
private

GetTotalSize

◆ GetTZ()

long SFX::GetTZ ( void  )
private

GetTZ

◆ GetWord()

ushort SFX::GetWord ( void  )
inlineprivate

GetWord

◆ Init()

bool SFX::Init ( HINSTANCE  hInstance)
private

Init

◆ Inquire_extract()

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

Inquire_extract

◆ Run()

int SFX::Run ( void  )

Run

◆ SetupGet()

void SFX::SetupGet ( char *  p)
inlineprivate

◆ UpdateShell()

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

UpdateShell

◆ void()

static SFX::void ( _cdecl  Thread)
staticprivate

◆ WndProc()

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

WndProc

◆ ‾SFX()

SFX::‾SFX ( void  )

Destructor

メンバ詳解

◆ Afp

MYFILE* SFX::Afp
private

◆ CancelButtonWnd

HWND SFX::CancelButtonWnd
private

◆ ClassName

const TCHAR SFX::ClassName = _T("LHAZSFXCLASS")
staticprivate

◆ DecodeName

MYSTR SFX::DecodeName
private

◆ DestDir

MYSTR SFX::DestDir
private

◆ Error

bool SFX::Error
private

◆ GetPtr

char* SFX::GetPtr
private

◆ Hwnd

HWND SFX::Hwnd
private

◆ Initialized

bool SFX::Initialized = false
staticprivate

◆ Instance

HINSTANCE SFX::Instance = NULL
staticprivate

◆ LHAZ

const TCHAR SFX::LHAZ = _T("Lhaz")
staticprivate

◆ LHAZARC

const TCHAR SFX::LHAZARC = _T("Archive file")
staticprivate

◆ LHAZEXT

const TCHAR SFX::LHAZEXT = _T("Lhazで解凍(&E)")
staticprivate

◆ LHAZOPEN

const TCHAR SFX::LHAZOPEN = _T("Open")
staticprivate

◆ LHAZVIEW

const TCHAR SFX::LHAZVIEW = _T("Lhazで閲覧(&V)")
staticprivate

◆ Methods

const char * SFX::Methods
staticprivate
初期値:
= {
"-lh0-",
"-lh1-",
"-lh2-",
"-lh3-",
"-lh4-",
"-lh5-",
"-lh6-",
"-lh7-",
"-lzs-",
"-lz5-",
"-lz4-",
"-lhd-",
NULL
}

◆ Option

bool SFX::Option
private

◆ Param

LHAZSFX SFX::Param
private

◆ SFXTITLE

const TCHAR SFX::SFXTITLE = _T("Lhaz SFX")
staticprivate

◆ SKIP_SIZE

const int SFX::SKIP_SIZE = 47104
staticprivate

◆ StaticWnd

HWND SFX::StaticWnd
private

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