#1 Burning Software

It is currently Wed Dec 18, 2024 10:58 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Issue with GetDeviceInformation
PostPosted: Thu May 27, 2010 7:03 pm 
Offline

Joined: Thu May 27, 2010 6:51 pm
Posts: 1
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);
}

}
}
}
}


Top
 Profile  
 
 Post subject: Re: Issue with GetDeviceInformation
PostPosted: Fri May 28, 2010 6:36 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
1) Don't use ASPI. It's present for compatibility reasons only. Use SPTD as primary device enumeration method and SPTI as backup (if no SPTD driver installed). CreateEx and CreateExEx.

2) We don't need your source code YET. When submitting reports please keep StarBurn logs near you to attach to forum or send to us by e-mail. They do provide valuable information to us.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 35 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group