🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6817

Re: SetupDiEnumDeviceInterfaces() problem

#6817
From: Bob Gonder
Date: Tue, 12 Apr 2005 19:33
43 lines
2445 bytes
Bob Gonder wrote:

>Might look at 
>HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
>
>My machine is showing 6 
>\??\Volume{some guid}
>and 6
>\DosDevices\C:   through H: which are local devices (HD, CD, USB).

Also see some ClassGUIDs under
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\STORAGE
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCIIDE
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE
And I'm guessing floppy disk
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\FDC

Probably another Enum group on your system for the Fibre Channel.
Is Fibre closer to serial/parallel/USB connectivity (local attach),
or Ethernet (network attach)?
Doesn't seem to show external Network Shares, just attached devices.
So if fibre is network-like, might not show up.

Just reading the docs on this, no idea what it all means......

 SP_DEVINFO_DATA  spdd;
 SP_DEVICE_INTERFACE_DATA  spdid;

HDEVINFO hdi =  SetupDiGetClassDevs( NULL, "IDE", hwnd, Flags);

SetupDiEnumDeviceInfo( hdi, MemberIndex++, &spdd );

And then, it sounds like this should work:

SetupDiEnumDeviceInterfaces( hdi, &spdd, NULL, MemberIndex++, &spdid);

Then, I'm thinking for your work, you might want to use
SetupDiGetDeviceInterfaceAlias

" ntddstor.h defines the interface class GUID for storage devices"
I don't suppose you have a copy of that?
Technical Details
Message-ID: <g41o515v83sv14vkkgaqft6roj5g6nslll@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <425b96d3$1@newsgroups.borland.com> <lpvn51p8cf9ftlf1ui37r82ck33hlc5p8q@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b02fbf2a2963fc20
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: SetupDiEnumDeviceInterfaces() problem
Date: Tue, 12 Apr 2005 12:33:14 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <g41o515v83sv14vkkgaqft6roj5g6nslll@4ax.com>
References: <425b96d3$1@newsgroups.borland.com> <lpvn51p8cf9ftlf1ui37r82ck33hlc5p8q@4ax.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.206.52
X-Trace: newsgroups.borland.com 1113334392 67.77.206.52 (12 Apr 2005 12:33:12 -0800)
Lines: 45
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail