mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 12:08:55 +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;
|
||||
|
||||
typedef INT_PTR (WINAPI *PDEVICEPROPERTIESEXW)(HWND,LPCWSTR,LPCWSTR,DWORD,BOOL);
|
||||
typedef INT_PTR (WINAPI *PDEVICEPROPERTIESW)(HWND,LPCWSTR,LPCWSTR,BOOL);
|
||||
|
||||
static VOID
|
||||
GetColorDescription(PDEVMODEW lpDevMode,
|
||||
|
@ -214,20 +214,19 @@ static VOID
|
|||
ShowAdapterProperties(PDESKDISPLAYADAPTER This)
|
||||
{
|
||||
HMODULE hDevMgr;
|
||||
PDEVICEPROPERTIESEXW pDevicePropertiesExW;
|
||||
PDEVICEPROPERTIESW pDevicePropertiesW;
|
||||
|
||||
hDevMgr = LoadLibrary(TEXT("devmgr.dll"));
|
||||
if (hDevMgr != NULL)
|
||||
{
|
||||
pDevicePropertiesExW = (PDEVICEPROPERTIESEXW)GetProcAddress(hDevMgr,
|
||||
"DevicePropertiesExW");
|
||||
if (pDevicePropertiesExW != NULL)
|
||||
pDevicePropertiesW = (PDEVICEPROPERTIESW)GetProcAddress(hDevMgr,
|
||||
"DevicePropertiesW");
|
||||
if (pDevicePropertiesW != NULL)
|
||||
{
|
||||
pDevicePropertiesExW(This->hwndDlg,
|
||||
NULL,
|
||||
This->lpDeviceId,
|
||||
0,
|
||||
FALSE);
|
||||
pDevicePropertiesW(This->hwndDlg,
|
||||
NULL,
|
||||
This->lpDeviceId,
|
||||
FALSE);
|
||||
}
|
||||
|
||||
FreeLibrary(hDevMgr);
|
||||
|
|
Loading…
Reference in a new issue