1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/*
"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__
|