4#define DESK_EXT_CALLBACK CALLBACK
6#define DESK_EXT_EXTINTERFACE TEXT("Desk.cpl extension interface")
7#define DESK_EXT_PRUNINGMODE TEXT("Pruning Mode")
8#define DESK_EXT_DISPLAYDEVICE TEXT("Display Device")
9#define DESK_EXT_DISPLAYNAME TEXT("Display Name")
10#define DESK_EXT_DISPLAYID TEXT("Display ID")
11#define DESK_EXT_DISPLAYKEY TEXT("Display Key")
12#define DESK_EXT_DISPLAYSTATEFLAGS TEXT("Display State Flags")
13#define DESK_EXT_MONITORNAME TEXT("Monitor Name")
14#define DESK_EXT_MONITORDEVICE TEXT("Monitor Device")
56 fetc.dwAspect = DVASPECT_CONTENT;
58 fetc.tymed = TYMED_HGLOBAL;
60 if (
SUCCEEDED(IDataObject_GetData(pdo, &fetc, &medium)) && medium.hGlobal !=
NULL)
65 if (pRecvBuffer->
cbSize ==
sizeof(*pRecvBuffer))
68 if (pExtIface !=
NULL)
72 sizeof(*pRecvBuffer));
92 fetc.cfFormat = (CLIPFORMAT)cfFormat;
94 fetc.dwAspect = DVASPECT_CONTENT;
96 fetc.tymed = TYMED_HGLOBAL;
98 if (
SUCCEEDED(IDataObject_GetData(pdo, &fetc, &medium)) && medium.hGlobal !=
NULL)
108 wcscpy(lpStr, lpRecvBuffer);
127 PDISPLAYSAVESETTINGS pDisplaySaveSettings;
133 if (hModDeskCpl !=
NULL)
135 pDisplaySaveSettings = (PDISPLAYSAVESETTINGS)
GetProcAddress(hModDeskCpl,
136 "DisplaySaveSettings");
137 if (pDisplaySaveSettings !=
NULL)
139 lRet = pDisplaySaveSettings(DeskExtInterface->
Context,
struct _DESK_EXT_INTERFACE DESK_EXT_INTERFACE
#define DESK_EXT_CALLBACK
static __inline LONG DeskCplExtDisplaySaveSettings(PDESK_EXT_INTERFACE DeskExtInterface, HWND hwndDlg)
static __inline PDESK_EXT_INTERFACE QueryDeskCplExtInterface(IDataObject *pdo)
static __inline LPTSTR QueryDeskCplString(IDataObject *pdo, UINT cfFormat)
struct _DESK_EXT_INTERFACE * PDESK_EXT_INTERFACE
VOID(DESK_EXT_CALLBACK * PDESK_EXT_SETPRUNINGMODE)(PVOID Context, BOOL PruningOn)
VOID(DESK_EXT_CALLBACK * PDESK_EXT_GETPRUNINGMODE)(PVOID Context, PBOOL pbModesPruned, PBOOL pbKeyIsReadOnly, PBOOL pbPruningOn)
PDEVMODEW(DESK_EXT_CALLBACK * PDESK_EXT_ENUMALLMODES)(PVOID Context, DWORD Index)
BOOL(DESK_EXT_CALLBACK * PDESK_EXT_SETCURRENTMODE)(PVOID Context, DEVMODEW *pDevMode)
PDEVMODEW(DESK_EXT_CALLBACK * PDESK_EXT_GETCURRENTMODE)(PVOID Context)
#define DESK_EXT_EXTINTERFACE
LONG WINAPI DisplaySaveSettings(PVOID pContext, HWND hwndPropSheet)
#define GetProcAddress(x, y)
#define WideCharToMultiByte
void WINAPI ReleaseStgMedium(STGMEDIUM *pmedium)
LPVOID NTAPI GlobalLock(HGLOBAL hMem)
BOOL NTAPI GlobalUnlock(HGLOBAL hMem)
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
PDESK_EXT_GETCURRENTMODE GetCurrentMode
PDESK_EXT_SETCURRENTMODE SetCurrentMode
PDESK_EXT_SETPRUNINGMODE SetPruningMode
PDESK_EXT_ENUMALLMODES EnumAllModes
PDESK_EXT_GETPRUNINGMODE GetPruningMode
_In_ WDFCOLLECTION _In_ ULONG Index
struct _devicemodeW * PDEVMODEW
#define RegisterClipboardFormat
#define DISP_CHANGE_BADPARAM