*** empty log message ***
[desktopswitcher.git] / mru.h
blob33cad5759e7432c2eae14fe11e65f4cfeee5df38
1 // $Id: mru.h,v 1.1 2002/05/29 22:06:50 nedko Exp $
2 //
3 // Desktop Switcher
4 // Copyright (C) 2000,2001,2002 Nedko Arnaudov <nedko@users.sourceforge.net>
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #ifndef MRU_H__fa247b99_e1f7_4216_a9e6_16b96fd237a7__INCLUDED
21 #define MRU_H__fa247b99_e1f7_4216_a9e6_16b96fd237a7__INCLUDED
23 class CMRUList
25 public:
26 CMRUList(unsigned int nMaxEntries, LPCTSTR psz_HKCU_MRUKey, HRESULT& rhr);
27 ~CMRUList();
28 HRESULT Init();
29 HRESULT Add(LPCTSTR pszEntry);
30 unsigned int GetCount();
31 LPCTSTR GetEntry(unsigned int nIndex);
33 private:
34 HRESULT WriteToRegistry();
36 LPTSTR *m_ppszList;
37 unsigned int m_nCount;
38 unsigned int m_nMaxEntries;
39 HKEY m_hKey;
42 #endif // #ifndef MRU_H__fa247b99_e1f7_4216_a9e6_16b96fd237a7__INCLUDED