2010-02-26 11:43:19 +00:00
|
|
|
#pragma once
|
2007-09-26 20:00:07 +00:00
|
|
|
|
|
|
|
typedef struct _DESKDISPLAYADAPTER
|
|
|
|
{
|
|
|
|
const struct IShellPropSheetExtVtbl *lpIShellPropSheetExtVtbl;
|
|
|
|
const struct IShellExtInitVtbl *lpIShellExtInitVtbl;
|
|
|
|
const struct IClassFactoryVtbl *lpIClassFactoryVtbl;
|
|
|
|
DWORD ref;
|
|
|
|
|
2007-09-26 20:41:57 +00:00
|
|
|
HWND hwndDlg;
|
2007-09-26 20:00:07 +00:00
|
|
|
PDESK_EXT_INTERFACE DeskExtInterface;
|
|
|
|
IDataObject *pdtobj;
|
2007-09-26 20:41:57 +00:00
|
|
|
LPTSTR lpDeviceId;
|
2007-09-27 05:23:58 +00:00
|
|
|
PDEVMODEW lpSelDevMode;
|
|
|
|
PDEVMODEW lpDevModeOnInit;
|
2007-09-26 20:00:07 +00:00
|
|
|
} DESKDISPLAYADAPTER, *PDESKDISPLAYADAPTER;
|
|
|
|
|
|
|
|
extern LONG dll_refs;
|
|
|
|
|
|
|
|
#define impl_to_interface(impl,iface) (struct iface *)(&(impl)->lp##iface##Vtbl)
|
|
|
|
#define interface_to_impl(instance,iface) ((PDESKDISPLAYADAPTER)((ULONG_PTR)instance - FIELD_OFFSET(DESKDISPLAYADAPTER,lp##iface##Vtbl)))
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
IDeskDisplayAdapter_Constructor(REFIID riid,
|
|
|
|
LPVOID *ppv);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
IDeskDisplayAdapter_InitIface(PDESKDISPLAYADAPTER This);
|
|
|
|
|
|
|
|
HRESULT STDMETHODCALLTYPE
|
|
|
|
IDeskDisplayAdapter_QueryInterface(PDESKDISPLAYADAPTER This,
|
|
|
|
REFIID iid,
|
|
|
|
PVOID *pvObject);
|
|
|
|
|
|
|
|
ULONG
|
|
|
|
IDeskDisplayAdapter_AddRef(PDESKDISPLAYADAPTER This);
|
|
|
|
|
|
|
|
ULONG
|
|
|
|
IDeskDisplayAdapter_Release(PDESKDISPLAYADAPTER This);
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
IDeskDisplayAdapter_Initialize(PDESKDISPLAYADAPTER This,
|
|
|
|
LPCITEMIDLIST pidlFolder,
|
|
|
|
IDataObject *pdtobj,
|
|
|
|
HKEY hkeyProgID);
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
IDeskDisplayAdapter_AddPages(PDESKDISPLAYADAPTER This,
|
|
|
|
LPFNADDPROPSHEETPAGE pfnAddPage,
|
|
|
|
LPARAM lParam);
|
|
|
|
|
|
|
|
HRESULT
|
|
|
|
IDeskDisplayAdapter_ReplacePage(PDESKDISPLAYADAPTER This,
|
|
|
|
EXPPS uPageID,
|
|
|
|
LPFNADDPROPSHEETPAGE pfnReplacePage,
|
|
|
|
LPARAM lParam);
|
|
|
|
|
2007-09-27 05:27:23 +00:00
|
|
|
static const GUID CLSID_IDeskDisplayAdapter = {0x42071712,0x76d4,0x11d1,{0x8b,0x24,0x00,0xa0,0xc9,0x06,0x8f,0xf3}};
|
2007-09-26 20:00:07 +00:00
|
|
|
|
|
|
|
ULONG __cdecl DbgPrint(PCCH Format,...);
|