shell32: Add a Trash virtual folder.
[wine/multimedia.git] / dlls / shell32 / xdg.h
blob90f10f72d214e3a1586a4f11cc0f257f1154eeb0
1 /*
2 * This library is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU Lesser General Public
4 * License as published by the Free Software Foundation; either
5 * version 2.1 of the License, or (at your option) any later version.
7 * This library is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * Lesser General Public License for more details.
12 * You should have received a copy of the GNU Lesser General Public
13 * License along with this library; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16 #ifndef __XDG_H__
17 #define __XDG_H__
20 * XDG directories access
22 #define XDG_DATA_HOME 0
23 #define XDG_CONFIG_HOME 1
24 #define XDG_DATA_DIRS 2
25 #define XDG_CONFIG_DIRS 3
26 #define XDG_CACHE_HOME 4
28 const char *XDG_GetPath(int path_id);
29 char *XDG_BuildPath(int root_id, const char *subpath);
30 int XDG_MakeDirs(const char *path);
32 #define XDG_URLENCODE 0x1
33 BOOL XDG_WriteDesktopStringEntry(int fd, const char *keyName, DWORD dwFlags, const char *value);
35 /* implemented in trash.c */
36 typedef struct tagTRASH_ELEMENT TRASH_ELEMENT;
38 BOOL TRASH_CanTrashFile(LPCWSTR wszPath);
39 BOOL TRASH_TrashFile(LPCWSTR wszPath);
40 HRESULT TRASH_UnpackItemID(LPCSHITEMID id, TRASH_ELEMENT *element, WIN32_FIND_DATAW *data);
41 HRESULT TRASH_EnumItems(LPITEMIDLIST **pidls, int *count);
42 void TRASH_DisposeElement(TRASH_ELEMENT *element);
45 #endif /* ndef __XDG_H__ */