http://bugs.winehq.org/show_bug.cgi?id=20012
--- Comment #4 from red-ray ray@pobox.co.uk 2009-09-17 10:48:10 --- The following code works well to decide is the bus exists.
stprintf( nam, TEXT( "/sys/bus/pci/devices/0000:%02x:*" ), bus );
if( ( dhl = FindFirstFile( nam , wfd ) ) != INVALID_HANDLE_VALUE ) { FindClose( dhl ); return 2; }
return 0;