by meaty · 13y ago · 0 comments
Drive letters are a hang back from DOS. Ironically at a very low level, NT doesn't have the concept of drive letters at all and does volume mounting as per *NIX systems. That's all down to Win32.
The fact that large swatches of win32 API are implemented as userspace abstractions is wonderful source of weird windows behavior. For example, changing current directory is not thread safe (not only in the way that you don't know which directory is really current in presence of multiple threads changing it, but SetCurrentDirectory() itself is not an atomic operation)
Why does it matter what it does internally (unless you are knee deep in WDK work)? SetVolumeMountPoint() pretty much acts like mount() as far as the userspace is concerned.