Autor Beitrag
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: So 08.06.03 12:38 
Hi,
wie kann ich SUBST Laufwerke erstellen, erkennen und entfernen? Microsoft schreibt darüber so:
WIN32.HLP (Erstellen) hat folgendes geschrieben:
mov ax, 71aah ; SUBST
mov bh, 0 ; Create Subst
mov bl, DriveNum ; see below
mov dx, seg PathName ; see below
mov ds, dx
mov dx, offset PathName
int 21h

jc error
WIN32.HLP (Erkennen) hat folgendes geschrieben:
mov ax, 71aah ; SUBST
mov bh, 2 ; Query SUBST
mov bl, DriveNum ; see below
mov dx, seg PathName ; see below
mov ds, dx
mov dx, offset PathName
int 21h

jc error
WIN32.HLP (Entfernen) hat folgendes geschrieben:
mov ax, 71aah ; SUBST
mov bh, 1 ; Terminate Subst
mov bl, DriveNum ; see below
int 21h

jc error
Der erste Code bringt mich zu einer Zugriffsverletzung den zweiten und dritten nimmt
Delphi nicht an. (Unbekannte Assembler-Syntax). Was kann ich tun?

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: So 08.06.03 13:01 
Hi,

Hier gibt's schon eine fertige Unit "API for work with substitution device"
(Win 9x/NT/2000/XP compatible)

www.softcomplete.com/download/subst.zip
maxk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: So 08.06.03 13:46 
Danke

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
maxk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: So 08.06.03 14:55 
Das Aufheben klappt nicht, wenn ich mit SUBST X: C:\ X verbinde, klappt das Trennen mit SubstRemove('X') nicht! Verbinde ich mit SubstCreate('X','C:\'); funktioniert auch das Trennen, das eigentlich immer funktionieren sollte.

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.