[SHELL32] List CD-ROM drives in the "Hardware" tab of disk properties

CORE-17397
This commit is contained in:
Stanislav Motylkov 2022-01-17 21:04:04 +03:00
parent 5bd2cb13b5
commit e105aefc1c
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92

View file

@ -24,6 +24,7 @@
#define _USE_MATH_DEFINES
#include <math.h>
#include <devguid.h>
#define NTOS_MODE_USER
#include <ndk/iofuncs.h>
@ -31,8 +32,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(shell);
static const GUID GUID_DEVCLASS_DISKDRIVE = {0x4d36e967L, 0xe325, 0x11ce, {0xbf, 0xc1, 0x08, 0x00, 0x2b, 0xe1, 0x03, 0x18}};
typedef enum
{
HWPD_STANDARDLIST = 0,
@ -653,10 +652,12 @@ CDrvDefExt::HardwarePageProc(
{
case WM_INITDIALOG:
{
GUID Guid = GUID_DEVCLASS_DISKDRIVE;
GUID Guids[2];
Guids[0] = GUID_DEVCLASS_DISKDRIVE;
Guids[1] = GUID_DEVCLASS_CDROM;
/* create the hardware page */
DeviceCreateHardwarePageEx(hwndDlg, &Guid, 1, HWPD_STANDARDLIST);
DeviceCreateHardwarePageEx(hwndDlg, Guids, _countof(Guids), HWPD_STANDARDLIST);
break;
}
}