mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 20:36:35 +00:00
Display the display adapter properties with extended pages
svn path=/trunk/; revision=29233
This commit is contained in:
parent
96186bac97
commit
54ceb2a1f2
1 changed files with 9 additions and 10 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue