75 sizeof(szFormat) /
sizeof(szFormat[0])))
77 szFormat[0] =
TEXT(
'\0');
89 HWND hwndListAllModesDlg)
91 TCHAR szFormat[64], szBuffer[64], szColors[64], szRefreshRate[64];
101 sizeof(szFormat) /
sizeof(szFormat[0])))
103 szFormat[0] =
TEXT(
'\0');
106 lpCurrentDevMode =
This->DeskExtInterface->GetCurrentMode(
This->DeskExtInterface->Context);
110 lpDevMode =
This->DeskExtInterface->EnumAllModes(
This->DeskExtInterface->Context,
116 sizeof(szColors) /
sizeof(szColors[0]));
120 sizeof(szRefreshRate) /
sizeof(szRefreshRate[0]));
123 sizeof(szBuffer) /
sizeof(szBuffer[0]),
160 HWND hwndListAllModesDlg)
181 if (lpSelDevMode !=
NULL)
183 This->lpSelDevMode = lpSelDevMode;
248 lpPrevSel =
This->lpSelDevMode;
250 if (
This->DeskExtInterface !=
NULL &&
257 if (lpPrevSel !=
This->lpSelDevMode)
261 This->DeskExtInterface->SetCurrentMode(
This->DeskExtInterface->Context,
277 "DevicePropertiesW");
278 if (pDevicePropertiesW !=
NULL)
280 pDevicePropertiesW(
This->hwndDlg,
303 if (lpAdapterName !=
NULL)
321 *(
This->DeskExtInterface->ChipType) ?
This->DeskExtInterface->ChipType : lpNA);
324 *(
This->DeskExtInterface->DacType) ?
This->DeskExtInterface->DacType : lpNA);
327 *(
This->DeskExtInterface->MemorySize) ?
This->DeskExtInterface->MemorySize : lpNA);
330 *(
This->DeskExtInterface->AdapterString) ?
This->DeskExtInterface->AdapterString : lpNA);
333 *(
This->DeskExtInterface->BiosString) ?
This->DeskExtInterface->BiosString : lpNA);
335 This->lpDevModeOnInit =
This->DeskExtInterface->GetCurrentMode(
This->DeskExtInterface->Context);
347 This->lpSelDevMode =
This->lpDevModeOnInit;
363 This->lpDevModeOnInit =
This->DeskExtInterface->GetCurrentMode(
This->DeskExtInterface->Context);
364 This->lpSelDevMode =
This->lpDevModeOnInit;
383 This->DeskExtInterface->SetCurrentMode(
This->DeskExtInterface->Context,
384 This->lpDevModeOnInit);
406 This->hwndDlg = hwndDlg;
458 IDataObject_Release(
This->pdtobj);
514 &IID_IShellPropSheetExt) ||
532 DPRINT1(
"IDeskDisplayAdapter::QueryInterface(%p,%p): E_NOINTERFACE\n", iid, pvObject);
546 DPRINT1(
"IDeskDisplayAdapter::Initialize(%p,%p,%p)\n", pidlFolder, pdtobj, hkeyProgID);
550 IDataObject_AddRef(pdtobj);
551 This->pdtobj = pdtobj;
570 DPRINT1(
"IDeskDisplayAdapter::AddPages(%p,%p)\n", pfnAddPage,
lParam);
572 psp.dwSize =
sizeof(psp);
592 DPRINT1(
"IDeskDisplayAdapter::ReplacePage(%u,%p,%p)\n", uPageID, pfnReplacePage,
lParam);
#define InterlockedIncrement
#define InterlockedDecrement
const GUID IID_IClassFactory
#define STDMETHODCALLTYPE
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
HRESULT IDeskDisplayAdapter_Initialize(PDESKDISPLAYADAPTER This, LPCITEMIDLIST pidlFolder, IDataObject *pdtobj, HKEY hkeyProgID)
ULONG IDeskDisplayAdapter_Release(PDESKDISPLAYADAPTER This)
static INT_PTR CALLBACK DisplayAdapterDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static VOID IDeskDisplayAdapter_Destroy(PDESKDISPLAYADAPTER This)
HRESULT IDeskDisplayAdapter_Constructor(REFIID riid, LPVOID *ppv)
HRESULT STDMETHODCALLTYPE IDeskDisplayAdapter_QueryInterface(PDESKDISPLAYADAPTER This, REFIID iid, PVOID *pvObject)
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
static VOID InitDisplayAdapterDialog(PDESKDISPLAYADAPTER This)
static HINSTANCE hInstance
static VOID ShowAdapterProperties(PDESKDISPLAYADAPTER This)
static VOID InitListAllModesDialog(PDESKDISPLAYADAPTER This, HWND hwndListAllModesDlg)
static VOID GetRefreshRateDescription(PDEVMODEW lpDevMode, LPTSTR lpBuffer, DWORD dwBufferLen)
static BOOL ChangeSelectedMode(PDESKDISPLAYADAPTER This, HWND hwndListAllModesDlg)
static INT_PTR CALLBACK ListAllModesDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
INT_PTR(WINAPI * PDEVICEPROPERTIESW)(HWND, LPCWSTR, LPCWSTR, BOOL)
HRESULT IDeskDisplayAdapter_AddPages(PDESKDISPLAYADAPTER This, LPFNADDPROPSHEETPAGE pfnAddPage, LPARAM lParam)
static VOID ShowListAllModes(PDESKDISPLAYADAPTER This)
static VOID ResetDisplayAdapterChanges(PDESKDISPLAYADAPTER This)
ULONG IDeskDisplayAdapter_AddRef(PDESKDISPLAYADAPTER This)
static LONG ApplyDisplayAdapterChanges(PDESKDISPLAYADAPTER This)
static VOID GetColorDescription(PDEVMODEW lpDevMode, LPTSTR lpBuffer, DWORD dwBufferLen)
HRESULT IDeskDisplayAdapter_ReplacePage(PDESKDISPLAYADAPTER This, EXPPS uPageID, LPFNADDPROPSHEETPAGE pfnReplacePage, LPARAM lParam)
struct _DESKDISPLAYADAPTER * PDESKDISPLAYADAPTER
VOID IDeskDisplayAdapter_InitIface(PDESKDISPLAYADAPTER This)
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)
#define DESK_EXT_DISPLAYNAME
#define DESK_EXT_DISPLAYID
DECLSPEC_HIDDEN LONG dll_refs
#define IDC_ADAPTERSTRING
#define IDC_BIOSINFORMATION
#define IDC_ALLVALIDMODES
#define IDC_ADAPTERPROPERTIES
#define IDD_DISPLAYADAPTER
#define IDS_DEFREFRESHRATE
#define IDES_REFRESHRATEFMT
#define DLL_PROCESS_ATTACH
#define GetProcAddress(x, y)
#define HeapFree(x, y, z)
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
#define impl_to_interface(impl, iface)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
HLOCAL NTAPI LocalFree(HLOCAL hMem)
static IN DWORD IN LPVOID lpvReserved
static _In_ DWORD _Inout_ PDEVMODEA lpDevMode
struct _PSP * HPROPSHEETPAGE
#define PSNRET_INVALID_NOCHANGEPAGE
#define PropSheet_Changed(d, w)
#define CreatePropertySheetPage
#define PropSheet_RestartWindows(d)
BOOL(CALLBACK * LPFNADDPROPSHEETPAGE)(HPROPSHEETPAGE, LPARAM)
#define IsEqualIID(riid1, riid2)
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
struct _devicemodeW * PDEVMODEW
#define DISP_CHANGE_SUCCESSFUL
#define RegisterClipboardFormat
BOOL WINAPI SetDlgItemTextW(_In_ HWND, _In_ int, _In_ LPCWSTR)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
HWND WINAPI GetParent(_In_ HWND)
#define DISP_CHANGE_RESTART
#define SendDlgItemMessage
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)