mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-09 04:07:08 -06:00
48 lines
1.1 KiB
C++
Executable File
48 lines
1.1 KiB
C++
Executable File
// RegistryAssociations.h
|
|
|
|
#pragma once
|
|
|
|
#ifndef __REGISTRYASSOCIATIONS_H
|
|
#define __REGISTRYASSOCIATIONS_H
|
|
|
|
#include "Common/String.h"
|
|
#include "Common/Vector.h"
|
|
|
|
namespace NRegistryAssociations {
|
|
|
|
struct CExtInfo
|
|
{
|
|
UString Ext;
|
|
UStringVector Plugins;
|
|
// bool Enabled;
|
|
};
|
|
bool ReadInternalAssociation(const wchar_t *ext, CExtInfo &extInfo);
|
|
void ReadInternalAssociations(CObjectVector<CExtInfo> &items);
|
|
void WriteInternalAssociations(const CObjectVector<CExtInfo> &items);
|
|
|
|
bool CheckShellExtensionInfo(const CSysString &extension);
|
|
|
|
// void ReadCompressionInfo(NZipSettings::NCompression::CInfo &anInfo,
|
|
void DeleteShellExtensionInfo(const CSysString &extension);
|
|
|
|
void AddShellExtensionInfo(const CSysString &extension,
|
|
const CSysString &programTitle,
|
|
const CSysString &programOpenCommand,
|
|
const CSysString &iconPath,
|
|
const void *shellNewData, int shellNewDataSize);
|
|
|
|
|
|
///////////////////////////
|
|
// ContextMenu
|
|
/*
|
|
bool CheckContextMenuHandler();
|
|
void AddContextMenuHandler();
|
|
void DeleteContextMenuHandler();
|
|
*/
|
|
|
|
}
|
|
|
|
// bool GetProgramDirPrefix(CSysString &aFolder);
|
|
|
|
|
|
#endif |