Query information about an attached file system (local or remote), or about a character device or pseudo-character device attached to the file system.
DosQFSAttach
DeviceName (PSZ) - input
o
iType (USHORT)
Value
Information about all block devices and all character and pseudo-character devices is returned by this call.
The information returned by this call is highly volatile. Calling programs should be aware that the returned information may have already changed by the time it's returned to them.
The information returned for disks that are attached to the kernel's resident file system can be used to determine if the kernel definitely recognized the disk as one with its file system on it, or if the kernel just attached its file system to it because no other FSDs mounted the disk. This can be important information for a program that needs to know what file system is attached to the drive. It is quite easy to get into a situation where the FSD that recognizes a certain disk has not been installed into the system. In such a case, there is a potential for the data on the disk to be destroyed since the wrong file system is attached to the disk by default.