ReactOS  0.4.14-dev-614-gbfd8a84
ACLCustomMRU.h
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS browseui
3  * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4  * PURPOSE: Custom MRU AutoComplete List
5  * COPYRIGHT: Copyright 2017 Mark Jansen (mark.jansen@reactos.org)
6  */
7 
8 #pragma once
9 
11  public CComCoClass<CACLCustomMRU, &CLSID_ACLCustomMRU>,
12  public CComObjectRootEx<CComMultiThreadModelNoCS>,
13  public IACLCustomMRU
14 {
15 private:
16  CRegKey m_Key;
19  bool m_bDirty;
20 
21  void PersistMRU();
22 
23 public:
24  CACLCustomMRU();
26 
27  // *** IACLCustomMRU methods ***
28  virtual HRESULT STDMETHODCALLTYPE Initialize(LPCWSTR pwszMRURegKey, DWORD dwMax);
29  virtual HRESULT STDMETHODCALLTYPE AddMRUString(LPCWSTR pwszEntry);
30 
31 public:
32 
35 
37 
39  COM_INTERFACE_ENTRY_IID(IID_IACLCustomMRU, IACLCustomMRU)
40  END_COM_MAP()
41 };
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:611
CSimpleArray< CStringW > m_MRUData
Definition: ACLCustomMRU.h:18
#define IDR_ACLCUSTOMMRU
Definition: resource.h:106
virtual HRESULT STDMETHODCALLTYPE Initialize(LPCWSTR pwszMRURegKey, DWORD dwMax)
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:541
LONG HRESULT
Definition: typedefs.h:77
#define STDMETHODCALLTYPE
Definition: bdasup.h:9
unsigned long DWORD
Definition: ntddk_ex.h:95
virtual HRESULT STDMETHODCALLTYPE AddMRUString(LPCWSTR pwszEntry)
#define DECLARE_REGISTRY_RESOURCEID(x)
Definition: atlcom.h:605
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:561
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:639
CAtlStringW CStringW
Definition: atlstr.h:130
#define END_COM_MAP()
Definition: atlcom.h:552
CRegKey m_Key
Definition: ACLCustomMRU.h:16
CStringW m_MRUList
Definition: ACLCustomMRU.h:17