Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting the Windows Drivers Directory

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?

like image 764
Synetech Avatar asked Nov 28 '25 07:11

Synetech


1 Answers

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)

like image 129
Richard Schneider Avatar answered Nov 30 '25 00:11

Richard Schneider



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!