1 // RegistryAssociations.h 2 3 #ifndef ZIP7_INC_REGISTRY_ASSOCIATIONS_H 4 #define ZIP7_INC_REGISTRY_ASSOCIATIONS_H 5 6 #include "../../../Common/MyString.h" 7 8 namespace NRegistryAssoc { 9 10 struct CShellExtInfo 11 { 12 CSysString ProgramKey; 13 UString IconPath; 14 int IconIndex; 15 16 bool ReadFromRegistry(HKEY hkey, const CSysString &ext); 17 bool IsIt7Zip() const; 18 }; 19 20 LONG DeleteShellExtensionInfo(HKEY hkey, const CSysString &ext); 21 22 LONG AddShellExtensionInfo(HKEY hkey, 23 const CSysString &ext, 24 const UString &programTitle, 25 const UString &programOpenCommand, 26 const UString &iconPath, int iconIndex 27 // , const void *shellNewData, int shellNewDataSize 28 ); 29 } 30 31 #endif 32