Is there an official / proper method of getting Windows’ drivers directory or do you just concatenate "\\Drivers" to GetSystemDirectory()?
To be clear, I mean the Drivers directory that is in the system directory (eg System32). Yes, drivers can technically be anywhere, but is there an official way (eg a function) to get this specific directory?
There is no special folder for drivers. The special folders are CSLIDs (see http://msdn.microsoft.com/en-us/library/bb762494(VS.85).aspx.
If it was a special folder then you could use the SHGetSpecialFolderPath (see http://msdn.microsoft.com/en-us/library/bb762204(VS.85).aspx)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With