mirror of
https://github.com/reactos/reactos.git
synced 2024-09-29 14:09:10 +00:00
[SHELL32] List CD-ROM drives in the "Hardware" tab of disk properties
CORE-17397
This commit is contained in:
parent
5bd2cb13b5
commit
e105aefc1c
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
#define _USE_MATH_DEFINES
|
#define _USE_MATH_DEFINES
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include <devguid.h>
|
||||||
|
|
||||||
#define NTOS_MODE_USER
|
#define NTOS_MODE_USER
|
||||||
#include <ndk/iofuncs.h>
|
#include <ndk/iofuncs.h>
|
||||||
|
@ -31,8 +32,6 @@
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(shell);
|
WINE_DEFAULT_DEBUG_CHANNEL(shell);
|
||||||
|
|
||||||
static const GUID GUID_DEVCLASS_DISKDRIVE = {0x4d36e967L, 0xe325, 0x11ce, {0xbf, 0xc1, 0x08, 0x00, 0x2b, 0xe1, 0x03, 0x18}};
|
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
HWPD_STANDARDLIST = 0,
|
HWPD_STANDARDLIST = 0,
|
||||||
|
@ -653,10 +652,12 @@ CDrvDefExt::HardwarePageProc(
|
||||||
{
|
{
|
||||||
case WM_INITDIALOG:
|
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 */
|
/* create the hardware page */
|
||||||
DeviceCreateHardwarePageEx(hwndDlg, &Guid, 1, HWPD_STANDARDLIST);
|
DeviceCreateHardwarePageEx(hwndDlg, Guids, _countof(Guids), HWPD_STANDARDLIST);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue