mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 07:14:55 -06:00
32 lines
702 B
C++
Executable File
32 lines
702 B
C++
Executable File
// RegistryAssociations.h
|
|
|
|
#ifndef ZIP7_INC_REGISTRY_ASSOCIATIONS_H
|
|
#define ZIP7_INC_REGISTRY_ASSOCIATIONS_H
|
|
|
|
#include "../../../Common/MyString.h"
|
|
|
|
namespace NRegistryAssoc {
|
|
|
|
struct CShellExtInfo
|
|
{
|
|
CSysString ProgramKey;
|
|
UString IconPath;
|
|
int IconIndex;
|
|
|
|
bool ReadFromRegistry(HKEY hkey, const CSysString &ext);
|
|
bool IsIt7Zip() const;
|
|
};
|
|
|
|
LONG DeleteShellExtensionInfo(HKEY hkey, const CSysString &ext);
|
|
|
|
LONG AddShellExtensionInfo(HKEY hkey,
|
|
const CSysString &ext,
|
|
const UString &programTitle,
|
|
const UString &programOpenCommand,
|
|
const UString &iconPath, int iconIndex
|
|
// , const void *shellNewData, int shellNewDataSize
|
|
);
|
|
}
|
|
|
|
#endif
|