ReactOS 0.4.16-dev-197-g92996da
CActiveDesktop.h
Go to the documentation of this file.
1/*
2 * PROJECT: shell32
3 * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
4 * PURPOSE: IActiveDesktop header
5 * COPYRIGHT: Copyright 2018 Mark Jansen (mark.jansen@reactos.org)
6 */
7
8#ifndef _CACTIVEDESKTOP_H_
9#define _CACTIVEDESKTOP_H_
10
11#undef AddDesktopItem
12
14 public CComCoClass<CActiveDesktop, &CLSID_ActiveDesktop>,
15 public CComObjectRootEx<CComMultiThreadModelNoCS>,
16 public IActiveDesktop,
17 //public IActiveDesktopP,
18 //public IADesktopP2,
19 public IPropertyBag
20{
21public:
23 virtual ~CActiveDesktop();
24
25 /*** IActiveDesktop methods ***/
27 STDMETHOD(GetWallpaper)(PWSTR pwszWallpaper, UINT cchWallpaper, DWORD dwFlags) override;
28 STDMETHOD(SetWallpaper)(PCWSTR pwszWallpaper, DWORD dwReserved) override;
29 STDMETHOD(GetWallpaperOptions)(LPWALLPAPEROPT pwpo, DWORD dwReserved) override;
30 STDMETHOD(SetWallpaperOptions)(LPCWALLPAPEROPT pwpo, DWORD dwReserved) override;
31 STDMETHOD(GetPattern)(PWSTR pwszPattern, UINT cchPattern, DWORD dwReserved) override;
32 STDMETHOD(SetPattern)(PCWSTR pwszPattern, DWORD dwReserved) override;
33 STDMETHOD(GetDesktopItemOptions)(LPCOMPONENTSOPT pco, DWORD dwReserved) override;
34 STDMETHOD(SetDesktopItemOptions)(LPCCOMPONENTSOPT pco, DWORD dwReserved) override;
35 STDMETHOD(AddDesktopItem)(LPCCOMPONENT pcomp, DWORD dwReserved) override;
36 STDMETHOD(AddDesktopItemWithUI)(HWND hwnd, LPCOMPONENT pcomp, DWORD dwReserved) override;
37 STDMETHOD(ModifyDesktopItem)(LPCCOMPONENT pcomp, DWORD dwFlags) override;
38 STDMETHOD(RemoveDesktopItem)(LPCCOMPONENT pcomp, DWORD dwReserved) override;
40 STDMETHOD(GetDesktopItem)(int nComponent, LPCOMPONENT pcomp, DWORD dwReserved) override;
41 STDMETHOD(GetDesktopItemByID)(ULONG_PTR dwID, LPCOMPONENT pcomp, DWORD dwReserved) override;
42 STDMETHOD(GenerateDesktopItemHtml)(PCWSTR pwszFileName, LPCOMPONENT pcomp, DWORD dwReserved) override;
43 STDMETHOD(AddUrl)(HWND hwnd, PCWSTR pszSource, LPCOMPONENT pcomp, DWORD dwFlags) override;
44 STDMETHOD(GetDesktopItemBySource)(PCWSTR pwszSource, LPCOMPONENT pcomp, DWORD dwReserved) override;
45
46 /*** IPropertyBag methods ***/
47 STDMETHOD(Read)(LPCOLESTR pszPropName, VARIANT *pVar, IErrorLog *pErrorLog) override;
48 STDMETHOD(Write)(LPCOLESTR pszPropName, VARIANT *pVar) override;
49
52
54
56 COM_INTERFACE_ENTRY_IID(IID_IActiveDesktop, IActiveDesktop)
57 //COM_INTERFACE_ENTRY_IID(IID_IActiveDesktopP, IActiveDesktopP)
58 //COM_INTERFACE_ENTRY_IID(IID_IADesktopP2, IADesktopP2)
61};
62
63
64#endif // _CACTIVEDESKTOP_H_
#define STDMETHOD(m)
Definition: basetyps.h:62
STDMETHOD() Write(LPCOLESTR pszPropName, VARIANT *pVar) override
STDMETHOD() GetDesktopItemOptions(LPCOMPONENTSOPT pco, DWORD dwReserved) override
virtual ~CActiveDesktop()
STDMETHOD() GenerateDesktopItemHtml(PCWSTR pwszFileName, LPCOMPONENT pcomp, DWORD dwReserved) override
STDMETHOD() AddDesktopItemWithUI(HWND hwnd, LPCOMPONENT pcomp, DWORD dwReserved) override
STDMETHOD() GetWallpaper(PWSTR pwszWallpaper, UINT cchWallpaper, DWORD dwFlags) override
STDMETHOD() SetWallpaperOptions(LPCWALLPAPEROPT pwpo, DWORD dwReserved) override
STDMETHOD() SetPattern(PCWSTR pwszPattern, DWORD dwReserved) override
STDMETHOD() GetDesktopItem(int nComponent, LPCOMPONENT pcomp, DWORD dwReserved) override
STDMETHOD() GetWallpaperOptions(LPWALLPAPEROPT pwpo, DWORD dwReserved) override
STDMETHOD() ModifyDesktopItem(LPCCOMPONENT pcomp, DWORD dwFlags) override
STDMETHOD() SetDesktopItemOptions(LPCCOMPONENTSOPT pco, DWORD dwReserved) override
STDMETHOD() GetDesktopItemBySource(PCWSTR pwszSource, LPCOMPONENT pcomp, DWORD dwReserved) override
STDMETHOD() AddUrl(HWND hwnd, PCWSTR pszSource, LPCOMPONENT pcomp, DWORD dwFlags) override
STDMETHOD() GetPattern(PWSTR pwszPattern, UINT cchPattern, DWORD dwReserved) override
STDMETHOD() SetWallpaper(PCWSTR pwszWallpaper, DWORD dwReserved) override
STDMETHOD() GetDesktopItemByID(ULONG_PTR dwID, LPCOMPONENT pcomp, DWORD dwReserved) override
STDMETHOD() ApplyChanges(DWORD dwFlags) override
STDMETHOD() RemoveDesktopItem(LPCCOMPONENT pcomp, DWORD dwReserved) override
STDMETHOD() GetDesktopItemCount(int *pcItems, DWORD dwReserved) override
unsigned long DWORD
Definition: ntddk_ex.h:95
#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 int int const SCRIPT_CONTROL const SCRIPT_STATE SCRIPT_ITEM ULONG int * pcItems
Definition: usp10.c:62
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:95
unsigned int UINT
Definition: ndis.h:50
const GUID IID_IPropertyBag
#define IDR_ACTIVEDESKTOP
Definition: shresdef.h:912
_In_ BOOLEAN Read
Definition: strmini.h:479
uint16_t * PWSTR
Definition: typedefs.h:56
const uint16_t * PCWSTR
Definition: typedefs.h:57
uint32_t ULONG_PTR
Definition: typedefs.h:65
#define AddDesktopItem
Definition: userenv.h:205
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
_In_ SURFOBJ _In_ CLIPOBJ * pco
Definition: winddi.h:3415