ReactOS 0.4.15-dev-8207-gd73a838
globalfoldersettings.h
Go to the documentation of this file.
1/*
2 * ReactOS Explorer
3 *
4 * Copyright 2009 Andrew Hill <ash77@reactos.org>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library 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 GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21#pragma once
22
23struct SBFOLDERSETTINGS // Private version of DEFFOLDERSETTINGS used by CShellBrowser
24{
26
27 enum { DEF_FVM = FVM_DETAILS }; // Windows uses FVM_ICON?
30 {
33 }
34 void Load();
35};
36
38 public CComCoClass<CGlobalFolderSettings, &CLSID_GlobalFolderSettings>,
39 public CComObjectRootEx<CComMultiThreadModelNoCS>,
40 public IGlobalFolderSettings
41{
42private:
43public:
46
49 static HRESULT Load(DEFFOLDERSETTINGS &dfs);
50 static HRESULT Save(const DEFFOLDERSETTINGS *pFDS);
51
52 // *** IGlobalFolderSettings methods ***
53 STDMETHOD(Get)(struct DEFFOLDERSETTINGS *pFDS, UINT cb) override;
54 STDMETHOD(Set)(const struct DEFFOLDERSETTINGS *pFDS, UINT cb, UINT unknown) override;
55
58
60
62 COM_INTERFACE_ENTRY_IID(IID_IGlobalFolderSettings, IGlobalFolderSettings)
64};
#define STDMETHOD(m)
Definition: basetyps.h:62
static HRESULT ResetBrowserSettings()
static HRESULT Load(DEFFOLDERSETTINGS &dfs)
STDMETHOD() Get(struct DEFFOLDERSETTINGS *pFDS, UINT cb) override
static HRESULT Save(const DEFFOLDERSETTINGS *pFDS)
static HRESULT SaveBrowserSettings(const SBFOLDERSETTINGS &sbfs)
#define IDR_GLOBALFOLDERSETTINGS
Definition: resource.h:99
static WCHAR unknown[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1605
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:581
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:601
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:679
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:651
#define DECLARE_REGISTRY_RESOURCEID(x)
Definition: atlcom.h:645
#define END_COM_MAP()
Definition: atlcom.h:592
static HMODULE MODULEINFO DWORD cb
Definition: module.c:33
unsigned int UINT
Definition: ndis.h:50
static BOOL Set
Definition: pageheap.c:10
@ FWF_NOHEADERINALLVIEWS
Definition: shobjidl.idl:665
@ FVM_DETAILS
Definition: shobjidl.idl:682
FOLDERSETTINGS FolderSettings