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 }
 
enum  {
  LZH_EXT_HEAD_CRC = 0x00 , LZH_EXT_HEAD_FNAME = 0x01 , LZH_EXT_HEAD_PATH = 0x02 , LZH_EXT_HEAD_COMNT = 0x3F ,
  LZH_EXT_HEAD_ATRB = 0x40 , LZH_EXT_HEAD_TIME = 0x41 , LZH_EXT_HEAD_SIZE = 0x42 , LZH_EXT_HEAD_UNI_FNAME = 0x44 ,
  LZH_EXT_HEAD_UNI_PATH = 0x45 , LZH_EXT_HEAD_CP = 0x46 , LZH_EXT_HEAD_PERMS = 0x50 , LZH_EXT_HEAD_GID = 0x51 ,
  LZH_EXT_HEAD_GROUP = 0x52 , LZH_EXT_HEAD_USER = 0x53 , LZH_EXT_HEAD_MODT = 0x54 , LZH_EXT_HEAD_RESRV = 0xFF
}
 

非公開メンバ関数

void Adjust_info (TCHAR *name, LzHeader *hdr)
 Adjust_info
 
int CalcSum (char *p, int len)
 CalcSum
 
bool ChangeDir (const TCHAR *dir)
 ChangeDir
 
long CopyFile (MYFILE *f2, long size, bool calc_crc)
 CopyFile
 
void CreateShortCutSub (int)
 CreateShortCutSub
 
void CreateShortCut (void)
 CreateShortCut
 
HWND CreateWindowExDpi (DWORD dwExStyle, LPCTSTR lpClassName, LPCTSTR lpWindowName, DWORD dwStyle, int X, int Y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam)
 CreateWindowExDpi
 
unsigned short DecodeLzhuf (MYFILE *outfp, long original_size, long packed_size, TCHAR *name, int method)
 DecodeLzhuf
 
void DispName (const MYSTR &name)
 DispName
 
void Exec (void)
 Exec
 
bool Extract (void)
 Extract
 
bool ExtractOne (LzHeader *hdr)
 ExtractOne
 
time_t GenericToUnixStamp (long t)
 GenericToUnixStamp
 
unsigned char GetByte (void)
 
bool GetHeader (LzHeader *hdr)
 GetHeader
 
long GetLongword (void)
 GetLongword
 
bool GetParam (void)
 GetParam
 
int GetTotalSize (void)
 GetTotalSize
 
long GetTZ (void)
 GetTZ
 
unsigned short GetWord (void)
 GetWord
 
bool Init (HINSTANCE hInstance)
 Init
 
INQ_RET Inquire_extract (const MYSTR &name)
 Inquire_extract
 
void SetupGet (char *p)
 
void UpdateShell (bool mkdir, TCHAR *p)
 UpdateShell
 

静的非公開メンバ関数

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 INT_PTR CALLBACK DialogOverWrite (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
static void (_cdecl Thread)(void *)
 

非公開変数類

MYFILE * Afp
 
HWND CancelButtonWnd
 
MYSTR DecodeName
 
MYSTR DestDir
 
bool Error
 
bool Force
 
MYSTR gOverWriteMes
 
char * GetPtr
 
HWND Hwnd
 
bool Option
 
LHAZSFX Param
 
bool Skip
 
HWND StaticWnd
 
MYBUF ZoneIdentifier
 

静的非公開変数類

static const int SKIP_SIZE =
 
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
列挙値
LZH_EXT_HEAD_CRC 
LZH_EXT_HEAD_FNAME 
LZH_EXT_HEAD_PATH 
LZH_EXT_HEAD_COMNT 
LZH_EXT_HEAD_ATRB 
LZH_EXT_HEAD_TIME 
LZH_EXT_HEAD_SIZE 
LZH_EXT_HEAD_UNI_FNAME 
LZH_EXT_HEAD_UNI_PATH 
LZH_EXT_HEAD_CP 
LZH_EXT_HEAD_PERMS 
LZH_EXT_HEAD_GID 
LZH_EXT_HEAD_GROUP 
LZH_EXT_HEAD_USER 
LZH_EXT_HEAD_MODT 
LZH_EXT_HEAD_RESRV 

◆ 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

関数詳解

◆ ‾SFX()

SFX::‾SFX ( void  )

Destructor

◆ 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

◆ CreateWindowExDpi()

HWND SFX::CreateWindowExDpi ( DWORD  dwExStyle,
LPCTSTR  lpClassName,
LPCTSTR  lpWindowName,
DWORD  dwStyle,
int  X,
int  Y,
int  nWidth,
int  nHeight,
HWND  hWndParent,
HMENU  hMenu,
HINSTANCE  hInstance,
LPVOID  lpParam 
)
private

CreateWindowExDpi

◆ 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

◆ DialogOverWrite()

INT_PTR CALLBACK SFX::DialogOverWrite ( HWND  hwnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
staticprivate

◆ 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

メンバ詳解

◆ 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

◆ Force

bool SFX::Force
private

◆ GetPtr

char* SFX::GetPtr
private

◆ gOverWriteMes

MYSTR SFX::gOverWriteMes
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

bool SFX::Skip
private

◆ SKIP_SIZE

const int SFX::SKIP_SIZE =
staticprivate

◆ StaticWnd

HWND SFX::StaticWnd
private

◆ ZoneIdentifier

MYBUF SFX::ZoneIdentifier
private

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