OK I built a very simple sample app that just enumerates the drives and tries to get the name. Here is the debug output....
'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'