INT_PTR CALLBACK DriveHardwareDlg( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam ) { GUID Guids[1]; Guids[0] = GUID_DEVCLASS_DISKDRIVE; UNREFERENCED_PARAMETER(lParam); UNREFERENCED_PARAMETER(wParam); switch(uMsg) { case WM_INITDIALOG: /* create the hardware page */ DeviceCreateHardwarePageEx(hwndDlg, Guids, sizeof(Guids) / sizeof(Guids[0]), 0); break; } return FALSE; }
/* Hardware property page dialog callback */ static INT_PTR CALLBACK HardwareDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) { UNREFERENCED_PARAMETER(lParam); UNREFERENCED_PARAMETER(wParam); switch(uMsg) { case WM_INITDIALOG: { GUID Guids[2]; Guids[0] = GUID_DEVCLASS_CDROM; Guids[1] = GUID_DEVCLASS_MEDIA; /* Create the hardware page */ DeviceCreateHardwarePageEx(hwndDlg, Guids, sizeof(Guids) / sizeof(Guids[0]), HWPD_LARGELIST); break; } } return FALSE; }
INT_PTR CALLBACK CDrvDefExt::HardwarePageProc( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) { UNREFERENCED_PARAMETER(lParam); UNREFERENCED_PARAMETER(wParam); switch(uMsg) { case WM_INITDIALOG: { GUID Guid = GUID_DEVCLASS_DISKDRIVE; /* create the hardware page */ DeviceCreateHardwarePageEx(hwndDlg, &Guid, 1, HWPD_STANDARDLIST); break; } } return FALSE; }