mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:23:01 +00:00
[PSDK] Add a minimal IActiveDesktop definition
CORE-15424
This commit is contained in:
parent
3ba51dc218
commit
570b7655ab
3 changed files with 120 additions and 4 deletions
|
@ -110,6 +110,14 @@ DEFINE_GUID(CLSID_ACLCustomMRU, 0x6935db93, 0x21e8, 0x4ccc, 0xbe, 0xb9, 0x9f,
|
|||
|
||||
#endif /* NO_SHDOCVW_GUIDS */
|
||||
|
||||
|
||||
DEFINE_GUID(CLSID_ActiveDesktop, 0x75048700, 0xef1f, 0x11d0, 0x98, 0x88, 0x00, 0x60, 0x97, 0xde, 0xac, 0xf9);
|
||||
DEFINE_GUID(IID_IActiveDesktop, 0xf490eb00, 0x1240, 0x11d1, 0x98, 0x88, 0x00, 0x60, 0x97, 0xde, 0xac, 0xf9);
|
||||
DEFINE_GUID(IID_IActiveDesktopP, 0x52502ee0, 0xec80, 0x11d0, 0x89, 0xab, 0x00, 0xc0, 0x4f, 0xc2, 0x97, 0x2d);
|
||||
DEFINE_GUID(IID_IADesktopP2, 0xb22754e2, 0x4574, 0x11d1, 0x98, 0x88, 0x0, 0x60, 0x97, 0xde, 0xac, 0xf9);
|
||||
|
||||
|
||||
|
||||
DEFINE_GUID(SID_STopWindow, 0x49e1b500, 0x4636, 0x11d3, 0x97, 0xf7, 0x00, 0xc0, 0x4f, 0x45, 0xd0, 0xb3);
|
||||
DEFINE_GUID(SID_SCommDlgBrowser, 0x80f30233, 0xb7df, 0x11d2, 0xa3, 0x3b, 0x00, 0x60, 0x97, 0xdf, 0x5b, 0xd4);
|
||||
|
||||
|
|
|
@ -959,6 +959,118 @@ DECLARE_INTERFACE_(IDeskBarClient,IOleWindow)
|
|||
#define DBC_SHOWOBSCURE 2
|
||||
|
||||
|
||||
/* As indicated by the documentation for IActiveDesktop,
|
||||
you must include wininet.h before shlobj.h */
|
||||
#ifdef _WINE_WININET_H_
|
||||
|
||||
|
||||
/* Structs are taken from msdn, and not verified!
|
||||
Only stuff needed to make it compile are here, no flags or anything */
|
||||
|
||||
typedef struct _tagWALLPAPEROPT
|
||||
{
|
||||
DWORD dwSize;
|
||||
DWORD dwStyle;
|
||||
} WALLPAPEROPT;
|
||||
|
||||
typedef WALLPAPEROPT *LPWALLPAPEROPT;
|
||||
typedef const WALLPAPEROPT *LPCWALLPAPEROPT;
|
||||
|
||||
typedef struct _tagCOMPONENTSOPT
|
||||
{
|
||||
DWORD dwSize;
|
||||
BOOL fEnableComponents;
|
||||
BOOL fActiveDesktop;
|
||||
} COMPONENTSOPT;
|
||||
|
||||
typedef COMPONENTSOPT *LPCOMPONENTSOPT;
|
||||
typedef const COMPONENTSOPT *LPCCOMPONENTSOPT;
|
||||
|
||||
|
||||
typedef struct _tagCOMPPOS
|
||||
{
|
||||
DWORD dwSize;
|
||||
int iLeft;
|
||||
int iTop;
|
||||
DWORD dwWidth;
|
||||
DWORD dwHeight;
|
||||
int izIndex;
|
||||
BOOL fCanResize;
|
||||
BOOL fCanResizeX;
|
||||
BOOL fCanResizeY;
|
||||
int iPreferredLeftPercent;
|
||||
int iPreferredTopPercent;
|
||||
} COMPPOS;
|
||||
|
||||
typedef struct _tagCOMPSTATEINFO
|
||||
{
|
||||
DWORD dwSize;
|
||||
int iLeft;
|
||||
int iTop;
|
||||
DWORD dwWidth;
|
||||
DWORD dwHeight;
|
||||
DWORD dwItemState;
|
||||
} COMPSTATEINFO;
|
||||
|
||||
typedef struct _tagCOMPONENT
|
||||
{
|
||||
DWORD dwSize;
|
||||
DWORD dwID;
|
||||
int iComponentType;
|
||||
BOOL fChecked;
|
||||
BOOL fDirty;
|
||||
BOOL fNoScroll;
|
||||
COMPPOS cpPos;
|
||||
WCHAR wszFriendlyName[MAX_PATH];
|
||||
WCHAR wszSource[INTERNET_MAX_URL_LENGTH];
|
||||
WCHAR wszSubscribedURL[INTERNET_MAX_URL_LENGTH];
|
||||
DWORD dwCurItemState;
|
||||
COMPSTATEINFO csiOriginal;
|
||||
COMPSTATEINFO csiRestored;
|
||||
} COMPONENT;
|
||||
|
||||
typedef COMPONENT *LPCOMPONENT;
|
||||
typedef const COMPONENT *LPCCOMPONENT;
|
||||
|
||||
#pragma push_macro("AddDesktopItem")
|
||||
#undef AddDesktopItem
|
||||
|
||||
/* IDeskBarClient interface */
|
||||
#define INTERFACE IActiveDesktop
|
||||
DECLARE_INTERFACE_(IActiveDesktop, IUnknown)
|
||||
{
|
||||
/*** IUnknown methods ***/
|
||||
STDMETHOD(QueryInterface) (THIS_ _In_ REFIID riid, _Outptr_ void **ppv) PURE;
|
||||
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
||||
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
||||
|
||||
/*** IActiveDesktop methods ***/
|
||||
STDMETHOD(ApplyChanges)(THIS_ DWORD dwFlags) PURE;
|
||||
STDMETHOD(GetWallpaper)(THIS_ PWSTR pwszWallpaper, UINT cchWallpaper, DWORD dwFlags) PURE;
|
||||
STDMETHOD(SetWallpaper)(THIS_ PCWSTR pwszWallpaper, DWORD dwReserved) PURE;
|
||||
STDMETHOD(GetWallpaperOptions)(THIS_ LPWALLPAPEROPT pwpo, DWORD dwReserved) PURE;
|
||||
STDMETHOD(SetWallpaperOptions)(THIS_ LPCWALLPAPEROPT pwpo, DWORD dwReserved) PURE;
|
||||
STDMETHOD(GetPattern)(THIS_ PWSTR pwszPattern, UINT cchPattern, DWORD dwReserved) PURE;
|
||||
STDMETHOD(SetPattern)(THIS_ PCWSTR pwszPattern, DWORD dwReserved) PURE;
|
||||
STDMETHOD(GetDesktopItemOptions)(THIS_ LPCOMPONENTSOPT pco, DWORD dwReserved) PURE;
|
||||
STDMETHOD(SetDesktopItemOptions)(THIS_ LPCCOMPONENTSOPT pco, DWORD dwReserved) PURE;
|
||||
STDMETHOD(AddDesktopItem)(THIS_ LPCCOMPONENT pcomp, DWORD dwReserved) PURE;
|
||||
STDMETHOD(AddDesktopItemWithUI)(THIS_ HWND hwnd, LPCOMPONENT pcomp, DWORD dwReserved) PURE;
|
||||
STDMETHOD(ModifyDesktopItem)(THIS_ LPCCOMPONENT pcomp, DWORD dwFlags) PURE;
|
||||
STDMETHOD(RemoveDesktopItem)(THIS_ LPCCOMPONENT pcomp, DWORD dwReserved) PURE;
|
||||
STDMETHOD(GetDesktopItemCount)(THIS_ int *pcItems, DWORD dwReserved) PURE;
|
||||
STDMETHOD(GetDesktopItem)(THIS_ int nComponent, LPCOMPONENT pcomp, DWORD dwReserved) PURE;
|
||||
STDMETHOD(GetDesktopItemByID)(THIS_ ULONG_PTR dwID, LPCOMPONENT pcomp, DWORD dwReserved) PURE;
|
||||
STDMETHOD(GenerateDesktopItemHtml)(THIS_ PCWSTR pwszFileName, LPCOMPONENT pcomp, DWORD dwReserved) PURE;
|
||||
STDMETHOD(AddUrl)(THIS_ HWND hwnd, PCWSTR pszSource, LPCOMPONENT pcomp, DWORD dwFlags) PURE;
|
||||
STDMETHOD(GetDesktopItemBySource)(THIS_ PCWSTR pwszSource, LPCOMPONENT pcomp, DWORD dwReserved) PURE;
|
||||
};
|
||||
#undef INTERFACE
|
||||
|
||||
#pragma pop_macro("AddDesktopItem")
|
||||
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* SHAddToRecentDocs API
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue