diff options
author | Jesús Corrius <jesus@softcatala.org> | 2012-05-21 12:27:36 +0200 |
---|---|---|
committer | Jesús Corrius <jesus@softcatala.org> | 2012-05-21 12:28:05 +0200 |
commit | 93a90946576202435d87e92a8a542c606baac97f (patch) | |
tree | 1a9ff6a030dd85c7f28d1dc665672162d9d3f695 /scp2/inc | |
parent | 80cbf517a671b5225c8b3033729d30f5cf721e06 (diff) |
Register Kind Names for supported file types for Windows Vista and higher
Diffstat (limited to 'scp2/inc')
-rwxr-xr-x | scp2/inc/macros.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scp2/inc/macros.inc b/scp2/inc/macros.inc index 690a21d97765..d776797cf91c 100755 --- a/scp2/inc/macros.inc +++ b/scp2/inc/macros.inc @@ -459,6 +459,16 @@ End Value = STRING(CONCAT2(LibreOffice.,name)); \ Styles = (); \ End + +#define REGISTRY_ENTRY_KINDMAP(name, modid, key) \ + RegistryItem CONCAT2(gid_Regitem_Software_Manufacturer_Productname_Productversion_Explorer_KindMap_,name) \ + ParentID = PREDEFINED_HKEY_LOCAL_MACHINE; \ + ModuleID = modid; \ + ComponentCondition = "VersionNT >= 600"; \ + Subkey = STRING(SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\KindMap); \ + Name = STRING(CONCAT2(.,key)); \ + Value = "document"; \ + End #define CONDITIONAL_REGISTER_DOC_EXTENSION(name,modid,key,cond,disp_name,icon_id,app,default,doc_type) \ CONDITIONAL_MODULE_ENTRY(name,modid) \ @@ -472,6 +482,7 @@ End REGISTRY_ENTRY_PRINT_CMD(name,modid,app) \ REGISTRY_ENTRY_PRINTTO_CMD(name,modid,app) \ REGISTRY_ENTRY_CAPABILITIES(name,modid,key,doc_type) \ + REGISTRY_ENTRY_KINDMAP(name, modid, key) \ #define CONDITIONAL_REGISTER_DOCTEMPLATE_EXTENSION(name,modid,key,cond,disp_name,icon_id,app,default,doc_type) \ CONDITIONAL_MODULE_ENTRY(name,modid) \ @@ -485,6 +496,7 @@ End REGISTRY_ENTRY_PRINT_CMD(name,modid,app) \ REGISTRY_ENTRY_PRINTTO_CMD(name,modid,app) \ REGISTRY_ENTRY_TEMPLATE_CAPABILITIES(name,modid,key,doc_type) \ + REGISTRY_ENTRY_KINDMAP(name, modid, key) \ // --------------------------------------- |