hello all,
I am workinging on SPTI to access my SCSI medium changer (Jukebox)
with blueray drive. Now I have trouble to detect medium changers. I
can see "unknown medium changer" showup in Device Manager.
code like this:
guid = (GUID*)&GUID_DEVINTERFACE_MEDIUMCHANGER;
// Get device interface info set handle for all devices attached to
system
HDEVINFO hDevInfo = SetupDiGetClassDevs(guid, NULL, NULL,
DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);
......
while ( SetupDiEnumDeviceInterfaces(hDevInfo, NULL, guid, dwIndex,
&devInterfaceData))
{
..........
if( SetupDiGetDeviceInterfaceDetail(hDevInfo, &spdid, pspdidd,
dwSize, &dwSize, &spdd))
{
HANDLE hDrive = CreateFile(pspdidd->DevicePath, 0, FILE_SHARE_READ
| FILE_SHARE_WRITE, NULL, OPEN_EXISTING, NULL, NULL);
............................
}
}
It always return 0 item when doing enumeration. I also tried
createfile on "\\.changer0". none of those work. does anyone have any
idea? Thanks
Fred