mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 11:22:58 +00:00
Fix implementation of DevicePropertiesA/W to show extended pages
svn path=/trunk/; revision=29232
This commit is contained in:
parent
1f14f9be20
commit
96186bac97
2 changed files with 5 additions and 5 deletions
|
@ -1813,10 +1813,10 @@ DevicePropertiesExW(IN HWND hWndParent OPTIONAL,
|
||||||
{
|
{
|
||||||
INT_PTR Ret = -1;
|
INT_PTR Ret = -1;
|
||||||
|
|
||||||
if (dwFlags & ~(DPF_UNKNOWN | DPF_DEVICE_STATUS_ACTION))
|
if (dwFlags & ~(DPF_EXTENDED | DPF_DEVICE_STATUS_ACTION))
|
||||||
{
|
{
|
||||||
DPRINT1("DevPropertiesExW: Invalid flags: 0x%x\n",
|
DPRINT1("DevPropertiesExW: Invalid flags: 0x%x\n",
|
||||||
dwFlags & ~(DPF_UNKNOWN | DPF_DEVICE_STATUS_ACTION));
|
dwFlags & ~(DPF_EXTENDED | DPF_DEVICE_STATUS_ACTION));
|
||||||
SetLastError(ERROR_INVALID_FLAGS);
|
SetLastError(ERROR_INVALID_FLAGS);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -1907,7 +1907,7 @@ DevicePropertiesA(HWND hWndParent,
|
||||||
return DevicePropertiesExA(hWndParent,
|
return DevicePropertiesExA(hWndParent,
|
||||||
lpMachineName,
|
lpMachineName,
|
||||||
lpDeviceID,
|
lpDeviceID,
|
||||||
0,
|
DPF_EXTENDED,
|
||||||
bShowDevMgr);
|
bShowDevMgr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1944,7 +1944,7 @@ DevicePropertiesW(HWND hWndParent,
|
||||||
return DevicePropertiesExW(hWndParent,
|
return DevicePropertiesExW(hWndParent,
|
||||||
lpMachineName,
|
lpMachineName,
|
||||||
lpDeviceID,
|
lpDeviceID,
|
||||||
0,
|
DPF_EXTENDED,
|
||||||
bShowDevMgr);
|
bShowDevMgr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,7 @@ DeviceCreateHardwarePageEx(IN HWND hWndParent,
|
||||||
IN UINT uNumberOfGuids,
|
IN UINT uNumberOfGuids,
|
||||||
IN HWPAGE_DISPLAYMODE DisplayMode);
|
IN HWPAGE_DISPLAYMODE DisplayMode);
|
||||||
|
|
||||||
#define DPF_UNKNOWN (0x1)
|
#define DPF_EXTENDED (0x1)
|
||||||
#define DPF_DEVICE_STATUS_ACTION (0x2)
|
#define DPF_DEVICE_STATUS_ACTION (0x2)
|
||||||
|
|
||||||
INT_PTR
|
INT_PTR
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue