This commit is contained in:
Igor Pavlov
2003-12-11 00:00:00 +00:00
committed by Kornel Lesiński
commit 8c1b5c7b7e
982 changed files with 118799 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
// 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