ReactOS 0.4.15-dev-7712-gbbbcd8e
regfolder.h
Go to the documentation of this file.
1/*
2 * PROJECT: NT Object Namespace shell extension
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * PURPOSE: System Registry folder class header
5 * COPYRIGHT: Copyright 2015-2017 David Quintana <gigaherz@gmail.com>
6 */
7
8#pragma once
9
10extern const GUID CLSID_RegistryFolder;
11
13 public CComObjectRootEx<CComMultiThreadModelNoCS>,
14 public IExtractIconW
15{
18
19public:
21
23
25
28 LPWSTR szIconFile,
30 INT *piIndex,
31 UINT *pwFlags);
32
34 LPCWSTR pszFile,
35 UINT nIconIndex,
36 HICON *phiconLarge,
37 HICON *phiconSmall,
38 UINT nIconSize);
39
42
44 COM_INTERFACE_ENTRY_IID(IID_IExtractIconW, IExtractIconW)
46
47};
48
50 public CComCoClass<CRegistryFolder, &CLSID_RegistryFolder>,
52{
54
55public:
57
59 virtual ~CRegistryFolder();
60
61 // IShellFolder
63 HWND hwndOwner,
64 SHCONTF grfFlags,
65 IEnumIDList **ppenumIDList);
66
67protected:
68 virtual HRESULT STDMETHODCALLTYPE InternalBindToObject(
69 PWSTR path,
70 const RegPidlEntry * info,
72 LPCITEMIDLIST rest,
73 LPITEMIDLIST fullPidl,
74 LPBC pbcReserved,
75 IShellFolder** ppsfChild);
76
77public:
78 virtual HRESULT STDMETHODCALLTYPE GetDefaultColumnState(
79 UINT iColumn,
80 SHCOLSTATEF *pcsFlags);
81
82 virtual HRESULT STDMETHODCALLTYPE GetDetailsEx(
83 LPCITEMIDLIST pidl,
84 const SHCOLUMNID *pscid,
85 VARIANT *pv);
86
87 virtual HRESULT STDMETHODCALLTYPE GetDetailsOf(
88 LPCITEMIDLIST pidl,
89 UINT iColumn,
90 SHELLDETAILS *psd);
91
92 virtual HRESULT STDMETHODCALLTYPE MapColumnToSCID(
93 UINT iColumn,
94 SHCOLUMNID *pscid);
95
96 // IPersistFolder
98
99 // Internal
101
102protected:
103 virtual HRESULT STDMETHODCALLTYPE CompareIDs(LPARAM lParam, const RegPidlEntry * first, const RegPidlEntry * second);
104 virtual ULONG STDMETHODCALLTYPE ConvertAttributes(const RegPidlEntry * entry, PULONG inMask);
105 virtual BOOL STDMETHODCALLTYPE IsFolder(const RegPidlEntry * info);
106
107 virtual HRESULT GetInfoFromPidl(LPCITEMIDLIST pcidl, const RegPidlEntry ** pentry);
108
109 HRESULT FormatValueData(DWORD contentType, PVOID td, DWORD contentsLength, PCWSTR * strContents);
110
111 HRESULT FormatContentsForDisplay(const RegPidlEntry * info, HKEY rootKey, LPCWSTR ntPath, PCWSTR * strContents);
112};
UINT cchMax
const WCHAR * class
Definition: main.c:68
#define STDMETHODCALLTYPE
Definition: bdasup.h:9
PCITEMID_CHILD m_pcidlChild
Definition: regfolder.h:17
virtual HRESULT STDMETHODCALLTYPE GetIconLocation(UINT uFlags, LPWSTR szIconFile, UINT cchMax, INT *piIndex, UINT *pwFlags)
Definition: regfolder.cpp:50
virtual HRESULT STDMETHODCALLTYPE Extract(LPCWSTR pszFile, UINT nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIconSize)
Definition: regfolder.cpp:88
virtual ~CRegistryFolderExtractIcon()
Definition: regfolder.cpp:33
PCIDLIST_ABSOLUTE m_pcidlFolder
Definition: regfolder.h:16
LPARAM lParam
Definition: combotst.c:139
#define IDR_REGISTRYFOLDER
Definition: resource.h:18
UINT uFlags
Definition: api.c:59
r parent
Definition: btrfs.c:3010
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
const GLint * first
Definition: glext.h:5794
DWORD SHCONTF
Definition: shobjidl.idl:187
uint32_t entry
Definition: isohybrid.c:63
#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 HICON
Definition: imagelist.c:84
static HTREEITEM hRoot
Definition: treeview.c:381
unsigned int UINT
Definition: ndis.h:50
interface IBindCtx * LPBC
Definition: objfwd.h:18
const GUID CLSID_RegistryFolder
Definition: regfolder.cpp:11
ITEMIDLIST UNALIGNED * LPITEMIDLIST
Definition: shtypes.idl:41
const PCUITEMID_CHILD * PCUITEMID_CHILD_ARRAY
Definition: shtypes.idl:71
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
Definition: shtypes.idl:42
DWORD SHCOLSTATEF
Definition: shtypes.idl:142
uint16_t * PWSTR
Definition: typedefs.h:56
uint32_t * PULONG
Definition: typedefs.h:59
const uint16_t * PCWSTR
Definition: typedefs.h:57
int32_t INT
Definition: typedefs.h:58
uint32_t ULONG
Definition: typedefs.h:59
LONG_PTR LPARAM
Definition: windef.h:208
int WINAPI EnumObjects(_In_ HDC, _In_ int, _In_ GOBJENUMPROC, _In_ LPARAM)
static void Initialize()
Definition: xlate.c:212
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185