[ATL] Add CHAIN_MSG_MAP macro
[reactos.git] / sdk / include / reactos / comctl32_undoc.h
1 /*
2 * ReactOS undocumented shell interface
3 *
4 * Copyright 2009 Andrew Hill <ash77 at domain reactos.org>
5 * Copyright 2013 Dominik Hornung
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
21
22 #ifndef __COMCTL32_UNDOC__H
23 #define __COMCTL32_UNDOC__H
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif /* defined(__cplusplus) */
28
29 typedef struct tagCREATEMRULISTA
30 {
31 DWORD cbSize;
32 DWORD nMaxItems;
33 DWORD dwFlags;
34 HKEY hKey;
35 LPCSTR lpszSubKey;
36 PROC lpfnCompare;
37 } CREATEMRULISTA, *LPCREATEMRULISTA;
38 typedef struct tagCREATEMRULISTW
39 {
40 DWORD cbSize;
41 DWORD nMaxItems;
42 DWORD dwFlags;
43 HKEY hKey;
44 LPCWSTR lpszSubKey;
45 PROC lpfnCompare;
46 } CREATEMRULISTW, *LPCREATEMRULISTW;
47
48 #define MRU_STRING 0x0
49 #define MRU_BINARY 0x1
50 #define MRU_CACHEWRITE 0x2
51
52 HANDLE WINAPI CreateMRUListW(LPCREATEMRULISTW);
53 HANDLE WINAPI CreateMRUListA(LPCREATEMRULISTA);
54 INT WINAPI AddMRUData(HANDLE,LPCVOID,DWORD);
55 INT WINAPI FindMRUData(HANDLE,LPCVOID,DWORD,LPINT);
56 VOID WINAPI FreeMRUList(HANDLE);
57
58 INT WINAPI AddMRUStringW(HANDLE hList, LPCWSTR lpszString);
59 INT WINAPI AddMRUStringA(HANDLE hList, LPCSTR lpszString);
60 BOOL WINAPI DelMRUString(HANDLE hList, INT nItemPos);
61 INT WINAPI FindMRUStringW(HANDLE hList, LPCWSTR lpszString, LPINT lpRegNum);
62 INT WINAPI FindMRUStringA(HANDLE hList, LPCSTR lpszString, LPINT lpRegNum);
63 HANDLE WINAPI CreateMRUListLazyW(const CREATEMRULISTW *lpcml, DWORD dwParam2,
64 DWORD dwParam3, DWORD dwParam4);
65 HANDLE WINAPI CreateMRUListLazyA(const CREATEMRULISTA *lpcml, DWORD dwParam2,
66 DWORD dwParam3, DWORD dwParam4);
67 INT WINAPI EnumMRUListW(HANDLE hList, INT nItemPos, LPVOID lpBuffer,
68 DWORD nBufferSize);
69 INT WINAPI EnumMRUListA(HANDLE hList, INT nItemPos, LPVOID lpBuffer,
70 DWORD nBufferSize);
71
72 #ifdef UNICODE
73 typedef CREATEMRULISTW CREATEMRULIST, *PCREATEMRULIST;
74 #define CreateMRUList CreateMRUListW
75 #else
76 typedef CREATEMRULISTA CREATEMRULIST, *PCREATEMRULIST;
77 #define CreateMRUList CreateMRUListA
78 #endif
79
80 #ifdef __cplusplus
81 } /* extern "C" */
82 #endif /* defined(__cplusplus) */
83
84 #endif // __COMCTL32_UNDOC__H