I'm just getting started with the SDK, and have an issue with the GetDeviceInformation function. I'm scanning the computer for writers, and attempting to get the device info for any and all writers. I find the dvd drives, but when I isssue the GetDeviceInformation command, I get an error at the first drive found, iPort = 0, iTarget = 0. chException 0x0012e904 "CStarBurn_ScsiTransportASPI::CStarBurn_ScsiTransportASPI(): m__pfn__SendASPI32Command( SC_GET_DEV_TYPE ) for target ID 15 failed with ASPI status 0x82"
The targetID ( my iTarget) is clearly 0 when I request the Device info.
Any help would be appreciated.
My code is as follows:
for (int iBus = 0; iBus < 1; iBus++) { for (int iPort = 0; iPort < 16; iPort++) { for ( int iTarget = 0; iTarget < 16; iTarget++) { for ( int iLun = 0; iLun < 1 ; iLun++) { LONG lException = StarBurn_CdvdBurnerGrabber_Create( &pBurner, (PCHAR) &chException, sizeof(chException), &sysError, &cdbFail, (PCALLBACK) Callback, NULL, iPort, iBus, iTarget, iLun, 32);
if ( lException == EN_SUCCESS) { TRACE("\r\nFound Burner @ Port = %i, Bus = %i, Target = %i, Lun = %i", iPort, iBus, iTarget, iLun); StarBurn_CdvdBurnerGrabber_GetDeviceInformation( &pBurner, (PCHAR) &chVendorId , (PCHAR) &chProductId, (PCHAR) &chRevision, &ulBufferSize); TRACE("\r\n Vendor = %s, ProductID = %s, Revision = %s", chVendorId, chProductId, chRevision);
} else { //TRACE("\r\nNo Burner @ Bus = %i, Port = %i, Targer = %i, Lun = %i", iBus, iPort, iTarget, iLun); }
} } } }
|