summaryrefslogtreecommitdiff
path: root/plugins/AssocMgr/src/reg.h
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-07-04 08:25:18 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-07-04 08:25:18 +0000
commit5500b21532dfe16253820b109df71f8f5d3006f7 (patch)
tree79ce32a372e080691d7e4d8b85e3230e46a7ddf1 /plugins/AssocMgr/src/reg.h
parent0624d6b4e9b82ccfaabf7a20d00c474a09354e8d (diff)
AssocMgr: changed folder structure
git-svn-id: http://svn.miranda-ng.org/main/trunk@751 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AssocMgr/src/reg.h')
-rw-r--r--plugins/AssocMgr/src/reg.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/plugins/AssocMgr/src/reg.h b/plugins/AssocMgr/src/reg.h
new file mode 100644
index 0000000000..98884a3224
--- /dev/null
+++ b/plugins/AssocMgr/src/reg.h
@@ -0,0 +1,51 @@
+/*
+
+'File Association Manager'-Plugin for Miranda IM
+
+Copyright (C) 2005-2007 H. Herkenrath
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program (AssocMgr-License.txt); if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+*/
+
+/* Backup to DB */
+void CleanupRegTreeBackupSettings(void);
+/* Class */
+BOOL AddRegClass(const char *pszClassName,const TCHAR *pszTypeDescription,const TCHAR *pszIconLoc,const TCHAR *pszAppName,const TCHAR *pszRunCmd,const TCHAR *pszDdeCmd,const TCHAR *pszDdeApp,const TCHAR *pszDdeTopic,const TCHAR *pszVerbDesc,BOOL fBrowserAutoOpen,BOOL fUrlProto,BOOL fIsShortcut);
+BOOL RemoveRegClass(const char *pszClassName);
+BOOL IsRegClass(const char *pszClassName,const TCHAR *pszRunCmd);
+HICON LoadRegClassSmallIcon(const char *pszClassName);
+/* Extension */
+BOOL AddRegFileExt(const char *pszFileExt,const char *pszClassName,const char *pszMimeType,BOOL fIsText);
+void RemoveRegFileExt(const char *pszFileExt,const char *pszClassName);
+BOOL IsRegFileExt(const char *pszFileExt,const char *pszClassName);
+/* Mime Type */
+BOOL AddRegMimeType(const char *pszMimeType,const char *pszFileExt,const TCHAR *pszDescription);
+void RemoveRegMimeType(const char *pszMimeType,const char *pszFileExt);
+/* Open-With App */
+void AddRegOpenWith(const TCHAR *pszAppFileName,BOOL fAllowOpenWith,const TCHAR *pszAppName,const TCHAR *pszIconLoc,const TCHAR *pszRunCmd,const TCHAR *pszDdeCmd,const TCHAR *pszDdeApp,const TCHAR *pszDdeTopic);
+void RemoveRegOpenWith(const TCHAR *pszAppFileName);
+void AddRegOpenWithExtEntry(const TCHAR *pszAppFileName,const char *pszFileExt,const TCHAR *pszFileDesc);
+void RemoveRegOpenWithExtEntry(const TCHAR *pszAppFileName,const char *pszFileExt);
+/* Autostart */
+BOOL AddRegRunEntry(const TCHAR *pszAppName,const TCHAR *pszRunCmd);
+BOOL RemoveRegRunEntry(const TCHAR *pszAppName,const TCHAR *pszRunCmd);
+BOOL IsRegRunEntry(const TCHAR *pszAppName,const TCHAR *pszRunCmd);
+
+/* Strings */
+char *MakeFileClassName(const char *pszFileExt);
+char *MakeUrlClassName(const char *pszUrl);
+TCHAR *MakeRunCommand(BOOL fMirExe,BOOL fFixedDbProfile);
+TCHAR *MakeIconLocation(HMODULE hModule,WORD nIconResID);
+TCHAR *MakeAppFileName(BOOL fMirExe); \ No newline at end of file