Lhaz
lhazshellex.h
[詳解]
1 /*==========================================================================*/
2 /* Lhaz シェルエクステンション chitora48@gmail.com */
3 /*==========================================================================*/
4 #ifndef _LHAZSHELLEX_H
5 #define _LHAZSHELLEX_H
6 
7 #include <windows.h>
8 #include "mystr.h"
9 #include "lhazarc.h"
10 
11 class LHAZSHELLEX {
12 
13 public:
14  LHAZSHELLEX(void);
15  ‾LHAZSHELLEX(void);
16  //
17  MYSTR GetInstallDir(void);
18  void SetInstallDir(const MYSTR& destdir, const MYSTR& linkname);
19  void SetUnInstall(const MYSTR& destdir, const MYSTR& linkname, LONGLONG size);
20  void RemoveUnInstall(void);
21  void SetCLSID(const MYSTR& destdir);
22  void DelCLSID(void);
23  void SetContextMenuHandler(bool sw = true);
24  void SetDragDropHandler(bool sw = true);
25  bool IsRDDExtended(void);
26  void SetRegClass(ARCHIVE::TYPE type, const MYSTR& exename, const MYSTR& resourcename, bool conview);
27  void CreateShortCut(HWND hWnd, int nFolder, const MYSTR& destdir, const MYSTR& destpath, const MYSTR& linkname);
28 
29 private:
30  static const TCHAR CLSID32[];
31  static const TCHAR CLSID64[];
32  static const TCHAR LHAZ[];
33  static const TCHAR LHAZDLL32[];
34  static const TCHAR LHAZDLL64[];
35  static const TCHAR LHAZSHELLEXTENSION[];
36  static const TCHAR APARTMENT[];
37  static const TCHAR INPROCSERVER32[];
38  static const TCHAR CNTXANYFILE[];
39  static const TCHAR CNTXANYFILE32[];
40  static const TCHAR CNTXFOLDER[];
41  static const TCHAR CNTXFOLDER32[];
42  static const TCHAR RDDFOLDER[];
43  static const TCHAR RDDDRIVE[];
44  static const TCHAR RDDFOLDER32[];
45  static const TCHAR RDDDRIVE32[];
46  static const TCHAR LHAZARCHIVELZH[];
47  static const TCHAR LHAZARCHIVEZIP[];
48  static const TCHAR LHAZARCHIVECAB[];
49  static const TCHAR LHAZARCHIVETGZ[];
50  static const TCHAR LHAZARCHIVETAR[];
51  static const TCHAR LHAZARCHIVEGZIP[];
52  static const TCHAR LHAZARCHIVETBZ[];
53  static const TCHAR LHAZARCHIVEBZ2[];
54  static const TCHAR LHAZARCHIVETXZ[];
55  static const TCHAR LHAZARCHIVEXZ[];
56  static const TCHAR LHAZARCHIVERAR[];
57 #ifdef FEATURE_7ZIP
58  static const TCHAR LHAZARCHIVE7ZIP[];
59 #endif // FEATURE_7ZIP
60  static const TCHAR LHAZOPEN[];
61  static const TCHAR LHAZARC[];
62  static const TCHAR LHAZEXT[];
63  static const TCHAR LHAZVIEW[];
64  static const TCHAR LHAZUNINSTALLREGKEY[];
65  static const TCHAR LHAZPLUSUNINSTALLREGKEY[];
66 
67 };
68 
69 #endif // _LHAZSHELLEX_H
void DelCLSID(void)
Definition: lhazshellex.cpp:236
Archive.
TYPE
Definition: lhazarc.h:28
static const TCHAR LHAZARCHIVELZH[]
Definition: lhazshellex.h:46
static const TCHAR LHAZVIEW[]
Definition: lhazshellex.h:63
LHAZSHELLEX(void)
Definition: lhazshellex.cpp:71
static const TCHAR LHAZEXT[]
Definition: lhazshellex.h:62
void SetInstallDir(const MYSTR &destdir, const MYSTR &linkname)
Definition: lhazshellex.cpp:105
static const TCHAR APARTMENT[]
Definition: lhazshellex.h:36
static const TCHAR LHAZDLL64[]
Definition: lhazshellex.h:34
void SetRegClass(ARCHIVE::TYPE type, const MYSTR &exename, const MYSTR &resourcename, bool conview)
Definition: lhazshellex.cpp:376
void SetContextMenuHandler(bool sw=true)
Definition: lhazshellex.cpp:268
static const TCHAR RDDDRIVE[]
Definition: lhazshellex.h:43
static const TCHAR LHAZSHELLEXTENSION[]
Definition: lhazshellex.h:35
static const TCHAR LHAZARCHIVETAR[]
Definition: lhazshellex.h:50
static const TCHAR CNTXANYFILE[]
Definition: lhazshellex.h:38
static const TCHAR INPROCSERVER32[]
Definition: lhazshellex.h:37
void SetDragDropHandler(bool sw=true)
Definition: lhazshellex.cpp:322
static const TCHAR LHAZOPEN[]
Definition: lhazshellex.h:60
static const TCHAR LHAZPLUSUNINSTALLREGKEY[]
Definition: lhazshellex.h:65
static const TCHAR LHAZDLL32[]
Definition: lhazshellex.h:33
static const TCHAR LHAZARCHIVERAR[]
Definition: lhazshellex.h:56
static const TCHAR LHAZARCHIVEXZ[]
Definition: lhazshellex.h:55
Definition: lhazshellex.h:11
static const TCHAR LHAZARCHIVETXZ[]
Definition: lhazshellex.h:54
static const TCHAR RDDFOLDER[]
Definition: lhazshellex.h:42
static const TCHAR LHAZARCHIVEZIP[]
Definition: lhazshellex.h:47
static const TCHAR RDDFOLDER32[]
Definition: lhazshellex.h:44
static const TCHAR LHAZARC[]
Definition: lhazshellex.h:61
void SetCLSID(const MYSTR &destdir)
Definition: lhazshellex.cpp:184
static const TCHAR LHAZARCHIVECAB[]
Definition: lhazshellex.h:48
static const TCHAR LHAZARCHIVEBZ2[]
Definition: lhazshellex.h:53
static const TCHAR CLSID32[]
Definition: lhazshellex.h:30
static const TCHAR LHAZARCHIVETBZ[]
Definition: lhazshellex.h:52
static const TCHAR LHAZARCHIVEGZIP[]
Definition: lhazshellex.h:51
static const TCHAR CNTXANYFILE32[]
Definition: lhazshellex.h:39
static const TCHAR LHAZUNINSTALLREGKEY[]
Definition: lhazshellex.h:64
MYSTR GetInstallDir(void)
Definition: lhazshellex.cpp:85
static const TCHAR CNTXFOLDER[]
Definition: lhazshellex.h:40
‾LHAZSHELLEX(void)
Definition: lhazshellex.cpp:78
static const TCHAR CNTXFOLDER32[]
Definition: lhazshellex.h:41
void RemoveUnInstall(void)
Definition: lhazshellex.cpp:172
static const TCHAR LHAZARCHIVETGZ[]
Definition: lhazshellex.h:49
static const TCHAR CLSID64[]
Definition: lhazshellex.h:31
Main Class.
Definition: lhaz.h:47
void SetUnInstall(const MYSTR &destdir, const MYSTR &linkname, LONGLONG size)
Definition: lhazshellex.cpp:131
static const TCHAR RDDDRIVE32[]
Definition: lhazshellex.h:45
bool IsRDDExtended(void)
Definition: lhazshellex.cpp:304
void CreateShortCut(HWND hWnd, int nFolder, const MYSTR &destdir, const MYSTR &destpath, const MYSTR &linkname)
Definition: lhazshellex.cpp:616