winemac.drv: Register GUID_DEVINTERFACE_MONITOR interface for monitors.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5a804af79b
commit
0ed105fb00
|
@ -1715,6 +1715,13 @@ static BOOL macdrv_init_monitor(HDEVINFO devinfo, const struct macdrv_monitor *m
|
||||||
if (!SetupDiRegisterDeviceInfo(devinfo, &device_data, 0, NULL, NULL, NULL))
|
if (!SetupDiRegisterDeviceInfo(devinfo, &device_data, 0, NULL, NULL, NULL))
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
|
/* Register GUID_DEVINTERFACE_MONITOR */
|
||||||
|
if (!SetupDiCreateDeviceInterfaceW(devinfo, &device_data, &GUID_DEVINTERFACE_MONITOR, NULL, 0, NULL))
|
||||||
|
goto done;
|
||||||
|
|
||||||
|
if (!link_device(bufferW, &GUID_DEVINTERFACE_MONITOR))
|
||||||
|
goto done;
|
||||||
|
|
||||||
/* Write HardwareID registry property */
|
/* Write HardwareID registry property */
|
||||||
if (!SetupDiSetDeviceRegistryPropertyW(devinfo, &device_data, SPDRP_HARDWAREID,
|
if (!SetupDiSetDeviceRegistryPropertyW(devinfo, &device_data, SPDRP_HARDWAREID,
|
||||||
(const BYTE *)monitor_hardware_idW, sizeof(monitor_hardware_idW)))
|
(const BYTE *)monitor_hardware_idW, sizeof(monitor_hardware_idW)))
|
||||||
|
|
Loading…
Reference in New Issue