Autor Beitrag
neodeus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 51

WinXp
D7 Ent. (Unternehmens Lizenzs von Vaters Comp. )
BeitragVerfasst: Di 05.10.04 16:14 
Hallo DF.de !

Ich suche nach einer möglichkeit wechseldatenträger, bzw. speziell usb laufwerke sicher zu erkennen !

USB Laufwerksinformationen werden in der Registry unter HKEY_LOCAL_MASCHINE\System\ControlSet001\Enum\USB gespeichert.

Ich suche nun nach der Verbindung zwischen Laufwerksbuchstaben und Classid bzw. Hardwareid ! Gibt es eine möglichkeit an die Hardwareid oder CLassid von einem aktuell gemappten Laufwerk zu kommen ?
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 05.10.04 19:41 
Ein Blick in die Registry offenbart:

HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices

Unter den StringWerten \DosDevice\C: hast du dann die HW-IDs der Laufwerke stehen. (ACHTUNG: Multibyte-String!!!)

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
neodeus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 51

WinXp
D7 Ent. (Unternehmens Lizenzs von Vaters Comp. )
BeitragVerfasst: Di 05.10.04 20:05 
Verdammt ... da hätte ich doch auch selber drauf kommen müssen ( AUGEN AUF !!! )

Aber wie bekomme ich jetzt die binären HWIDS mit den HWIDs als Multibyte-String verglichen :(
Gast
Gast
Erhaltene Danke: 1



BeitragVerfasst: Di 05.10.04 22:56 
Was genau willst du denn erreichen. Du versteifst dich hier auf eine Sache, dabei könnte es u.U. eine einfachere Lösung geben. Aktuell denke ich an QueryDosDevice() - zum Selbertesten kannst du dir von www.sysinternals.com mal das Programm WinObj runterladen.

Bist du sicher, daß die Hardware-ID nicht mglw.den USB-Roothub oder den USB-Slot markiert, nicht aber den Stick?!
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mi 06.10.04 13:36 
Die Hardware-ID ist für jeden USB-Device (USB-Stick) eindeutig. Selbst wenn du zwei verschiedene USB-Geräte vom selben Hersteller hast, verteilt Windows für jedes dieser Geraäte eine andere Knennung.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.