Display the display adapter properties with extended pages

svn path=/trunk/; revision=29233
This commit is contained in:
Thomas Bluemel 2007-09-27 03:08:45 +00:00
parent 96186bac97
commit 54ceb2a1f2

View file

@ -5,7 +5,7 @@
static HINSTANCE hInstance; static HINSTANCE hInstance;
typedef INT_PTR (WINAPI *PDEVICEPROPERTIESEXW)(HWND,LPCWSTR,LPCWSTR,DWORD,BOOL); typedef INT_PTR (WINAPI *PDEVICEPROPERTIESW)(HWND,LPCWSTR,LPCWSTR,BOOL);
static VOID static VOID
GetColorDescription(PDEVMODEW lpDevMode, GetColorDescription(PDEVMODEW lpDevMode,
@ -214,20 +214,19 @@ static VOID
ShowAdapterProperties(PDESKDISPLAYADAPTER This) ShowAdapterProperties(PDESKDISPLAYADAPTER This)
{ {
HMODULE hDevMgr; HMODULE hDevMgr;
PDEVICEPROPERTIESEXW pDevicePropertiesExW; PDEVICEPROPERTIESW pDevicePropertiesW;
hDevMgr = LoadLibrary(TEXT("devmgr.dll")); hDevMgr = LoadLibrary(TEXT("devmgr.dll"));
if (hDevMgr != NULL) if (hDevMgr != NULL)
{ {
pDevicePropertiesExW = (PDEVICEPROPERTIESEXW)GetProcAddress(hDevMgr, pDevicePropertiesW = (PDEVICEPROPERTIESW)GetProcAddress(hDevMgr,
"DevicePropertiesExW"); "DevicePropertiesW");
if (pDevicePropertiesExW != NULL) if (pDevicePropertiesW != NULL)
{ {
pDevicePropertiesExW(This->hwndDlg, pDevicePropertiesW(This->hwndDlg,
NULL, NULL,
This->lpDeviceId, This->lpDeviceId,
0, FALSE);
FALSE);
} }
FreeLibrary(hDevMgr); FreeLibrary(hDevMgr);