/* "Spam Filter"-Plugin for Miranda IM Copyright 2003-2006 Heiko 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 ("SpamFilter-License.txt"); if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef SF_PATH_H__ #define SF_PATH_H__ 1 // -- Defines // PMakePathPretty() and PMakePathUsable() #define PC_ENVIRONMENTSTRINGS 0x00000001 #define PC_ABSOLUTERELATIVE 0x00000002 #define PC_ALLOW_WILDCARDS 0x00000004 // ConstructLocalPath(): // (Reusing CSIDLs that are virtual folders) #define CSIDL_EXT_EXECUTABLE CSIDL_DESKTOP #define CSIDL_EXT_MODULE CSIDL_DRIVES #define CSIDL_EXT_TEMP CSIDL_PRINTERS #define CSIDL_EXT_CURRENT CSIDL_CONTROLS #define CSIDL_EXT_MIRANDAPROFILE CSIDL_INTERNET // -- Prototypes BOOL PConstructLocalPath(WCHAR* pszReturn, int nMainFolder, const WCHAR* pszSubFolders, const WCHAR* pszFileName, const WCHAR* pszOptFileExtension); BOOL PPreparePathForWrite(HWND hwndDlg, const WCHAR* pszPath, BOOL bAskDirCreate, BOOL bContainsFileName); BOOL PIsValidFile(const WCHAR* pszFileName, const WCHAR* aszFileExtensions[], int nFileExtensions, const WCHAR* aszContentTypes[], int nContentTypes); void PMakePathPretty(WCHAR* pszPath, DWORD dwFlags); DWORD PMakePathUsable(WCHAR* pszPath); BOOL PInstallFile(const WCHAR* pszFileName, const WCHAR* pszDestDir); BOOL PInstallDLLFile(const WCHAR* pszFileName, BOOL bIgnoreLanguage, BOOL bIgnoreOpSystem); #endif // SF_PATH_H__