Imported Upstream version 9.20
[platform/upstream/7zip.git] / CPP / 7zip / UI / FileManager / RegistryAssociations.h
1 // RegistryAssociations.h\r
2 \r
3 #ifndef __REGISTRYASSOCIATIONS_H\r
4 #define __REGISTRYASSOCIATIONS_H\r
5 \r
6 #include "Common/MyString.h"\r
7 \r
8 namespace NRegistryAssociations {\r
9 \r
10   /*\r
11   struct CExtInfo\r
12   {\r
13     UString Ext;\r
14     UStringVector Plugins;\r
15     // bool Enabled;\r
16   };\r
17   bool ReadInternalAssociation(const wchar_t *ext, CExtInfo &extInfo);\r
18   void ReadInternalAssociations(CObjectVector<CExtInfo> &items);\r
19   void WriteInternalAssociations(const CObjectVector<CExtInfo> &items);\r
20   */\r
21 \r
22   bool CheckShellExtensionInfo(const CSysString &extension, UString &iconPath, int &iconIndex);\r
23 \r
24   // void ReadCompressionInfo(NZipSettings::NCompression::CInfo &anInfo,\r
25   void DeleteShellExtensionInfo(const CSysString &extension);\r
26 \r
27   void AddShellExtensionInfo(const CSysString &extension,\r
28       const UString &programTitle,\r
29       const UString &programOpenCommand,\r
30       const UString &iconPath, int iconIndex,\r
31       const void *shellNewData, int shellNewDataSize);\r
32 \r
33 \r
34   ///////////////////////////\r
35   // ContextMenu\r
36   /*\r
37   bool CheckContextMenuHandler();\r
38   void AddContextMenuHandler();\r
39   void DeleteContextMenuHandler();\r
40   */\r
41 \r
42 }\r
43 \r
44 // bool GetProgramDirPrefix(CSysString &aFolder);\r
45 \r
46 #endif\r