#1 Burning Software

It is currently Thu Dec 19, 2024 8:58 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: GetDeviceNameByDeviceAddress failing EN_NOT_FOUND
PostPosted: Wed Apr 04, 2007 10:45 pm 
Offline

Joined: Thu Apr 27, 2006 12:32 am
Posts: 99
I'm trying to use the GetDeviceNameByDeviceAddress function to get the drive letter of devices returned by the FindDevice call back. But for some reason the GetDeviceNameByDeviceAddress function is failing with EN_NOT_FOUND. The weird part is if I call Create with the exact same variables for the SCSI address it succeeds. I also tested all the GUI examples and they fail when calling GetDeviceNameByDeviceAddress as well. The only one that succeeds is the FindDevices.c console app, but I see not difference in the code which would cause it to work in one and not the other. I also tried simply replacing the variables with straight zeros like so...

StarBurn_GetDeviceNameByDeviceAddress(0, 0, 0, 0, DriveName);

And that fails as well, even though I have a drive at address 0:0:0:0

Any ideas as to what would cause this? I'm trying to add ASPI support to my app, but my program uses some internal functions which need the drive letter to function.

Dan


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 05, 2007 8:32 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Make sure StarBurn WnASPI32.dll is near your app executable. Also please send us debug log from some tiny sample doing 1) enumeration 2) GetDeviceNameByDeviceAddress(...) API call. Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 05, 2007 2:30 pm 
Offline

Joined: Thu Apr 27, 2006 12:32 am
Posts: 99
OK I built a very simple sample app that just enumerates the drives and tries to get the name. Here is the debug output....

Quote:
'FindDeviceTest.exe': Loaded 'C:\Documents and Settings\Dan\My Documents\Visual Studio 2005\Projects\FindDeviceTest\debug\FindDeviceTest.exe', Symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_257740a4\mfc80d.dll', Symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_5490cd9f\msvcr80d.dll', Symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', No symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', No symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.MFCLOC_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_91481303\mfc80ENU.dll', Binary was not built with debug information.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', No symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\MSCTF.dll', No symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\Program Files\Logitech\SetPoint\lgscroll.dll', Binary was not built with debug information.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700\msvcr80.dll', Symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700\msvcp80.dll', Symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\ntmarta.dll', No symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\wldap32.dll', No symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\samlib.dll', No symbols loaded.
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\version.dll', No symbols loaded.
'FindDeviceTest.exe': Unloaded 'C:\WINDOWS\system32\version.dll'
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\MSCTFIME.IME', No symbols loaded.
StarBurn CD/DVD/Blu-Ray/HD-DVD Burning, Grabbing and Mastering Toolkit for Windows 95/98/Me/NT/2000/XP/2003/Vista/Longhorn Version 7.2.20 ( 0x20070220 )
Copyright (c) Rocket Division Software 2001-2006. All rights reserved.

This FREEWARE copy of StarBurn should be used in freeware projects only.

License number: 0, licensed to 'info@rocketdivision.com' on Wed Jan 24 13:21:19 2007

Please report all licensing violations to info@rocketdivision.com software piracy fighting team.

StarWave Media Streaming Toolkit for Windows 95/98/Me/NT/2000/XP/2003/Vista/Longhorn Version 7.2.20 ( 0x20070220 )
Copyright (c) Rocket Division Software 2001-2006. All rights reserved.

'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\WNASPI32.DLL', Binary was not built with debug information.
The thread 'Win32 Thread' (0xdd0) has exited with code 0 (0x0).
'FindDeviceTest.exe': Unloaded 'C:\WINDOWS\system32\WNASPI32.DLL'
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\WNASPI32.DLL', Binary was not built with debug information.

CStarBurn:StarBurn_GetDeviceNameByDeviceAddress(): l__pfn__SendASPI32Command( SC_GET_SYMBOLIC_NAME ) for port ID 0 and target ID 0 failed with ASPI status 0x80!!!
'FindDeviceTest.exe': Unloaded 'C:\WINDOWS\system32\WNASPI32.DLL'
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\WNASPI32.DLL', Binary was not built with debug information.

CStarBurn:StarBurn_GetDeviceNameByDeviceAddress(): l__pfn__SendASPI32Command( SC_GET_SYMBOLIC_NAME ) for port ID 0 and target ID 1 failed with ASPI status 0x80!!!
'FindDeviceTest.exe': Unloaded 'C:\WINDOWS\system32\WNASPI32.DLL'
'FindDeviceTest.exe': Loaded 'C:\WINDOWS\system32\WNASPI32.DLL', Binary was not built with debug information.

CStarBurn:StarBurn_GetDeviceNameByDeviceAddress(): l__pfn__SendASPI32Command( SC_GET_SYMBOLIC_NAME ) for port ID 5 and target ID 0 failed with ASPI status 0x80!!!
'FindDeviceTest.exe': Unloaded 'C:\WINDOWS\system32\WNASPI32.DLL'


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 05, 2007 3:46 pm 
Offline

Joined: Thu Apr 27, 2006 12:32 am
Posts: 99
Hmmm... I tried again with the WnASPI32.dll in the debug folder of the test app and it actually worked. However it's still not working in my main app. But this test proves that it does work, so I must be doing something wrong. Anyway ignore this, I'll figure it out.

Thanks anyway,
Dan


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 05, 2007 4:14 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Please check 'C:\WINDOWS\system32\WNASPI32.DLL' to be StarBurn actual WnASPI32.dll. Looks like you just have TWO ASPI layers installed and OS randomly picks up either correc or wrong DLL. Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 05, 2007 10:42 pm 
Offline

Joined: Thu Apr 27, 2006 12:32 am
Posts: 99
I installed the updated SDK (was using 7.1) and copied the new WnASPI32.dll to my debug directory and now it works just fine.

Thanks anyway for your suggestions.

Dan


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 06, 2007 7:01 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
1) Please do this for just release 7.2.20 :)

2) Also please send me WNASPI32.dll from SYSTEM32 folder. I'd like to know whose code is this :)

Thanks!

Dan203 wrote:
I installed the updated SDK (was using 7.1) and copied the new WnASPI32.dll to my debug directory and now it works just fine.

Thanks anyway for your suggestions.

Dan


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 14 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group