![]() |
Matching device names with volume names.
If I have a device name and I want the matching volume name (or vica versa, see example below), do I have to mess around with the DosList?
Example: HD0: finds Workbench: Workbench: finds HD0: |
It depends a bit on the purpose of that all. If you want to make a list of device names for example, then you have to traverse the dos list anyway. Then it is not a big deal to traverse it again to find the corresponding volume names.
If you want to do it just once, well for the first case you could just Lock() the device name and Examine() it to find the volume name. For the second case I don't remember if there is any function which returns the device name. It's probably up to the dos list again... To match a device node with the corresponding volume node in the dos list you can use the dol_Task field. |
That's quite clear, thanks :great
|
All times are GMT +2. The time now is 18:38. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.