| |
|
|
![maroro: 05/10/14](.././../../i/a/noavatar.gif) maroro | I have one Program geschieben the encrypted Festplatten managt. The Verschlüsselung self Done Truecrypt. with verschlüsselten Festplatten need one whom Volume name z.B. \\?\Volume\{2eca078d-5cbc-43d3-aff8-7e8511f60d0e}\ whom one with the Program Mountvol [...] read can. momentarily use I the too in the I Mountvol a File produce let The I then with XProfan choose. there the jedesmal a Festplattenaktivität created have I one niedriges Aktualisierungsinterval chosen. i want but often update and so I after a Possibility Search these Volume name with XProfan auszulesen. any Recherchen were bislang but erfolglos. has someone a idea How one there ran comes? |
|
|
| |
|
|
|
![H.Brill: 05/11/14](.././../../i/a/86.gif) H.Brill | Date is your friend Volume + GUID association and the dritte hits was the right. Microsofts MSDN :
something like ? :
|
|
|
| Benutze XPROFAN X3 + FREEPROFAN Wir sind die XProfaner. Sie werden von uns assimiliert. Widerstand ist zwecklos! Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.
Was die Borg können, können wir schon lange. | 05/11/14 ▲ |
|
|
|
|
![maroro: 05/11/14](.././../../i/a/noavatar.gif) maroro | Yes almost and many Thanks. even if I The Page self found had would I do not in the site been from it what in XProfan To basteln. I come on C++ not ran. to that others can I me with the Program only The already eingehangenen Volumename Show let. I need but too The where Mountvol "*** no Bereitstellungspunte ***" says. I have with my bescheidenen Kenntnissen attempts whom View source weiterzuentwickeln slopes but at a Error Message (Lesefehler Kernel32)
Error self found Findnextvolume wants always the same lever. To early gefreut windows7 functions WinXP not...
Declare Mem buffer
Declare String s
Declare vh&'lever
Dim buffer, 50
Def @GetVolumeNameForVolumeMountPoint(3) !"KERNEL32","GetVolumeNameForVolumeMountPointA"
Def @FindFirstVolume(2) !"KERNEL32","FindFirstVolumeA"
Def @FindNextVolume(3) !"KERNEL32","FindNextVolumeA"
whileloop 5
print chr $(&loop+66)+":\"
s = chr $(&loop+66)+":\"'"C:\"
@GetVolumeNameForVolumeMountPoint(Addr(s), buffer, SizeOf(buffer))
Print String $(buffer, 0)
clear buffer
endwhile
vh& = @FindFirstVolume( buffer, SizeOf(buffer))
Print String $(buffer, 0)
clear buffer
whileloop 5
@FindNextVolume( vh&, buffer, SizeOf(buffer))
Print String $(buffer, 0)
clear buffer
endwhile
Waitkey
Dispose buffer
End
|
|
|
| |
|
|
|
![H.Brill: 05/11/14](.././../../i/a/86.gif) H.Brill | with whom C++ Deklarationen is it Yes integrally slight.
Numerische Parameter weg any. with Strings must You hold by Def - Deklaration The address (Addr(s)) transfer or You take even too a area or Pointer. If you a Parameter übergebist, the from the API-function described becomes (_Out_), take You best a area.
this is the sicherste lane. one could of course too a String take, the with Space(n) vorbelegt becomes, this is but not always so sure like a area, there the String Nullterminiert is and some API-functions the dislike.
is then too difficult, The Fehlerquelle traceable To make, ifs not functions.
means observe : if one buffer and a moreover Parameter with which length desires becomes, best a area take.
PS: If it with various. windows versions not functions, can it thoroughly his, that MS The function wegoptimiert has or The Parameter changed. the standing but mostly in the Doku the MSDN thereby. |
|
|
| Benutze XPROFAN X3 + FREEPROFAN Wir sind die XProfaner. Sie werden von uns assimiliert. Widerstand ist zwecklos! Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.
Was die Borg können, können wir schon lange. | 05/11/14 ▲ |
|
|
|
|
![maroro: 05/11/14](.././../../i/a/noavatar.gif) maroro | means the Error XP arise therefore the FindFirstVolume -1 as lever zurückgibt with which FindNextVolume nothing begin can. both functions are too for XP indicated. I have times the FindFirstVolumeW (Unicode) instead of FindFirstVolumeA (ANSI) uses too for Findnext. now runs it too XP through only contains the Buffer only one "\" gibt's ne Solution the The "W" the ausspuckt or is still by by XP angesagt. |
|
|
| |
|
|
|
![H.Brill: 05/11/14](.././../../i/a/86.gif) H.Brill | Nimm time at Reading the Buffers StringW$(). this is usually for Unicode (UTF-8) certainly.
means
there could you even $WinVer Verify, whether it XP is and then properly The A or W - Version . Call
presupposed, The Unicode - Variante wouldn't with WIN7 functions. |
|
|
| Benutze XPROFAN X3 + FREEPROFAN Wir sind die XProfaner. Sie werden von uns assimiliert. Widerstand ist zwecklos! Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.
Was die Borg können, können wir schon lange. | 05/11/14 ▲ |
|
|
|
|
![maroro: 05/11/14](.././../../i/a/noavatar.gif) maroro | ready. functions so under Win7 and XP. Vielen Thanks on H.Brill.
'tested under Window7 32bit and XP 32bit
Declare Mem buffer
Declare String s
Declare vh& ,er&'lever ,Return Value
Dim buffer, 60
Def @GetVolumeNameForVolumeMountPoint(3) !"KERNEL32","GetVolumeNameForVolumeMountPointA"
Def @FindFirstVolume(2) !"KERNEL32","FindFirstVolumeW"
Def @FindNextVolume(3) !"KERNEL32","FindNextVolumeA"
Def @FindVolumeClose(1) !"KERNEL32","FindVolumeClose"
'Volume GUID The in a Mountpoint eingehangen are
whileloop 8
print chr $(&loop+66)+":\"
s = chr $(&loop+66)+":\"'"C:\"
@GetVolumeNameForVolumeMountPoint(Addr(s), buffer, SizeOf(buffer))
Print String $(buffer, 0)
clear buffer
endwhile
Print "-----------------------------------------------------------"
'any Volume GUID
vh& = @FindFirstVolume( buffer, SizeOf(buffer))
Print "V: "+st$(vh&)'Volumehandle
If vh& > 0
'Print String$(buffer, 0)
Print StringW$(buffer, 0)
clear buffer
er& = 1
while er& = 1
er& = @FindNextVolume( vh&, buffer, SizeOf(buffer))
Print "E: "+st$(er&)'Volume found
Print String $(buffer, 0)
'Print StringW$(buffer, 0)
clear buffer
endwhile
er& = @FindVolumeClose(vh&)
Print "C: "+st$(er&)'closed
endif
Waitkey
Dispose buffer
End
|
|
|
| |
|
|
|
![H.Brill: 05/11/14](.././../../i/a/86.gif) H.Brill | Freut me, that I there correctly. vermutete and it's running. |
|
|
| Benutze XPROFAN X3 + FREEPROFAN Wir sind die XProfaner. Sie werden von uns assimiliert. Widerstand ist zwecklos! Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.
Was die Borg können, können wir schon lange. | 05/11/14 ▲ |
|
|
|