Index: src/ch/AppHelper.h =================================================================== diff -u -r3493e9fc470285b0a0b417d50be281467a071eb7 -rd2b121c78f510b5384b8ef0ca80afbfd7f77fef7 --- src/ch/AppHelper.h (.../AppHelper.h) (revision 3493e9fc470285b0a0b417d50be281467a071eb7) +++ src/ch/AppHelper.h (.../AppHelper.h) (revision d2b121c78f510b5384b8ef0ca80afbfd7f77fef7) @@ -1,3 +1,21 @@ +/*************************************************************************** +* Copyright (C) 2001-2008 by J�zef Starosczyk * +* ixen@copyhandler.com * +* * +* This program is free software; you can redistribute it and/or modify * +* it under the terms of the GNU Library General Public License * +* (version 2) as published by the Free Software Foundation; * +* * +* 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 Library General Public * +* License along with this program; if not, write to the * +* Free Software Foundation, Inc., * +* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * +***************************************************************************/ #ifndef __APPHELPER_H__ #define __APPHELPER_H__ @@ -19,6 +37,8 @@ PCTSTR GetProgramPath() const { return m_pszProgramPath; }; PCTSTR GetProgramName() const { return m_pszProgramName; }; + static bool GetProgramDataPath(CString& rStrPath); + protected: void InitProtection(); // optional call - protects from running multiple instance void RetrievePaths(); // reads program's path and name @@ -28,7 +48,6 @@ protected: HANDLE m_hMutex; bool m_bFirstInstance; // tells if it is first instance(true) or second(or third, ...) - TCHAR *m_pszMutexName; // name of the protection mutex // program placement TCHAR* m_pszProgramPath; // path from which this program was run